lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 26 May 2011 12:49:37 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Zhang Rui <rui.zhang@...el.com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	linux-pm <linux-pm@...ts.linux-foundation.org>,
	a.p.zijlstra@...llo.nl, ming.m.lin@...el.com, acme@...hat.com,
	"Brown, Len" <lenb@...nel.org>,
	Arjan van de Ven <arjan@...radead.org>,
	Frédéric Weisbecker <fweisbec@...il.com>,
	Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH 3/3] show energy consumption info in perf tool


* Zhang Rui <rui.zhang@...el.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ