From: Ingo Molnar <mingo@elte.hu>
To: Zhang Rui <rui.zhang@intel.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-pm <linux-pm@lists.linux-foundation.org>,
a.p.zijlstra@chello.nl, ming.m.lin@intel.com, acme@redhat.com,
"Brown, Len" <lenb@kernel.org>,
"Arjan van de Ven" <arjan@infradead.org>,
"Frédéric Weisbecker" <fweisbec@gmail.com>,
"Thomas Gleixner" <tglx@linutronix.de>
Subject: Re: [PATCH 3/3] show energy consumption info in perf tool
Date: Thu, 26 May 2011 12:49:37 +0200 [thread overview]
Message-ID: <20110526104937.GE1763@elte.hu> (raw)
In-Reply-To: <1306398855.2207.156.camel@rui>
* Zhang Rui <rui.zhang@intel.com> wrote:
> Introduce four new perf software events
>
> PERF_COUNT_SW_PKG_ENERGY
> PERF_COUNT_SW_CORE_ENERGY
> PERF_COUNT_SW_UNCORE_ENERGY
> and
> PERF_COUNT_SW_DRAM_ENERGY
>
> To use it, users can run
> perf stat -e pkg-energy foo
> to get the package energy consumption when running foo.
That's very interesting - being able to profile workloads by
power/energy use looks like a *very* powerful feature.
Are you allowed to show us some sample output of the data? What's the
granularity of this info? Say what is the output of:
perf stat -e pkg-energy -e core-energy -e uncore-energy -e dram-energy -a sleep 10
?
Also, have you tried something like:
perf record -a -e pkg-energy sleep 60
perf report
To see where most of the energy is used within a 1 minute interval?
Also, conceptually these are really hardware events, right?
Thanks,
Ingo
prev parent reply other threads:[~2011-05-26 10:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-26 8:34 Zhang Rui
2011-05-26 10:49 ` Ingo Molnar [this message]
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=20110526104937.GE1763@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=arjan@infradead.org \
--cc=fweisbec@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=ming.m.lin@intel.com \
--cc=rui.zhang@intel.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®