Thu, 05 Jul 2007 22:58:27 +0400
Stas Sergeev <[EMAIL PROTECTED]> kirjoitti:

> Maybe something like the attached patch
> can do instead? I haven't tested, but it
> seems in case of (ctxp->active && IS_STREAM_TRACE)
> the select() is never executed at all, so
> 100% of CPU will be consumed no matter what.
> I did such a patch for the server interface,
> and it was applied. Of course it doesn't
> make it inevitably correct, but noone complained
> since, and consuming 100% of CPU is certainly
> unacceptable.
> Though for the server interface I managed to
> reduce the CPU usage much further with a few
> simple tricks.

Yes, looks better. I tried not to modify anything else, but just make
it not poll when idle, so I left that condition of bypassing select()
altogether alone.

For me, this patch seems to work just as well and is less complex code,
so I'm all for it.

-- 
Niko Kiirala
[EMAIL PROTECTED]
http://niko.kiirala.com/
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to