linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Chen <tim.c.chen@linux.intel.com>
To: Peter Williams <pwil3058@bigpond.net.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sched: smpnice try to wakeup modification
Date: Wed, 29 Mar 2006 15:13:41 -0800	[thread overview]
Message-ID: <442B14A5.4040606@linux.intel.com> (raw)
In-Reply-To: <442B0F10.9000606@bigpond.net.au>

Peter Williams wrote:
> Tim Chen wrote:
>> Peter,
>>
>> If there is no load on this_cpu, (i.e. tl_per_task is 0), we will 
>> fail the  "tl + target_load(cpu, idx) <= tl_per_task" check.
>
> This isn't the case.  If this_cpu is idle tl_per_task will be set to 
> SCHED_LOAD_SCALE (see implementation of cpu_avg_load_per_task()) and 
> that expression should succeed unless the value returned by 
> target_load(cpu, idx) is bigger than SCHED_LOAD_SCALE.  This is 
> exactly the same as would have happened with the original code.
>
> (BTW cpu_avg_load_per_task()'s original implementation would have had 
> the effect you describe but it was modified when it was realized that 
> it would break the code in a lot of places (not just here).  The 
> thinking now is that if there isn't enough data available to calculate 
> the average load per task for a run queue then the correct value to 
> use is the theoretical average i.e. SCHED_LOAD_SCALE.)
>
Ah, I was looking at the original smpnice patch.  Thanks for clarifying.

Tim


      reply	other threads:[~2006-03-29 23:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-29  2:49 [PATCH] sched: smpnice try to wakeup modification Tim Chen
2006-03-29 22:49 ` Peter Williams
2006-03-29 23:13   ` Tim Chen [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=442B14A5.4040606@linux.intel.com \
    --to=tim.c.chen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).