mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
Cc: npiggin@suse.de, linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: [patch] sched: fix newly idle load balance in case of SMT
Date: Tue, 17 Jul 2007 10:15:42 +0200	[thread overview]
Message-ID: <20070717081542.GB17234@elte.hu> (raw)
In-Reply-To: <20070716235214.GD3318@linux-os.sc.intel.com>


* Siddha, Suresh B <suresh.b.siddha@intel.com> wrote:

> In the presence of SMT, newly idle balance was never happening for 
> multi-core and SMP domains(even when both the logical siblings are 
> idle).
> 
> If thread 0 is already idle and when thread 1 is about to go to idle, 
> newly idle load balance always think that one of the threads is not 
> idle and skips doing the newly idle load balance for multi-core and 
> SMP domains.
> 
> This is because of the idle_cpu() macro, which checks if the current 
> process on a cpu is an idle process. But this is not the case for the 
> thread doing the load_balance_newidle().
> 
> Fix this by using runqueue's nr_running field instead of idle_cpu(). 
> And also skip the logic of 'only one idle cpu in the group will be 
> doing load balancing' during newly idle case.

ah, indeed - good catch! I've checked the other uses of idle_cpu() and 
those seem to be fine. I've added your patch to my queue.

	Ingo

      reply	other threads:[~2007-07-17  8:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 23:52 Siddha, Suresh B
2007-07-17  8:15 ` Ingo Molnar [this message]

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=20070717081542.GB17234@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=npiggin@suse.de \
    --cc=suresh.b.siddha@intel.com \
    /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

all inboxes | Powered by JetHome®