From: Vincent Pelletier <vincent.plr@wanadoo.fr>
To: linux-kernel@vger.kernel.org
Cc: mingo@elte.hu
Subject: Re: [PATCH] sched.c: Be a bit more conservative in SMP
Date: Sun, 3 Sep 2006 19:10:56 +0200 [thread overview]
Message-ID: <200609031910.57259.vincent.plr@wanadoo.fr> (raw)
In-Reply-To: <200609031541.39984.subdino2004@yahoo.fr>
Forgot the signed-off-by line in previous mail. Reposting same patch just in
case. CC to maintainer as advised in the FAQ.
Signed-off-by: Vincent Pelletier <vincent.plr@wanadoo.fr>
--- linux-2.6-2.6.17/kernel/sched.c 2006-06-18 03:49:35.000000000 +0200
+++ linux-2.6-2.6.17-conservative/kernel/sched.c 2006-09-03
13:18:11.000000000 +0200
@@ -952,7 +952,7 @@ void kick_process(task_t *p)
static inline unsigned long source_load(int cpu, int type)
{
runqueue_t *rq = cpu_rq(cpu);
- unsigned long load_now = rq->nr_running * SCHED_LOAD_SCALE;
+ unsigned long load_now = (max(rq->nr_running - 1, 0)) *
SCHED_LOAD_SCALE;
if (type == 0)
return load_now;
--
VGER BF report: U 0.500348
next prev parent reply other threads:[~2006-09-03 17:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-03 13:41 Vincent Pelletier
2006-09-03 17:10 ` Vincent Pelletier [this message]
2006-09-06 23:30 ` Vincent Pelletier
2006-09-19 14:06 ` Ludovic Drolez
2006-09-19 17:50 ` Antonio Vargas
2006-09-20 7:42 ` Ludovic Drolez
2006-09-20 16:26 ` Poor scheduling when not loaded at 100% (Was: [PATCH] sched.c: Be a bit more conservative in SMP) Ludovic Drolez
2006-09-21 18:36 ` [PATCH] sched.c: Be a bit more conservative in SMP Vincent Pelletier
2006-09-22 7:24 ` Ludovic Drolez
2006-09-22 12:31 ` Antonio Vargas
2006-09-19 13:39 ` Ludovic
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=200609031910.57259.vincent.plr@wanadoo.fr \
--to=vincent.plr@wanadoo.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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
Powered by JetHome