[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0808111152060.30842@gandalf.stny.rr.com>
Date: Mon, 11 Aug 2008 11:54:31 -0400 (EDT)
From: Steven Rostedt <rostedt@...dmis.org>
To: Christoph Lameter <cl@...ux-foundation.org>
cc: "Frank Ch. Eigler" <fche@...hat.com>,
Pekka Enberg <penberg@...helsinki.fi>,
Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>,
mathieu.desnoyers@...ymtl.ca, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, rdunlap@...otime.net,
mpm@...enic.com, tglx@...utronix.de
Subject: Re: [PATCH 4/5] kmemtrace: SLUB hooks.
On Mon, 11 Aug 2008, Christoph Lameter wrote:
> Frank Ch. Eigler wrote:
> > Christoph Lameter <cl@...ux-foundation.org> writes:
> >
> >> [...]
> >>> There should be no extra function calls when this is configured on but
> >>> tracing disabled. We try very hard to keep the speed of the tracer as
> >>> close to a non tracing kernel as possible when tracing is disabled.
> >> Makes sense. But then we have even more code bloat because of the
> >> tests that are inserted in all call sites of kmalloc.
> >
> > Are you talking about the tests that implement checking whether a
> > marker is active or not? Those checks are already efficient, and will
> > get more so with the "immediate values" optimization in or near the
> > tree.
>
> AFAICT: Each test also adds an out of line call to the tracing facility.
>
Frank,
Christoph is correct. He's not bringing up the issue of efficiency, but
the issue of bloat.
The marker code will be added to everyplace that calls kmalloc. Which can
be quite a lot. I'd be interested in seeing the size of the .text section
with and without this patch added and makers configure in.
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists