From: David Smith <dsmith@redhat.com>
To: "Stone, Joshua I" <joshua.i.stone@intel.com>
Cc: systemtap@sources.redhat.com
Subject: Re: precompiled probing scenarios
Date: Tue, 24 Oct 2006 15:16:00 -0000 [thread overview]
Message-ID: <453E2E60.8070701@redhat.com> (raw)
In-Reply-To: <C56DB814FAA30B418C75310AC4BB279DD0441A@scsmsx413.amr.corp.intel.com>
Stone, Joshua I wrote:
> I saw that you checked in the caching code, so I finally got around to
> trying it. :)
>
> For the most part, it seems to work really nicely. The caching is
> essentially transparent, which makes for a positive experience when your
> scripts startup faster.
Thanks for trying it. Yep, its in. Hopefully no one else has noticed
because it is fairly transparent (except perhaps for your growing
~/.systemtap/cache directory).
The faster script startup is really nice, especially on slower hardware
(like my test box - a 1Ghz P3).
Here's an extreme example. stap -p4 testsuite/systemtap.stress/sys.stp
takes 0:06:18 uncached and only 0:00:07 cached.
A full "make installcheck" run takes 0:41:05 uncached and 0:15:39 cached.
BTW, a "make installcheck" should work correctly, cached or uncached.
Next on my todo list is adding cache tests.
> There's a few trials I did though where caching opportunities were
> missed. I'll admit freely that these are perhaps too nitpicky, so we
> can treat it as a low-priority enhancement.
>
> 1. probe begin { exit() }
> 2. probe begin { exit(); }
> 3. probe begin { exit() a=1 }
>
> 2 and 3 actually hash the same, since elision turns 'a=1' into an empty
> statement (';'). We should to be able to tell that these are all the
> same, but since the pass-2 output leaves in all semi-colons, the hash is
> different. It ought to be pretty easy to normalize empty statements
> away, so minor differences like this don't matter.
>
> A harder scenario to address is this:
>
> 4. probe begin, end { exit() }
> 5. probe end, begin { exit() }
>
> Again, with some fancy normalization, we should be able to identify
> these as equal. And actually, the seemingly-unrelated work in
> probe-grouping would probably help here, if the pass-2 output were
> ordered in a deterministic manner. Stap already does some of this,
> e.g., by ordering functions before probes.
>
> It's likely rare that the differences between scripts will be so small,
> so these optimizations may not matter. But if anyone's bored, or has an
> intern with nothing to do, this may be a simple enhancement.
Hmm. Just for fun, I decided to see if the pass 3 output of [1. 2.] or
[4. 5.] would compare equally. They don't.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
next prev parent reply other threads:[~2006-10-24 15:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-24 0:29 Stone, Joshua I
2006-10-24 15:16 ` David Smith [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-10-25 18:54 Stone, Joshua I
2006-10-26 1:07 ` Frank Ch. Eigler
2006-10-20 20:51 Stone, Joshua I
2006-10-20 18:44 Stone, Joshua I
2006-10-20 19:26 ` David Smith
2006-10-20 19:32 ` Frank Ch. Eigler
2006-10-20 19:50 ` David Smith
2006-10-20 20:13 ` Frank Ch. Eigler
2006-10-23 20:36 ` David Smith
2006-10-19 20:33 Stone, Joshua I
2006-10-19 20:41 ` David Smith
2006-10-06 19:08 Frank Ch. Eigler
2006-10-06 20:33 ` David Smith
2006-10-06 20:40 ` Frank Ch. Eigler
2006-10-19 19:49 ` David Smith
2006-10-19 21:53 ` Frank Ch. Eigler
2006-10-20 13:50 ` David Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=453E2E60.8070701@redhat.com \
--to=dsmith@redhat.com \
--cc=joshua.i.stone@intel.com \
--cc=systemtap@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).