public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: Lukas Berk <lberk@redhat.com>
Cc: Jon VanAlten <jvanalte@redhat.com>,
	systemtap@sourceware.org,        distro-pkg-dev@openjdk.java.net
Subject: Re: [RFC] Enhanced Garbage Collection Probe Points
Date: Wed, 29 Aug 2012 11:52:00 -0000	[thread overview]
Message-ID: <1346241141.3052.58.camel@springer.wildebeest.org> (raw)
In-Reply-To: <20120828212242.GA29101@redhat.com>

Hi Lukas,

On Tue, 2012-08-28 at 17:22 -0400, Lukas Berk wrote:
> > We have a hotspot.stp, a hotspot_jni.stp; maybe this one should be
> > hotspot_gc.stp?
> Done, its now included as hotspot_gc.stp.in

I like it this way. Thanks.

> > Adding this fluff to the existing systemtap.patch, may not be the
> > best way.  As I understand it, Mark is trying to get the existing
> > stuff upstream.  Combining this into same IcedTea patch may make
> > it more difficult if/when this upstreaming is eventually successful
> > and needs to be removed from IcedTea.  I'd suggest introducing a
> > separate patch to the icedtea sources.
> Makes sense to me, I've adjusted the autoconf files accordingly to
> include and apply patches/systemtap_gc.patch if icedtea is configure
> with --enable-systemtap.

That also looks good. For 6 I split up the original systemtap.patch into
separate patches too. See
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-August/019851.html
Eventually all those patches should go directly into the forest (or
Andrew Hughes will kill me for polluting the tree with even more
patches) but lets do all those in one step later. For now the separate
patch is great.

Please do post and ping systemtap_gc.patch to
hotspot-gc-dev@openjdk.java.net one last time. It would be really good
if some hotspot gc hacker could comment. We can always try.

> > Well, I am basically OK with this aside from the things mentioned
> > above.  I guess remaining still is the question of testing these.  I
> > wouldn't block this based on lacking tests (the previous probes went
> > untested for ages before I added tests), but I also don't want this
> > to go in without a plan to eventually add tests; when we did add
> > tests for the other probes, we actually found regressions and even
> > things that had never properly worked iirc.
> > 
> > Have you given any thought to how you might add tests for these
> > probes to the existing set of probe tests?
> Ideally I'd have some java test programs that would be able to allocate
> enough objects to trigger collections.  As mentioned earlier, different
> gc algorithms can be specified with jvm options, but what would be
> tricky is controlling the gc invocation via jvm options in a reliable
> enough manner that we can reasonably expect scavenges to occur.  I would
> have to experiment with that to see if its possible, if anybody else
> knows how to easily do that please let me know.

Take a look at test/tapset/jstaptest.pl, make check-tapset-probes and
make check-tapset-jstack. You can probably do something similar. Please
ask if the test code looks too hairy (it probably is...).

Cheers,

Mark

  reply	other threads:[~2012-08-29 11:52 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02 13:11 Lukas Berk
2012-08-03 13:56 ` Mark Wielaard
2012-08-03 14:23   ` Lukas Berk
2012-08-07 11:50     ` Mark Wielaard
2012-08-08 14:01       ` Lukas Berk
2012-08-08 14:34         ` Mario Torre
2012-08-08 20:37 ` Jon VanAlten
2012-08-08 21:11   ` Lukas Berk
2012-08-08 22:05     ` Jon VanAlten
2012-08-22 20:34 ` Lukas Berk
2012-08-24 19:59   ` Jon VanAlten
2012-08-28 21:23     ` Lukas Berk
2012-08-29 11:52       ` Mark Wielaard [this message]
2012-08-30  1:19       ` Jon VanAlten
2012-08-31 20:07         ` Lukas Berk
2012-09-24 18:17           ` Jon VanAlten
2012-10-23 16:53             ` Lukas Berk
2012-10-25  5:02               ` Jon VanAlten
2012-10-25 13:09                 ` Andrew Hughes
2012-10-30  1:49                   ` Jon VanAlten
2012-10-30  8:03                     ` Mark Wielaard
2012-10-30 12:37                     ` Andrew Hughes
2012-11-01 18:33                       ` Jon VanAlten
2012-11-01 19:06                         ` Mark Wielaard
2012-11-01 22:12                           ` Jon VanAlten
2012-11-02 14:54                           ` Andrew Hughes
2012-11-02 15:03                             ` Mark Wielaard

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=1346241141.3052.58.camel@springer.wildebeest.org \
    --to=mjw@redhat.com \
    --cc=distro-pkg-dev@openjdk.java.net \
    --cc=jvanalte@redhat.com \
    --cc=lberk@redhat.com \
    --cc=systemtap@sourceware.org \
    /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).