[ofa-general] libibumad umad_recv and umad_poll
Ira Weiny
weiny2 at llnl.gov
Tue Jul 1 09:08:06 PDT 2008
On Tue, 01 Jul 2008 05:57:10 -0700
Hal Rosenstock <hrosenstock at xsigo.com> wrote:
> On Mon, 2008-06-30 at 18:31 -0700, Sean Hefty wrote:
> > I have a couple questions regarding the libibumad interface, and I'm hoping
> > someone might know the answers to.
> >
> > Do any apps call umad_recv()/umad_poll() from multiple threads? I'm
> > specifically interested in opensm and the diagnostic utilities.
>
> OpenSM does not. There's a single receiver thread which calls umad_recv.
> AFAIK none of the infiniband-diags do either.
>
> I can't speak for ibutils and any out of tree consumers.
>
> I also haven't looked at Ira's new libibnetdisc yet.
I make the same calls ibnetdiscover does, for now... I have thought that using
multiple threads would make some things faster but it seems fast enough for
now.
Ira
>
> > If so, can umad_recv() support a mix of blocking and non-blocking calls
> > concurrently? Or are all calls from a single app always blocking or always
> > non-blocking?
> >
> > Is the user expected to modify the fd to support non-blocking calls?
>
> libibumad does open the fd as non blocking in umad_open_port:
> if ((fd = open(dev_file, O_RDWR|O_NONBLOCK)) < 0)
>
> -- Hal
>
> > I'm more concerned with the current, actual usage of the interface, rather than
> > the theoretical operation.
> >
> > Thanks,
> > - Sean
> >
> > _______________________________________________
> > general mailing list
> > general at lists.openfabrics.org
> > http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> >
> > To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
>
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
More information about the general
mailing list