* Re: minutes 2009-03-19
[not found] ` <mailman.15643.1237562572.2999.external-perftools-list@redhat.com>
@ 2009-03-20 19:09 ` Frank Ch. Eigler
2009-03-21 1:12 ` Mark Wielaard
0 siblings, 1 reply; 2+ messages in thread
From: Frank Ch. Eigler @ 2009-03-20 19:09 UTC (permalink / raw)
To: Mark Wielaard; +Cc: systemtap
Mark Wielaard <mjw@redhat.com> writes:
> Frysk contained an fstep program based on ptrace. [...] And it was
> indeed horribly slow :) [...]
If you have or can easily make a copy, could you try benchmarking it
against...?
# stap -e 'probe process("foo").insn {}' -w -t -c foo
- FChE
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: minutes 2009-03-19
2009-03-20 19:09 ` minutes 2009-03-19 Frank Ch. Eigler
@ 2009-03-21 1:12 ` Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2009-03-21 1:12 UTC (permalink / raw)
To: Frank Ch. Eigler; +Cc: systemtap
On Fri, 2009-03-20 at 12:38 -0400, Frank Ch. Eigler wrote:
> Mark Wielaard <mjw@redhat.com> writes:
>
> > Frysk contained an fstep program based on ptrace. [...] And it was
> > indeed horribly slow :) [...]
>
> If you have or can easily make a copy, could you try benchmarking it
> against...?
>
> # stap -e 'probe process("foo").insn {}' -w -t -c foo
It is really no contest, even with just counting the number of steps
of /bin/true (yes -t already does that, but I thought it more fair to
write a real "counter", it doesn't really matter much, around 0.01s):
$ LD_LIBRARY_PATH=~/src/frysk/obj/frysk-imports/elfutils/backends time
-p ../install/bin/fstep -s 120000 /bin/true
Total steps [2119]: 117681
[2119] Exited: 0
real 12.96
user 7.55
sys 5.45
$ time -p /usr/local/systemtap/bin/stap -e 'global steps; probe process("/bin/true").insn {steps++} probe end {printf("steps: %d\n", steps);}' -w -t -c /bin/true
steps: 137793
probe process("/bin/true").insn (<input>:1:15), hits: 137793, cycles: 286min/300avg/56518max
probe end (<input>:1:57), hits: 1, cycles: 6193min/6193avg/6193max
real 0.93
user 0.39
sys 0.52
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-20 22:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20090319175731.GV12974@redhat.com>
[not found] ` <mailman.15643.1237562572.2999.external-perftools-list@redhat.com>
2009-03-20 19:09 ` minutes 2009-03-19 Frank Ch. Eigler
2009-03-21 1:12 ` Mark Wielaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).