Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755175AbZFWTNR (ORCPT ); Tue, 23 Jun 2009 15:13:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753529AbZFWTNH (ORCPT ); Tue, 23 Jun 2009 15:13:07 -0400 Received: from www.tglx.de ([62.245.132.106]:39845 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752431AbZFWTNH (ORCPT ); Tue, 23 Jun 2009 15:13:07 -0400 Date: Tue, 23 Jun 2009 21:11:12 +0200 (CEST) From: Thomas Gleixner To: "Nikita V. Youshchenko" cc: linux-kernel@vger.kernel.org, Alexander Kaliadin Subject: Re: [rt-preempt / powerpc] Looks like tick_sched_timer() is a major latency source In-Reply-To: <200906232055.12412@zigzag.lvk.cs.msu.su> Message-ID: References: <200906232055.12412@zigzag.lvk.cs.msu.su> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1184 Lines: 30 On Tue, 23 Jun 2009, Nikita V. Youshchenko wrote: > 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. > 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. Thanks, tglx -- 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/