linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems with perf "event grouping" on Java apps
@ 2014-08-18 18:46 Jen-Cheng(Tommy) Huang
  2014-08-18 18:55 ` Problems with perf Tommy
  0 siblings, 1 reply; 6+ messages in thread
From: Jen-Cheng(Tommy) Huang @ 2014-08-18 18:46 UTC (permalink / raw)
  To: linux-perf-users

Hi

I am trying to use perf with event grouping to profile Java apps.
My kernel is 3.16.1-1.el6.elrepo.x86_64
perf version 3.16.1-1.el6.elrepo.x86_64
The Java app I use is hadoop TaskTracker, which spawns multiple child JVMs.
There seems to be something wrong with event group, since very few
samples were collected if I use more than one event in a group.
The following shows an example

I used
perf record -e '{instructions}:S' -c 100000 [TaskTracker command]
This one works fine and it collects a reasonable amount of samples and
several threads are sampled.

However, the following command does not work.
perf record -e '{instructions,cycles}:S' -c 100000 [TaskTracker command]
Less than 1000 samples were collected and only one thread was sampled

If I don't use :S to read samples, the sample counts are reasonable,
but the event grouping is gone. (both events were sampled, no leader
event.)
perf record -e '{instructions,cycles}' -c 100000 [TaskTracker command]

I tested single-threaded app, such as SPEC CPU.
Everything works fine. The event grouping works fine, so as the :S flag.
However, the Java app that I tested does not.
Please let me know if any suggestions on this issue.

Thanks.

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

end of thread, other threads:[~2014-08-19 14:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 18:46 Problems with perf "event grouping" on Java apps Jen-Cheng(Tommy) Huang
2014-08-18 18:55 ` Problems with perf Tommy
2014-08-18 20:21   ` Tommy
2014-08-19  8:08     ` Jiri Olsa
2014-08-19 13:09       ` Andi Kleen
2014-08-19 14:50         ` Jen-Cheng(Tommy) Huang

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 NNTP newsgroup(s).