Messages in this thread | | | Date | Wed, 24 Aug 2005 13:37:51 +1000 | From | Lincoln Dale <> | Subject | Re: sched_yield() makes OpenLDAP slow |
| |
Denis Vlasenko wrote:
>>>This is what I would expect if run on an otherwise idle machine. >>>sched_yield just puts you at the back of the line for runnable >>>processes, it doesn't magically cause you to go to sleep somehow. >>> >>> >>When a kernel build is occurring??? Plus `top` itself.... It damn >>well sleep while giving up the CPU. If it doesn't it's broken. >> >> unless you have all of the kernel source in the buffer cache, a concurrent kernel build will spend a fair bit of time in io_wait state .. as such its perfectly plausible that sched_yield keeps popping back to the top of 'runnable' processes . . .
cheers,
lincoln. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |