This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Pass 4 (non-)optimization speedup
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Mark Wielaard <mjw at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Sat, 11 Jul 2009 21:51:09 -0400
- Subject: Re: Pass 4 (non-)optimization speedup
- References: <1247337122.2708.24.camel@hermans.wildebeest.org>
Mark Wielaard <mjw@redhat.com> writes:
> To make pass 4 a bit more flexible I added -O[0123s] as arguments to
> stap (commit 5a5732). [...]
> The default is -O0 which makes pass 4 a lot faster, so I think this is a
> good default. [...]
No, it is unlikely to be a good default. Frankly, I'm surprised it
even compiles, since some kernel code is unbuildable without
optimization. Anyway, the code generated by systemtap is complex
enough that with optimization disabled, it is bound to run measurably
slower. Please test some nontrivial probes with -t before & after.
- FChE