mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RT] - rebalance_domains incorrect parameter
@ 2007-08-24  9:09 Sven-Thorsten Dietrich
  2007-08-24  9:15 ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Sven-Thorsten Dietrich @ 2007-08-24  9:09 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: RT Users List, LKML


Hi Ingo,

the RT patches for .22 and .23 are passing an incorrect parameter to
rebalance_domains.

I had this queued up for a few days - its still wrong in .22 and .23 RT
patches.

Same issue has been fixed in mainline by: 

diff-tree de0cf899bbf06b6f64a5dce9c59d74c41b6b4232 (from
5d2b3d3695a841231b65b55
Author: Oleg Nesterov <oleg@tv-sign.ru>
Date:   Sun Aug 12 18:08:19 2007 +0200

    sched: run_rebalance_domains: s/SCHED_IDLE/CPU_IDLE/
    
    rebalance_domains(SCHED_IDLE) looks strange (typo), change it to
CPU_IDLE.
    
    the effect of this bug was slightly more agressive idle-balancing on
    SMP than intended.
    
    Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>


Thanks,

Sven



This parameter was missed when SCHED_IDLE was replaced by CPU_IDLE.

Fixed in mainline by:
commit de0cf899bbf06b6f64a5dce9c59d74c41b6b4232
Author: Oleg Nesterov <oleg@tv-sign.ru>
Date:   Sun Aug 12 18:08:19 2007 +0200


signed-off-by: Sven-Thorsten Dietrich <sven@thebigcorporation.com>


Index: linux-2.6.22.1-rt9-broken-out/kernel/sched.c
===================================================================
--- linux-2.6.22.1-rt9-broken-out.orig/kernel/sched.c
+++ linux-2.6.22.1-rt9-broken-out/kernel/sched.c
@@ -3479,7 +3479,7 @@ static void run_rebalance_domains(struct
 			if (need_resched())
 				break;
 
-			rebalance_domains(balance_cpu, SCHED_IDLE);
+			rebalance_domains(balance_cpu, CPU_IDLE);
 
 			rq = cpu_rq(balance_cpu);
 			if (time_after(this_rq->next_balance, rq->next_balance))


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH RT] - rebalance_domains incorrect parameter
  2007-08-24  9:09 [PATCH RT] - rebalance_domains incorrect parameter Sven-Thorsten Dietrich
@ 2007-08-24  9:15 ` Ingo Molnar
  2007-08-26  3:32   ` Sven-Thorsten Dietrich
  0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2007-08-24  9:15 UTC (permalink / raw)
  To: Sven-Thorsten Dietrich; +Cc: RT Users List, LKML


* Sven-Thorsten Dietrich <sven@thebigcorporation.com> wrote:

> Same issue has been fixed in mainline by: 
> 
> diff-tree de0cf899bbf06b6f64a5dce9c59d74c41b6b4232 (from
> 5d2b3d3695a841231b65b55
> Author: Oleg Nesterov <oleg@tv-sign.ru>
> Date:   Sun Aug 12 18:08:19 2007 +0200

> signed-off-by: Sven-Thorsten Dietrich <sven@thebigcorporation.com>

ah, you mean we should pick up an upstream fix for -rt? We'll do that 
and we'll pick up much more: all the other ~100 CFS commits that 
happened meanwhile. (Btw., there's no need to sign off on patch 
forwarding or backport requests - the signoff made me first believe this 
is some new patch.)

	Ingo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH RT] - rebalance_domains incorrect parameter
  2007-08-24  9:15 ` Ingo Molnar
@ 2007-08-26  3:32   ` Sven-Thorsten Dietrich
  0 siblings, 0 replies; 3+ messages in thread
From: Sven-Thorsten Dietrich @ 2007-08-26  3:32 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: RT Users List, LKML

On Fri, 2007-08-24 at 11:15 +0200, Ingo Molnar wrote:
> * Sven-Thorsten Dietrich <sven@thebigcorporation.com> wrote:
> 
> > Same issue has been fixed in mainline by: 
> > 
> > diff-tree de0cf899bbf06b6f64a5dce9c59d74c41b6b4232 (from
> > 5d2b3d3695a841231b65b55
> > Author: Oleg Nesterov <oleg@tv-sign.ru>
> > Date:   Sun Aug 12 18:08:19 2007 +0200
> 
> > signed-off-by: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
> 
> ah, you mean we should pick up an upstream fix for -rt?

Well, um yes - I had made the patch a few days ago, but then realized it
was already fixed in mainline.

>  We'll do that 
> and we'll pick up much more: all the other ~100 CFS commits that 
> happened meanwhile. (Btw., there's no need to sign off on patch 
> forwarding or backport requests - the signoff made me first believe this 
> is some new patch.)
> 

Ok. Thanks

Sven


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-26  3:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-24  9:09 [PATCH RT] - rebalance_domains incorrect parameter Sven-Thorsten Dietrich
2007-08-24  9:15 ` Ingo Molnar
2007-08-26  3:32   ` Sven-Thorsten Dietrich

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®