Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755664AbZD1MoW (ORCPT ); Tue, 28 Apr 2009 08:44:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754958AbZD1MoH (ORCPT ); Tue, 28 Apr 2009 08:44:07 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:38470 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753777AbZD1MoF (ORCPT ); Tue, 28 Apr 2009 08:44:05 -0400 Date: Tue, 28 Apr 2009 14:42:59 +0200 From: Ingo Molnar To: KOSAKI Motohiro Cc: Pekka Enberg , Andi Kleen , Wu Fengguang , Steven Rostedt , =?utf-8?B?RnLpppjpp7tpYw==?= Weisbecker , Larry Woodman , Peter Zijlstra , Eduard - Gabriel Munteanu , Andrew Morton , LKML , Matt Mackall , Alexey Dobriyan , "linux-mm@kvack.org" Subject: Re: [PATCH 5/5] proc: export more page flags in /proc/kpageflags Message-ID: <20090428124259.GA3731@elte.hu> References: <20090428093621.GD21085@elte.hu> <84144f020904280257j57b5b686k91cc4096a8e5ca29@mail.gmail.com> <20090428190822.EBED.A69D9226@jp.fujitsu.com> <84144f020904280321u4be9fb10t6f0123b589752b80@mail.gmail.com> <20090428105603.GB25347@elte.hu> <2f11576a0904280409h4dedc04u43a5b68ef492e56d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2f11576a0904280409h4dedc04u43a5b68ef492e56d@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2467 Lines: 62 * KOSAKI Motohiro wrote: > 2009/4/28 Ingo Molnar : > > > > * Pekka Enberg wrote: > > > >> Hi! > >> > >> 2009/4/28 KOSAKI Motohiro : > >> >> I guess the main question here is whether this approach will scale to > >> >> something like kmalloc() or the page allocator in production > >> >> environments. For any serious workload, the frequency of events is > >> >> going to be pretty high. > >> > > >> > Immediate Values patch series makes zero-overhead to tracepoint > >> > while it's not used. > >> > > >> > So, We have to implement to stop collect stastics way. it restore > >> > zero overhead world. > >> > We don't lose any performance by trace. > >> > >> Sure but I meant the _enabled_ case here. kmalloc() (and the page > >> allocator to some extent) is very performance sensitive in many > >> workloads so you probably don't want to use tracepoints if you're > >> collecting some overall statistics (i.e. tracing all events) like > >> we do here. > > > > That's where 'collect current state' kind of tracepoints would help > > - they could be used even without enabling any of the other > > tracepoints. And they'd still be in a coherent whole with the > > dynamic-events tracepoints. > > > > So i'm not arguing against these techniques at all - and we can move > > on a wide scale from zero-overhead to lots-of-tracing-enabled models > > - what i'm arguing against is the splintering. > > umm. > I guess Pekka and you talk about different thing. > > if tracepoint is ON, tracepoint makes one function call. but few > hot spot don't have patience to one function call overhead. > > scheduler stat and slab stat are one of good example, I think. > > I really don't want convert slab_stat and sched_stat to ftrace > base stastics. currently it don't need extra function call and it > only touch per-cpu variable. So, a overhead is extream small. > > Unfortunately, tracepoint still don't reach this extream > performance. I understand that - please see my "[rfc] object collection tracing" reply in this thread, for a more detailed description about what i meant under 'object state tracing'. 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/