[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <803f7ef2-f217-65fe-d0b9-98ae469556fa@collabora.com>
Date: Tue, 28 Feb 2023 19:20:48 +0500
From: Muhammad Usama Anjum <usama.anjum@...labora.com>
To: Stephane Eranian <eranian@...gle.com>,
Wyes Karny <wyes.karny@....com>
Cc: Muhammad Usama Anjum <usama.anjum@...labora.com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, hpa@...or.com,
x86@...nel.org, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org, gautham.shenoy@....com,
ananth.narayan@....com,
"kernel@...labora.com" <kernel@...labora.com>
Subject: Re: [PATCH] perf/x86/rapl: Enable Core RAPL for AMD
On 2/21/23 1:50 PM, Stephane Eranian wrote:
> Hi,
>
> Testing Wyes' patch for energy-cores on Zen3 server loaded with triad
> bench on socket0:
>
> $ perf stat --per-core -a -C0-63 -I 1000 -e
> power/energy-cores/,power/energy-pkg/
> # time core cpus counts unit events
> 1.001019203 S0-D0-C0 1 1.28 Joules
> power/energy-cores/
> 1.001019203 S0-D0-C0 1 231.38 Joules
> power/energy-pkg/
> 1.001019203 S0-D0-C1 1 4,294,967,130.96 Joules
> power/energy-cores/
> 1.001019203 S0-D0-C1 1 231.38 Joules
> power/energy-pkg/
> 1.001019203 S0-D0-C2 1 4,294,967,126.23 Joules
> power/energy-cores/
> 1.001019203 S0-D0-C2 1 231.38 Joules
> power/energy-pkg/
> 1.001019203 S0-D0-C3 1 4,294,967,122.50 Joules
> power/energy-cores/
> 1.001019203 S0-D0-C3 1 231.38 Joules
> power/energy-pkg/
> 1.001019203 S0-D0-C4 1 4,294,967,129.92 Joules
> power/energy-cores/
> 1.001019203 S0-D0-C4 1 231.38 Joules
> power/energy-pkg/
> 1.001019203 S0-D0-C5 1 4,294,967,121.49 Joules
> power/energy-cores/
> 1.001019203 S0-D0-C5 1 231.39 Joules
> power/energy-pkg/
>
> I think the result of energy-cores is not reliable and I think that is
> why I did not
> include it in the patch.
>
> Could also be a problem with the kernel code, but I don't know why it would only
> impact energy-cores given energy-pkg looks reasonable here.
>
I'm getting consistent per core energy measurements on AMD Custom APU 405.
Probably consistency depends on the chip.
sudo perf stat -a --per-core -C 0-7 -e power/energy-cores/
Performance counter stats for 'system wide':
S0-D0-C0 2 0.51 Joules power/energy-cores/
S0-D0-C1 2 0.51 Joules power/energy-cores/
S0-D0-C2 2 0.51 Joules power/energy-cores/
S0-D0-C3 2 0.51 Joules power/energy-cores/
What is the fate of this patch now?
[..]
>>>> Stephane, this was an oversight?
>>>>
>>> I think it may depend on the CPU model. I remember it returning either
>>> 0 or bogus values on my systems. They may have improved that.
>>> The commit msg does not show which CPU model this is run on.
>>
>> I've tested this on Zen 2, 3 and 4 server systems.
>>
>> Thanks,
>> Wyes
--
BR,
Muhammad Usama Anjum
Powered by blists - more mailing lists