Re: [PATCH] sched.c: Be a bit more conservative in SMP



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@xxxxxxxxxx>

--- 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Fix "buggy BIOS check" when CPUs are hot removed
    ... fires when a CPU is removed from the system and then later re-added. ... *device, int type) ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: FAQ Suggestion
    ... I see two approaches for a new maintainer: ... The FAQ Notes are anonymous and undated; and it is not clear whether ... to or reliable memory of a large number of browsers of various ages. ...
    (comp.lang.javascript)
  • Re: [PATCH] sched: Fix __load_balance_iterator() for cfq with only one task
    ... Fix this by checking if the last entity was a task or not. ... pairs not running on the same CPU as buddies, shouldn't this be fixed in a ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: FAQ Updates
    ... maintenance, the FAQ source should change to a simpler form, ... When I maintained a UK newsgroup FAQ, this is how it was done. ... replaced the Web headers with News headers, ... and if after at least some response in the group the maintainer ...
    (comp.lang.javascript)
  • Re: FAQ Update 9.85 Dated 2007-08-31
    ... and I can find plenty more of them, ... reasoned argument and practical demonstration. ... Richard did more for the FAQ in the time I he maintained it than you have done in your entire time in c.l.j. ... The FAQ maintainer seems to have wanted to say something ...
    (comp.lang.javascript)