login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
15
Re: [PATCH 1/7] RT: Add a per-cpu rt_overload indication
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Steven Rostedt <rostedt@...>
To: Gregory Haskins <ghaskins@...>
Cc: Peter Zijlstra <a.p.zijlstra@...>, RT <linux-rt-users@...>, Ingo Molnar <mingo@...>, LKML <linux-kernel@...>, Thomas Gleixner <tglx@...>
Subject:
Re: [PATCH 1/7] RT: Add a per-cpu rt_overload indication
Date: Monday, October 15, 2007 - 1:42 pm
-- On Fri, 12 Oct 2007, Gregory Haskins wrote:
quoted text
> The system currently evaluates all online CPUs whenever one or more enters > an rt_overload condition. This suffers from scalability limitations as > the # of online CPUs increases. So we introduce a cpumask to track > exactly which CPUs need RT balancing. > > Signed-off-by: Gregory Haskins <ghaskins@novell.com> > CC: Peter W. Morreale <pmorreale@novell.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org> This patch seems reasonable to me. I'll pull it into the queue unless there's any NACKs. -- Steve
quoted text
> --- > > kernel/sched.c | 12 +++++++++--- > 1 files changed, 9 insertions(+), 3 deletions(-) > > diff --git a/kernel/sched.c b/kernel/sched.c > index 86ff36d..0a1ad0e 100644 > --- a/kernel/sched.c > +++ b/kernel/sched.c > @@ -632,6 +632,7 @@ static inline struct rq *this_rq_lock(void) > > #if defined(CONFIG_PREEMPT_RT) && defined(CONFIG_SMP) > static __cacheline_aligned_in_smp atomic_t rt_overload; > +static cpumask_t rto_cpus; > #endif > > static inline void inc_rt_tasks(struct task_struct *p, struct rq *rq) > @@ -640,8 +641,11 @@ static inline void inc_rt_tasks(struct task_struct *p, struct rq *rq) > if (rt_task(p)) { > rq->rt_nr_running++; > # ifdef CONFIG_SMP > - if (rq->rt_nr_running == 2) > + if (rq->rt_nr_running == 2) { > + cpu_set(rq->cpu, rto_cpus); > + smp_wmb(); > atomic_inc(&rt_overload); > + } > # endif > } > #endif > @@ -654,8 +658,10 @@ static inline void dec_rt_tasks(struct task_struct *p, struct rq *rq) > WARN_ON(!rq->rt_nr_running); > rq->rt_nr_running--; > # ifdef CONFIG_SMP > - if (rq->rt_nr_running == 1) > + if (rq->rt_nr_running == 1) { > atomic_dec(&rt_overload); > + cpu_clear(rq->cpu, rto_cpus); > + } > # endif > } > #endif > @@ -1624,7 +1630,7 @@ static void balance_rt_tasks(struct rq *this_rq, int this_cpu) > */ > next = pick_next_task(this_rq, this_rq->curr); > > - for_each_online_cpu(cpu) { > + for_each_cpu_mask(cpu, rto_cpus) { > if (cpu == this_cpu) > continue; > src_rq = cpu_rq(cpu); > > >
-
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 0/7] RT: RT-Overload/Sched enhancements (v2)
, Gregory Haskins
, (Fri Oct 12, 8:15 pm)
[PATCH 7/7] RT: (RFC) Only try to pull tasks in if we are do...
, Gregory Haskins
, (Fri Oct 12, 8:16 pm)
[PATCH 6/7] RT: Select tasks based on relative affinity
, Gregory Haskins
, (Fri Oct 12, 8:16 pm)
Re: [PATCH 6/7] RT: Select tasks based on relative affinity
, Gregory Haskins
, (Mon Oct 15, 4:08 pm)
[PATCH 5/7] RT: Add support for low-priority wake-up to push...
, Gregory Haskins
, (Fri Oct 12, 8:15 pm)
Re: [PATCH 5/7] RT: Add support for low-priority wake-up to ...
, Steven Rostedt
, (Mon Oct 15, 2:05 pm)
Re: [PATCH 5/7] RT: Add support for low-priority wake-up to ...
, Gregory Haskins
, (Mon Oct 15, 3:54 pm)
Re: [PATCH 5/7] RT: Add support for low-priority wake-up to ...
, Peter Zijlstra
, (Sat Oct 13, 5:46 am)
Re: [PATCH 5/7] RT: Add support for low-priority wake-up to ...
, Steven Rostedt
, (Mon Oct 15, 2:57 pm)
[PATCH 4/7] RT: Add support for updating push-rt priority un...
, Gregory Haskins
, (Fri Oct 12, 8:15 pm)
Re: [PATCH 4/7] RT: Add support for updating push-rt priorit...
, Steven Rostedt
, (Mon Oct 15, 1:47 pm)
[PATCH 3/7] RT: Initialize the priority value
, Gregory Haskins
, (Fri Oct 12, 8:15 pm)
Re: [PATCH 3/7] RT: Initialize the priority value
, Steven Rostedt
, (Mon Oct 15, 1:46 pm)
[PATCH 2/7] RT: Wrap the RQ notion of priority to make it co...
, Gregory Haskins
, (Fri Oct 12, 8:15 pm)
Re: [PATCH 2/7] RT: Wrap the RQ notion of priority to make i...
, Steven Rostedt
, (Mon Oct 15, 1:45 pm)
Re: [PATCH 2/7] RT: Wrap the RQ notion of priority to make i...
, Gregory Haskins
, (Mon Oct 15, 3:57 pm)
[PATCH 1/7] RT: Add a per-cpu rt_overload indication
, Gregory Haskins
, (Fri Oct 12, 8:15 pm)
Re: [PATCH 1/7] RT: Add a per-cpu rt_overload indication
, Steven Rostedt
, (Mon Oct 15, 1:42 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Peter Zijlstra
[PATCH 00/23] per device dirty throttling -v8
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
git
:
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Colocation donated by:
Who's online
There are currently
2 users
and
789 guests
online.
Online users
apartvalen
coachoutlet998
Syndicate