Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757417AbZFWUCW (ORCPT ); Tue, 23 Jun 2009 16:02:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757273AbZFWUBy (ORCPT ); Tue, 23 Jun 2009 16:01:54 -0400 Received: from gate.lvk.cs.msu.su ([158.250.17.1]:47826 "EHLO lvk.cs.msu.su" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755190AbZFWUBw (ORCPT ); Tue, 23 Jun 2009 16:01:52 -0400 From: "Nikita V. Youshchenko" To: Thomas Gleixner Subject: Re: [rt-preempt / powerpc] Looks like tick_sched_timer() is a major latency source Date: Wed, 24 Jun 2009 00:01:47 +0400 User-Agent: KMail/1.9.9 Cc: linux-kernel@vger.kernel.org, Alexander Kaliadin References: <200906232055.12412@zigzag.lvk.cs.msu.su> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906240001.48924@blacky.localdomain> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1287 Lines: 29 > > I tried hard to identify the latency source, and at some moment > > discovered tick_sched_timer() from kernel/time/tick-sched.c. This > > routine is called from timer interrupt with hardware interrupts > > disabled, and may execute for 50 us and more. > > > > Could someone please comment on this? > > Did you have CONFIG_NOHZ enabled ? If yes, please disable. I have disabled CONFIG_NOHZ long ago, since it really influences latency. > > Is it possible to move (part of) tick_sched_timer() call tree out of > > hardware-interrupts-disabled context without breaking things? > > Yes, we can move things out and split the irq disabled regions. One > particular thing which can be split out is the time update, which we > already had in the timer softirq at some point, but we moved it back > as it showed problems with NTP stability. It's one of the things which > can be revisited. The whole call chain needs some investigation, but > that's not in my main focus now. Is that code with time update split out available anywhere? Nikita -- 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/