Re: [PATCH 5/5] proc: export more page flags in /proc/kpageflags

From: Ingo Molnar
Date: Tue Apr 28 2009 - 05:16:26 EST



* Pekka Enberg <penberg@xxxxxxxxxxxxxx> wrote:

> Hi Andi,
>
> On Tue, 2009-04-28 at 09:40 +0200, Andi Kleen wrote:
> > > I think i have to NAK this kind of ad-hoc instrumentation of kernel
> > > internals and statistics until we clear up why such instrumentation
> >
> > I think because it has zero fast path overhead and can be used
> > any time without enabling anything special.

( That's a dubious claim in any case - tracepoints are very cheap.
And they could be made even cheaper and such efforts would benefit
all the tracepoint users so it's a prime focus of interest.
Andi is a SystemTap proponent, right? I saw him oppose pretty much
everything built-in kernel tracing related. I consider that a
pretty extreme position. )

> Yes, zero overhead is important for certain things (like
> CONFIG_SLUB_STATS, for example). However, putting slab allocator
> specific checks in fs/proc looks pretty fragile to me. It would be
> nice to have this under the "kmemtrace umbrella" so that there's
> just one place that needs to be fixed up when allocators change.
>
> Also, while you probably don't want to use tracepoints for this
> kind of instrumentation, you might want to look into reusing the
> ftrace reporting bits.

Exactly - we have a tracing and statistics framework for a reason.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/