login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
18
Re: [PATCH] sched: do not stop ticks when cpu is not idle
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
eric miao <eric.y.miao@...>
To: Thomas Gleixner <tglx@...>
Cc: Ingo Molnar <mingo@...>, LKML <linux-kernel@...>, Jack Ren <jack.ren@...>, Peter Zijlstra <a.p.zijlstra@...>, Dmitry Adamushko <dmitry.adamushko@...>
Subject:
Re: [PATCH] sched: do not stop ticks when cpu is not idle
Date: Friday, July 18, 2008 - 10:38 am
On Fri, Jul 18, 2008 at 9:52 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
quoted text
> On Fri, 18 Jul 2008, Ingo Molnar wrote: >> >> * eric miao <eric.y.miao@gmail.com> wrote: >> >> > Issue: the sched tick would be stopped in some race conditions. >> >> > --- a/kernel/sched.c >> > +++ b/kernel/sched.c >> > @@ -4027,7 +4027,8 @@ need_resched_nonpreemptible: >> > rq->nr_switches++; >> > rq->curr = next; >> > ++*switch_count; >> > - >> > + if (rq->curr != rq->idle) >> > + tick_nohz_restart_sched_tick(); >> > context_switch(rq, prev, next); /* unlocks the rq */ >> >> applied to tip/sched/urgent, thanks Eric. >> >> Thomas, Peter, Dmitry, do you concur with the analysis? (commit below) > > Yes. I did not understand the issue when Jack pointed it out to me, > but with Erics explanation it's really clear. Thanks for tracking that > down.
Actually, Jack did most of the analysis and came up with this quick fix.
quoted text
> >> It looks a bit ugly to me in the middle of schedule() - is there no wait >> to solve this within kernel/time/*.c ? > > Hmm, yes. I think the proper fix is to enable the tick stop mechanism > in the idle loop and disable it before we go to schedule. That takes > an additional parameter to tick_nohz_stop_sched_tick(), but we then > gain a very clear section where the nohz mimic can be active. > > I'll whip up a patch.
Sounds great, thanks.
quoted text
> > Thanks, > > tglx >
-- Cheers - eric --
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] sched: do not stop ticks when cpu is not idle
, eric miao
, (Fri Jul 18, 2:41 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Dmitry Adamushko
, (Fri Jul 18, 7:21 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Ingo Molnar
, (Fri Jul 18, 6:24 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Thomas Gleixner
, (Fri Jul 18, 9:52 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, eric miao
, (Fri Jul 18, 10:38 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Thomas Gleixner
, (Fri Jul 18, 11:27 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Philippe Troin
, (Mon Jul 21, 3:13 pm)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Thomas Gleixner
, (Mon Jul 21, 4:25 pm)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Philippe Troin
, (Mon Jul 21, 4:53 pm)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Jack Ren
, (Mon Jul 21, 3:34 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Heiko Carstens
, (Fri Jul 18, 12:29 pm)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Thomas Gleixner
, (Sat Jul 19, 3:32 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Ingo Molnar
, (Fri Jul 18, 6:54 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Peter Zijlstra
, (Fri Jul 18, 7:08 am)
Re: [PATCH] sched: do not stop ticks when cpu is not idle
, Ingo Molnar
, (Fri Jul 18, 6:27 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Linus Torvalds
Linux 2.6.27-rc5
Jared Hulbert
[PATCH 00/10] AXFS: Advanced XIP filesystem
Linus Torvalds
Linux 2.6.27-rc8
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Antonio Almeida
HTB accuracy for high speed
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
919 guests
online.
Online users
zeekec
strcmp
steptwonow
inefut40
Jeremy
duddy1kravitz
Syndicate