public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
To: Peter Williams <pwil3058@bigpond.net.au>
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>,
	Andrew Morton <akpm@osdl.org>, Con Kolivas <kernel@kolivas.org>,
	"Chen, Kenneth W" <kenneth.w.chen@intel.com>,
	Ingo Molnar <mingo@elte.hu>, Mike Galbraith <efault@gmx.de>,
	Nick Piggin <nickpiggin@yahoo.com.au>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sched: modify move_tasks() to improve load balancing outcomes
Date: Mon, 17 Apr 2006 09:59:20 -0700	[thread overview]
Message-ID: <20060417095920.A19931@unix-os.sc.intel.com> (raw)
In-Reply-To: <44404455.8090304@bigpond.net.au>; from pwil3058@bigpond.net.au on Sat, Apr 15, 2006 at 10:54:45AM +1000

On Sat, Apr 15, 2006 at 10:54:45AM +1000, Peter Williams wrote:
> Yes, there are problems with the active/expired arrays but they're no 
> worse with smpnice than they are without it.

With smpnice, if we make any wrong decision while moving the high and
low priority tasks, we will enter an endless loop(as load balance
will keep on showing the imbalance and move_tasks will always move
the wrong tasks, instead of the correct ones pointed by imbalance..)

With the current code in the mainline, we don't have such a problem.

> Going to a single priority array would eliminate this problem not to 
> mention other problems to do with when to excuse tasks from being put on 
> the expired array at the end of their time slice (see Mike Galbraith's 
> patches).  But I haven't had much luck pushing that barrow. :-)

I will take a loot at those patches.

> If you have a better suggestion for how move_tasks() does its job, how 
> about providing a patch and with supporting arguments as to why its 
> better.  If it is better then we can use it.

I think we can have a second pass(if the first pass fails to move any),
in which we will not skip those tasks which will become highest priority
on the target runqueue...

> > The only special check in find_busiest_group() helping MT/MC balancing
> > is pwr_now and pwr_move calculations..
> 
> What about the very messy code I had to put in so that 
> find_busiest_group() would return a group even if there were no queues 
> in the group with more than one task.  Similar for find_busiest_queue().

Thats messy for sure and that was introduced by you to fix an imabalance
issue for a simple DP system(with out breaking HT systems). I will post a fix
for that.

thanks,
suresh

  reply	other threads:[~2006-04-17 17:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-13  6:57 [PATCH] sched: modify move_tasks() to improve load balancing outcomes Peter Williams
2006-04-13 23:51 ` Siddha, Suresh B
2006-04-14  1:50   ` Peter Williams
2006-04-14 18:27     ` Siddha, Suresh B
2006-04-15  0:54       ` Peter Williams
2006-04-17 16:59         ` Siddha, Suresh B [this message]
2006-04-17 23:21           ` Peter Williams
2006-04-17 23:56           ` Peter Williams
2006-04-18  0:18           ` Peter Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060417095920.A19931@unix-os.sc.intel.com \
    --to=suresh.b.siddha@intel.com \
    --cc=akpm@osdl.org \
    --cc=efault@gmx.de \
    --cc=kenneth.w.chen@intel.com \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nickpiggin@yahoo.com.au \
    --cc=pwil3058@bigpond.net.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox