Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261287AbUK2Oe3 (ORCPT ); Mon, 29 Nov 2004 09:34:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261291AbUK2Oe3 (ORCPT ); Mon, 29 Nov 2004 09:34:29 -0500 Received: from mx2.elte.hu ([157.181.151.9]:32200 "EHLO mx2.elte.hu") by vger.kernel.org with ESMTP id S261287AbUK2OeY (ORCPT ); Mon, 29 Nov 2004 09:34:24 -0500 Date: Mon, 29 Nov 2004 15:33:16 +0100 From: Ingo Molnar To: Rui Nuno Capela Cc: linux-kernel@vger.kernel.org, Lee Revell , mark_h_johnson@raytheon.com, "K.R. Foley" , Bill Huey , Adam Heath , Florian Schmidt , Thomas Gleixner , Michal Schmidt , Fernando Pablo Lopez-Lezcano , Karsten Wiese , Gunther Persoons , emann@mrv.com, Shane Shrybman , Amit Shah , Esben Nielsen Subject: Re: Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-7 Message-ID: <20041129143316.GA3746@elte.hu> References: <36536.195.245.190.93.1101471176.squirrel@195.245.190.93> <20041129111634.GB10123@elte.hu> <41358.195.245.190.93.1101734020.squirrel@195.245.190.93> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41358.195.245.190.93.1101734020.squirrel@195.245.190.93> User-Agent: Mutt/1.4.1i X-ELTE-SpamVersion: MailScanner 4.31.6-itk1 (ELTE 1.2) SpamAssassin 2.63 ClamAV 0.73 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, autolearn=not spam, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1897 Lines: 44 * Rui Nuno Capela wrote: > > the trace buffer is too small to capture a significant portion of the > > xrun - i'd suggest for you to increase it from 4096-1 to 4096*16-1, to > > be able to capture a couple of hundreds of millisecs worth of traces. > > > > and how I do that? Is it some /proc magic or its in the kernel configuration? it's the MAX_TRACE define in kernel/latency.c. but please try to the -31-10 kernel that i've just uploaded, it has a number of tracer enhancements: - process name tracking. The new format is: bash- 3633 80000003 0.264ms (+0.000ms): idle_cpu (wake_idle) bash- 3633 80000003 0.264ms (+0.000ms): idle_cpu (wake_idle) bash- 3633 80000003 0.264ms (+0.000ms): find_next_bit (wake_idle) this makes it easier to identify which process does what. This feature has no significant overhead in the tracer itself, all the hard work is done when /proc/latency_trace is read by the user. - /proc/sys/kernel/mcount_enabled flag: if disabled then /proc/latency_trace will only contain 'custom' events, but no per-function entries. This can be useful to trace really long latencies, to get a rough idea of what is going on. - /proc/latency_trace atomicity. It was fundamentally non-atomic, due to it being a 4K-granular file interface. Now the kernel has a second layer of saved-trace logic, which makes sure that the only time the trace is switched is when the header of the trace is read. I.e. when cp-ing or cat-ing /proc/latency_trace, no new trace info will be used. This change could solve some of the 'truncated traces' weirdnesses reported. Ingo - 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/