lkml.org 
[lkml]   [2008]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 1/2] Marker probes in futex.c

* Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:

> Now for some performance impact :

absent from your figures is dyn-ftrace :-)

dyn-ftrace is a young but rather nifty tool that extends on old-style
static tracepoints rather forcefully, by adding 75,000+ tracepoints to
the kernel here and now, with no in-source maintainence overhead at all.
(It's a nice add-on to SystemTap because it adds space for a jprobe, but
i digress ;-)

anyway, my objections against markers would be reduced quite
significantly, if we were able to improve the immediate values
optimization to not actually patch the MOV's constant portion, but to
just patch both the MOV and the branch instruction, into two NOPs.

in fact, we can do even better: we should turn the immediate values
optimization into a simple "patch out a jump to the slowpath"
optimization. I.e. just a single instruction to patch in and out. (and
that makes the NMI impact all that easier to handle as well)

That would pretty much meet my "the typical trace point should have the
cost of a single NOP" threshold for fastpath tracing overhead, which
i've been repeating for 2 years now, and which would make the scheduler
markers a lot more palatable ;-)

hm?

Ingo


\
 
 \ /
  Last update: 2008-04-15 18:51    [W:0.147 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site