login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
1
Re: [PATCH 1/2] Customize sched domain via cpuset
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <peterz@...>
To: Paul Jackson <pj@...>
Cc: Hidetoshi Seto <seto.hidetoshi@...>, <linux-kernel@...>, Ingo Molnar <mingo@...>
Subject:
Re: [PATCH 1/2] Customize sched domain via cpuset
Date: Tuesday, April 1, 2008 - 7:59 am
On Tue, 2008-04-01 at 06:55 -0500, Paul Jackson wrote:
quoted text
> Interesting ... > > So, we have two flags here. One flag "sched_wake_idle_far" that will > cause the current task to search farther for an idle CPU when it wakes > up another task that needs a CPU on which to run, and the other flag > "sched_balance_newidle_far" that will cause a soon-to-idle CPU to search > farther for a task it might pull over and run, instead of going idle. > > I am tempted to ask if we should not elaborate this in one dimension, > and simplify it in another dimension. > > First the simplification side: do we need both flags? Yes, they are > two distinct cases in the code, but perhaps practical uses will always > end up setting both flags the same way. If that's the case, then we > are just burdening the user of these flags with understanding a detail > that didn't matter to them: did a waking task or an idle CPU provoke > the search? Do you have or know of a situation where you actually > desire to enable one flag while disabling the other? > > For the elaboration side: your proposal has just two-level's of > distance, near and far. Perhaps, as architectures become more > elaborate and hierarchies deeper, we would want N-level's of distance, > and the ability to request such load balancing for all levels "n" > for our choice of "n" <= N. > > If we did both the above, then we might have a single per-cpuset file > that took an integer value ... this "n". If (n == 0), that might mean > no such balancing at all. If (n == 1), that might mean just the > nearest balancing, for example, to the hyperthread within the same core, > on some current Intel architectures. If (n == 2), then that might mean, > on the same architectures, that balancing could occur across cores > within the same package. If (n == 3) then that might mean, again on > that architecture, that balancing could occur across packages on the > same node board. As architectures evolve over time, the exact details > of what each value of "n" mean would evolve, but always higher "n" > would enable balancing across a wider portion of the system. > > Please understand I am just brain storming here. I don't know that > the alternatives I considered above are preferrable or not to what > your patch presents.
FWIW I like your suggestions. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] Customize sched domain via cpuset
, Hidetoshi Seto
, (Tue Apr 1, 7:26 am)
[PATCH 2/2] Customize sched domain via cpuset (v2)
, Hidetoshi Seto
, (Fri Apr 4, 5:11 am)
Re: [PATCH 2/2] Customize sched domain via cpuset (v2)
, Peter Zijlstra
, (Thu Apr 10, 10:53 am)
Re: [PATCH 2/2] Customize sched domain via cpuset (v2)
, Hidetoshi Seto
, (Sun Apr 13, 9:45 pm)
Re: [PATCH 2/2] Customize sched domain via cpuset (v2)
, Paul Jackson
, (Mon Apr 14, 11:38 am)
[PATCH 1/2] Customize sched domain via cpuset (v2)
, Hidetoshi Seto
, (Fri Apr 4, 5:10 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Paul Jackson
, (Tue Apr 1, 7:55 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Hidetoshi Seto
, (Wed Apr 2, 4:39 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Paul Jackson
, (Wed Apr 2, 7:14 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Hidetoshi Seto
, (Wed Apr 2, 11:21 pm)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Paul Jackson
, (Thu Apr 3, 9:14 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Paul Jackson
, (Thu Apr 3, 8:56 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Peter Zijlstra
, (Thu Apr 3, 6:46 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Peter Zijlstra
, (Tue Apr 1, 7:59 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Peter Zijlstra
, (Tue Apr 1, 7:48 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Andi Kleen
, (Tue Apr 1, 7:40 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Peter Zijlstra
, (Tue Apr 1, 7:56 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Andi Kleen
, (Tue Apr 1, 9:29 am)
Re: [PATCH 1/2] Customize sched domain via cpuset
, Peter Zijlstra
, (Tue Apr 1, 9:38 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Paul Jackson
Re: cpuset-remove-sched-domain-hooks-from-cpusets
Rafael J. Wysocki
[Bug #11210] libata badness
linux-netdev
:
David Miller
Re: [GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Andrew Morton
Re: [BUG] New Kernel Bugs
openbsd-misc
:
git
:
Colocation donated by:
Who's online
There are currently
4 users
and
845 guests
online.
Online users
strcmp
1stcomprepair
1stcomprepair
shines73
Syndicate