Hi Sebastian,

On 10/9/2013 7:10 AM, Sebastian Riemer wrote:
> Hi Hal,
> 
> we've encountered an issue with OpenSM 3.3.16 and the config option
> "console off".
> OpenSM processes are at 100% CPU load.
> 
>>From strace:
> poll([{fd=0, events=POLLIN}], 1, 1000)  = 1 ([{fd=0, revents=POLLIN}])
> read(0, "", 4096)                       = 0
> poll([{fd=0, events=POLLIN}], 1, 1000)  = 1 ([{fd=0, revents=POLLIN}])
> read(0, "", 4096)                       = 0
> poll([{fd=0, events=POLLIN}], 1, 1000)  = 1 ([{fd=0, revents=POLLIN}])
> read(0, "", 4096)                       = 0

So this doesn't block for 1 second and that's why the CPU is 100% ?

> As far as I've seen in the code, the function osm_console() from
> opensm/osm_console.c is the only function which uses poll().

osm_vendor_ibumad has a receiver thread polling umad under the covers of
umad_recv but I think that uses infinite rather than 1 second.

> Is this issue already known or perhaps already fixed?

This area of the console code has not changed in quite a while.
Any idea if this works with older versions of OpenSM ?

This is first I've heard of this issue.

-- Hal

> Thanks,
> Sebastian
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to