From: Ingo Molnar <mingo@elte.hu>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andi Kleen <andi@firstfloor.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Thomas Gleixner <tglx@linutronix.de>,
Arjan van de Ven <arjan@linux.intel.com>,
Andre@firstfloor.org, ltt-dev@lists.casi.polymtl.ca,
linux-kernel@vger.kernel.org, pierre-marc.fournier@polymtl.ca
Subject: Re: [ANNOUNCE] New tools: lttngtrace and lttngreport
Date: Wed, 17 Nov 2010 23:01:52 +0100 [thread overview]
Message-ID: <20101117220152.GA2915@elte.hu> (raw)
In-Reply-To: <20101117173124.GB13717@Krystal>
* Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:
> Well, I'm afraid the collection approach "trace" is currently taking won't allow
> this kind of dependency wakeup chain tracking, because they focus on tracing
> operations happening on a thread and its children, but the reality is that the
> wakeup chains often spread outside of this scope.
>
> This is why lttngtrace gathers a system-wide trace even though we're mostly
> intested in the wait/wakeups of a specific PID.
Mathieu, what you say is factually wrong - of course perf events allows system-wide
tracing, it always did.
This is available in the 'trace' tool as well, try:
$ trace record --all sleep 1 # do system-wide tracing
# trace recorded [1.928 MB] - try 'trace summary' to get an overview
$ trace summary
.-----------------------------------.
__) Summary of 'sleep 1' events (__
[ task - pid ] [ events ] [ ratio ] [ runtime ]
_____________________________________________________________________
swapper - 0 : 64 [ 0.4% ] 0.000 ms
ksoftirqd/0 - 3 : 6 [ 0.0% ] 0.063 ms
migration/1 - 7 : 2 [ 0.0% ] 0.000 ms
kworker/0:1 - 10 : 6 [ 0.0% ] 0.139 ms
kworker/6:1 - 53 : 3 [ 0.0% ] 0.014 ms
kworker/5:1 - 54 : 3 [ 0.0% ] 0.014 ms
kworker/4:1 - 55 : 3 [ 0.0% ] 0.014 ms
kworker/3:1 - 56 : 3 [ 0.0% ] 0.015 ms
kworker/2:1 - 57 : 3 [ 0.0% ] 0.015 ms
kworker/1:1 - 58 : 3 [ 0.0% ] 0.015 ms
kworker/15:1 - 318 : 6 [ 0.0% ] 0.045 ms
kworker/14:1 - 319 : 6 [ 0.0% ] 0.033 ms
kworker/13:1 - 320 : 6 [ 0.0% ] 0.036 ms
kworker/12:1 - 321 : 6 [ 0.0% ] 0.035 ms
kworker/11:1 - 322 : 6 [ 0.0% ] 0.041 ms
kworker/10:1 - 323 : 6 [ 0.0% ] 0.037 ms
kworker/9:1 - 324 : 6 [ 0.0% ] 0.042 ms
kworker/7:1 - 326 : 6 [ 0.0% ] 0.032 ms
kworker/8:2 - 1047 : 6 [ 0.0% ] 0.039 ms
sendmail - 2327 : 18 [ 0.1% ] 0.111 ms
trace - 32281 : 15728 [ 96.2% ] 86.478 ms
sleep - 32282 : 460 [ 2.8% ] 1.305 ms
_____________________________________________________________________
As you can see all those kworker events - it's a system-wide trace.
This is in addition to per process and per workflow (child hierarchy) tracing -
which we expect to be more commonly used.
Thanks,
Ingo
next prev parent reply other threads:[~2010-11-17 22:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-15 13:42 [ANNOUNCE] New tools: lttngtrace and lttngreport Mathieu Desnoyers
2010-11-15 16:07 ` Mathieu Desnoyers
2010-11-17 11:37 ` Andi Kleen
2010-11-17 11:47 ` [ltt-dev] " Benjamin Poirier
2010-11-17 17:31 ` Mathieu Desnoyers
2010-11-17 21:44 ` Thomas Gleixner
2010-11-17 22:33 ` Steven Rostedt
2010-11-18 12:57 ` Mathieu Desnoyers
2010-11-17 22:01 ` Ingo Molnar [this message]
2010-11-18 2:38 ` Mathieu Desnoyers
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=20101117220152.GA2915@elte.hu \
--to=mingo@elte.hu \
--cc=Andre@firstfloor.org \
--cc=andi@firstfloor.org \
--cc=arjan@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ltt-dev@lists.casi.polymtl.ca \
--cc=mathieu.desnoyers@efficios.com \
--cc=pierre-marc.fournier@polymtl.ca \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.