public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Pass 4 (non-)optimization speedup
@ 2009-07-11 18:32 Mark Wielaard
  2009-07-12  1:51 ` Frank Ch. Eigler
  2009-07-15  2:17 ` Josh Stone
  0 siblings, 2 replies; 8+ messages in thread
From: Mark Wielaard @ 2009-07-11 18:32 UTC (permalink / raw)
  To: systemtap

Hi,

To make pass 4 a bit more flexible I added -O[0123s] as arguments to
stap (commit 5a5732). This allows you to pass through this option to
gcc. So users can determine whether they want fast compilation or
optimized code for speed or size.

The default is -O0 which makes pass 4 a lot faster, so I think this is a
good default. But maybe the default could be tuned, for example when
using the compile server, which can be assumed to generate systemtap
script modules that will be often reused.

The -O0 default speeds up some things a lot.
$ stap -v -k -p4 -e 'probe syscall.* { log(argstr); }'
Before: Pass 4: compiled C [...] in 7520usr/900sys/8415real ms.
After:  Pass 4: compiled C [...] in 4980usr/730sys/5782real ms.
make installcheck RUNTESTFLAGS=buildok.exp is 15 seconds faster,
was 4 minutes 10 seconds, now 3 minutes 55 seconds
(both with clean caches).

Cheers,

Mark

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-07-15 17:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-11 18:32 Pass 4 (non-)optimization speedup Mark Wielaard
2009-07-12  1:51 ` Frank Ch. Eigler
2009-07-12 14:26   ` Mark Wielaard
2009-07-13 22:35     ` Mark Wielaard
2009-07-14  9:56       ` Mark Wielaard
2009-07-15  2:17       ` Josh Stone
2009-07-15 17:42         ` Frank Ch. Eigler
2009-07-15  2:17 ` Josh Stone

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).