[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1276771844.8121.14.camel@marge.simson.net>
Date: Thu, 17 Jun 2010 12:50:44 +0200
From: Mike Galbraith <efault@....de>
To: Jiri Kosina <jkosina@...e.cz>
Cc: Brian Bloniarz <bmb@...enacr.com>, Chris Wedgwood <cw@...f.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Greg KH <gregkh@...e.de>, Alan Cox <alan@...rguk.ukuu.org.uk>,
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>,
Jef Driesen <jefdriesen@...enet.be>,
linux-kernel@...r.kernel.org,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...e.hu>
Subject: Re: Slow pty's (was Re: libdivecomputer interfaces?)
On Thu, 2010-06-17 at 09:00 +0200, Mike Galbraith wrote:
> On Thu, 2010-06-17 at 08:39 +0200, Mike Galbraith wrote:
>
> > I'm not seeing any problem with serial console here, seems to work just
> > fine P4->Q6600, both running NOHZ kernels with nohz_ratelimit(), 33.5 on
> > the P4, and tip.today on the Q6600.
>
> Of course, as soon as I say that, the problem appeared. Hopefully,
> It'll stick around a while.
Actually, it's fully reproducible, I just have _way_ too many (49)
kernels to choose from.
I had to go back to virgin 34, apply 39c0cbe and fixlet to fully test,
as git/tip network isn't working quite right for me atm. At any rate,
the below fixed it up for me, and cross-cpu throughput gain is intact.
sched: do not ratelimit NOHZ when the tick is stopped.
Chris Wedgwood reports that 39c0cbe sched: Rate-limit nohz causes a serial
console regression, unresponsiveness, and indeed it does. The below fixes
it by not skipping out when the tick has been stopped.
Tested that the throughput benefit of ratelimiting is still intact. It is.
Signed-off-by: Mike Galbraith <efault@....de>
Reported-by: Chris Wedgwood <cw@...f.org>
LKML-Reference: <new-submission>
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 5f171f0..83c5129 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -315,7 +315,7 @@ void tick_nohz_stop_sched_tick(int inidle)
goto end;
}
- if (nohz_ratelimit(cpu))
+ if (!ts->tick_stopped && nohz_ratelimit(cpu))
goto end;
ts->idle_calls++;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists