From: Milian Wolff <mail@milianw.de>
To: Perf Users <linux-perf-users@vger.kernel.org>
Subject: understanding power usage numbers
Date: Wed, 22 Jul 2015 20:26:41 +0200 [thread overview]
Message-ID: <2910739.Pa3ssLDFhr@agathebauer> (raw)
[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]
Hey all,
I tried to look at the power consumption numbers as reported by perf today. I
found https://lwn.net/Articles/573602/ and used this locally:
perf stat -a -e power/energy-pkg/,power/energy-cores/,power/energy-
gpu/,power/energy-ram/ -I 1000 sleep 1000
# time counts unit events
1.000124684 2.36 Joules power/energy-pkg/
(100.00%)
1.000124684 0.21 Joules power/energy-cores/
(100.00%)
1.000124684 0.00 Joules power/energy-gpu/
(100.00%)
1.000124684 1.17 Joules power/energy-ram/
2.000292827 2.32 Joules power/energy-pkg/
2.000292827 0.18 Joules power/energy-cores/
2.000292827 0.00 Joules power/energy-gpu/
2.000292827 1.16 Joules power/energy-ram/
The LWN article says:
- power/energy-cores: power consumption of all cores on socket
- power/energy-pkg : power consumption of all cores + LLC cache
Does this mean that the total power consumption can be all of the numbers
above summed up, excluding the power/energy-cores value? For the above, that
gives me roughly 3.5 J. Now how to get the Watt value? My naive assumption
would be 3.5W, as I'm sampling over one second. The LWN article says:
W = C * 2.3 / (1e10 * time)
This equation is only valid when reading the values directly, right? But when
I compare the Watt value obtained with my naive approach above it is much
lower than the value reported by powertop. I assume it's because no values are
obtained for the display and other hardware? Is that correct?
Thanks
--
Milian Wolff
mail@milianw.de
http://milianw.de
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
reply other threads:[~2015-07-22 18:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=2910739.Pa3ssLDFhr@agathebauer \
--to=mail@milianw.de \
--cc=linux-perf-users@vger.kernel.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 NNTP newsgroup(s).