Re: [patch v2 1/2] sched: check for prev_cpu == this_cpu before calling wake_affine()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Galbraith
Date: Thursday, April 1, 2010 - 11:20 pm

On Thu, 2010-04-01 at 14:04 -0700, Suresh Siddha wrote:


Yes, if task A and task B are more or less unrelated, you'd want them to
stay in separate domains, you'd not want some random event to pull.  The
other side of the coin is tasks which fork off partners that they will
talk to at high frequency.  They land just as far away, and desperately
need to move into a shared cache domain.  There's currently no
discriminator, so while always asking wake_affine() may reduce the risk
of moving a task with a large footprint, it also increases the risk of
leaving buddies jabbering cross cache.  You can tweak it in either
direction, and neither can be called "wrong", it's all compromise.

Do you have a compute load bouncing painfully which this patch cures?

I have no strong objections, and the result is certainly easier on the
eye.  If I were making the decision, I'd want to see some numbers.

	-Mike

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

Messages in current thread:
Re: [patch v2 1/2] sched: check for prev_cpu == this_cpu b ..., Mike Galbraith, (Thu Apr 1, 11:20 pm)
[tip:sched/core] sched: Fix select_idle_sibling() logic in ..., tip-bot for Suresh S ..., (Fri Apr 23, 3:50 am)