Re: Scheduler(?) regression from 2.6.22 to 2.6.24 for short-lived threads

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Galbraith
Date: Tuesday, February 12, 2008 - 2:23 am

On Mon, 2008-02-11 at 14:31 -0600, Olof Johansson wrote:


There is a strong dependency on execution order in this testcase.

Between cpu affinity and giving the child a little head start to reduce
the chance (100% if child wakes on same CPU and doesn't preempt parent)
of busy wait, modified testcase behaves.  I don't think I should need
the CPU affinity, but I do.

If you plunk a usleep(1) in prior to calling thread_func() does your
testcase performance change radically?  If so, I wonder if the real
application has the same kind of dependency.

	-Mike
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Scheduler(?) regression from 2.6.22 to 2.6.24 for shor ..., Mike Galbraith, (Tue Feb 12, 2:23 am)