[ofa-general] [PATCH RFC] libibumad: give up cpu time slice if write() falied

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Thu Jan 29 09:53:54 PST 2009


On Thu, Jan 29, 2009 at 05:26:37PM +0200, Yevgeny Kliteynik wrote:

> Then I added 20 msec sleep after write() failure to make it give up the cpu time
> slice, and I saw some improvement. When I added sleep of several seconds, the problem
> disappeared completely, but then of course, the client's transaction will fail with
> timeout unless you specifically increase the transaction timeout on the client side.

Poll or a blocking fd would be a better choice than a sleep...

-- 
Jason Gunthorpe <jgunthorpe at obsidianresearch.com>        (780)4406067x832
Chief Technology Officer, Obsidian Research Corp         Edmonton, Canada



More information about the general mailing list