2023-09-27 04:55:14

by Ian Rogers

[permalink] [raw]
Subject: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric

Broadwell-de has a consumer core and server uncore. The uncore_arb PMU
isn't present and the broadwellx style cbox PMU should be used
instead. Fix the tma_info_system_dram_bw_use metric to use the server
metric rather than client.

The associated converter script fix is in:
https://github.com/intel/perfmon/pull/111

Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell variant events/metrics")
Signed-off-by: Ian Rogers <[email protected]>
---
tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
index 8fc62b8f667d..d0ef46c9bb61 100644
--- a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
+++ b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
@@ -652,7 +652,7 @@
},
{
"BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
- "MetricExpr": "64 * (arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@) / 1e6 / duration_time / 1e3",
+ "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
"MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
"MetricName": "tma_info_system_dram_bw_use",
"PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"
--
2.42.0.515.g380fc7ccd1-goog


2023-09-27 15:55:40

by Liang, Kan

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric



On 2023-09-26 4:59 p.m., Ian Rogers wrote:
> Broadwell-de has a consumer core and server uncore. The uncore_arb PMU
> isn't present and the broadwellx style cbox PMU should be used
> instead. Fix the tma_info_system_dram_bw_use metric to use the server
> metric rather than client.
>
> The associated converter script fix is in:
> https://github.com/intel/perfmon/pull/111
>
> Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell variant events/metrics")
> Signed-off-by: Ian Rogers <[email protected]>
> ---

Thanks Ian. The whole patch series looks good to me.

Reviewed-by: Kan Liang <[email protected]>

Thanks,
Kan

> tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> index 8fc62b8f667d..d0ef46c9bb61 100644
> --- a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> +++ b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> @@ -652,7 +652,7 @@
> },
> {
> "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
> - "MetricExpr": "64 * (arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@) / 1e6 / duration_time / 1e3",
> + "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
> "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
> "MetricName": "tma_info_system_dram_bw_use",
> "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"

2023-10-05 22:17:11

by Ian Rogers

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric

On Wed, Sep 27, 2023 at 6:47 AM Liang, Kan <[email protected]> wrote:
>
>
>
> On 2023-09-26 4:59 p.m., Ian Rogers wrote:
> > Broadwell-de has a consumer core and server uncore. The uncore_arb PMU
> > isn't present and the broadwellx style cbox PMU should be used
> > instead. Fix the tma_info_system_dram_bw_use metric to use the server
> > metric rather than client.
> >
> > The associated converter script fix is in:
> > https://github.com/intel/perfmon/pull/111
> >
> > Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell variant events/metrics")
> > Signed-off-by: Ian Rogers <[email protected]>
> > ---
>
> Thanks Ian. The whole patch series looks good to me.
>
> Reviewed-by: Kan Liang <[email protected]>

Would be good to pick this up in perf-tools-next.

Thanks,
Ian

> Thanks,
> Kan
>
> > tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > index 8fc62b8f667d..d0ef46c9bb61 100644
> > --- a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > +++ b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > @@ -652,7 +652,7 @@
> > },
> > {
> > "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
> > - "MetricExpr": "64 * (arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@) / 1e6 / duration_time / 1e3",
> > + "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
> > "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
> > "MetricName": "tma_info_system_dram_bw_use",
> > "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"

2023-10-25 21:57:02

by Ian Rogers

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric

On Thu, Oct 5, 2023 at 3:16 PM Ian Rogers <[email protected]> wrote:
>
> On Wed, Sep 27, 2023 at 6:47 AM Liang, Kan <[email protected]> wrote:
> >
> >
> >
> > On 2023-09-26 4:59 p.m., Ian Rogers wrote:
> > > Broadwell-de has a consumer core and server uncore. The uncore_arb PMU
> > > isn't present and the broadwellx style cbox PMU should be used
> > > instead. Fix the tma_info_system_dram_bw_use metric to use the server
> > > metric rather than client.
> > >
> > > The associated converter script fix is in:
> > > https://github.com/intel/perfmon/pull/111
> > >
> > > Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell variant events/metrics")
> > > Signed-off-by: Ian Rogers <[email protected]>
> > > ---
> >
> > Thanks Ian. The whole patch series looks good to me.
> >
> > Reviewed-by: Kan Liang <[email protected]>
>
> Would be good to pick this up in perf-tools-next.
>
> Thanks,
> Ian

Ping.

Thanks,
Ian

> > Thanks,
> > Kan
> >
> > > tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > > index 8fc62b8f667d..d0ef46c9bb61 100644
> > > --- a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > > +++ b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > > @@ -652,7 +652,7 @@
> > > },
> > > {
> > > "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
> > > - "MetricExpr": "64 * (arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@) / 1e6 / duration_time / 1e3",
> > > + "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
> > > "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
> > > "MetricName": "tma_info_system_dram_bw_use",
> > > "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"

2023-10-26 04:20:47

by Ian Rogers

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric

On Wed, Oct 25, 2023 at 2:56 PM Ian Rogers <[email protected]> wrote:
>
> On Thu, Oct 5, 2023 at 3:16 PM Ian Rogers <[email protected]> wrote:
> >
> > On Wed, Sep 27, 2023 at 6:47 AM Liang, Kan <[email protected]> wrote:
> > >
> > >
> > >
> > > On 2023-09-26 4:59 p.m., Ian Rogers wrote:
> > > > Broadwell-de has a consumer core and server uncore. The uncore_arb PMU
> > > > isn't present and the broadwellx style cbox PMU should be used
> > > > instead. Fix the tma_info_system_dram_bw_use metric to use the server
> > > > metric rather than client.
> > > >
> > > > The associated converter script fix is in:
> > > > https://github.com/intel/perfmon/pull/111
> > > >
> > > > Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell variant events/metrics")
> > > > Signed-off-by: Ian Rogers <[email protected]>
> > > > ---
> > >
> > > Thanks Ian. The whole patch series looks good to me.
> > >
> > > Reviewed-by: Kan Liang <[email protected]>
> >
> > Would be good to pick this up in perf-tools-next.
> >
> > Thanks,
> > Ian
>
> Ping.

Thanks Namhyung for picking this up. There were two other patches in
the v2 patch set that Kan reviewed:
https://lore.kernel.org/all/[email protected]/
that I don't see in perf-tools-next.

Ian

> Thanks,
> Ian
>
> > > Thanks,
> > > Kan
> > >
> > > > tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json | 2 +-
> > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > > > index 8fc62b8f667d..d0ef46c9bb61 100644
> > > > --- a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > > > +++ b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json
> > > > @@ -652,7 +652,7 @@
> > > > },
> > > > {
> > > > "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
> > > > - "MetricExpr": "64 * (arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@) / 1e6 / duration_time / 1e3",
> > > > + "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
> > > > "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
> > > > "MetricName": "tma_info_system_dram_bw_use",
> > > > "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"

2023-10-26 17:13:11

by Namhyung Kim

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric

Hi Ian,

On Wed, Oct 25, 2023 at 9:20 PM Ian Rogers <[email protected]> wrote:
>
> On Wed, Oct 25, 2023 at 2:56 PM Ian Rogers <[email protected]> wrote:
> >
> > On Thu, Oct 5, 2023 at 3:16 PM Ian Rogers <[email protected]> wrote:
> > >
> > > On Wed, Sep 27, 2023 at 6:47 AM Liang, Kan <[email protected]> wrote:
> > > >
> > > >
> > > >
> > > > On 2023-09-26 4:59 p.m., Ian Rogers wrote:
> > > > > Broadwell-de has a consumer core and server uncore. The uncore_arb PMU
> > > > > isn't present and the broadwellx style cbox PMU should be used
> > > > > instead. Fix the tma_info_system_dram_bw_use metric to use the server
> > > > > metric rather than client.
> > > > >
> > > > > The associated converter script fix is in:
> > > > > https://github.com/intel/perfmon/pull/111
> > > > >
> > > > > Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell variant events/metrics")
> > > > > Signed-off-by: Ian Rogers <[email protected]>
> > > > > ---
> > > >
> > > > Thanks Ian. The whole patch series looks good to me.
> > > >
> > > > Reviewed-by: Kan Liang <[email protected]>
> > >
> > > Would be good to pick this up in perf-tools-next.
> > >
> > > Thanks,
> > > Ian
> >
> > Ping.
>
> Thanks Namhyung for picking this up. There were two other patches in
> the v2 patch set that Kan reviewed:
> https://lore.kernel.org/all/[email protected]/
> that I don't see in perf-tools-next.

Sorry about that. I'll take care of them too.

Thanks,
Namhyung

2023-10-30 19:01:43

by Namhyung Kim

[permalink] [raw]
Subject: Re: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric

On Thu, Oct 26, 2023 at 10:12 AM Namhyung Kim <[email protected]> wrote:
>
> Hi Ian,
>
> On Wed, Oct 25, 2023 at 9:20 PM Ian Rogers <[email protected]> wrote:
> >
> > On Wed, Oct 25, 2023 at 2:56 PM Ian Rogers <[email protected]> wrote:
> > >
> > > On Thu, Oct 5, 2023 at 3:16 PM Ian Rogers <[email protected]> wrote:
> > > >
> > > > On Wed, Sep 27, 2023 at 6:47 AM Liang, Kan <[email protected]> wrote:
> > > > >
> > > > >
> > > > >
> > > > > On 2023-09-26 4:59 p.m., Ian Rogers wrote:
> > > > > > Broadwell-de has a consumer core and server uncore. The uncore_arb PMU
> > > > > > isn't present and the broadwellx style cbox PMU should be used
> > > > > > instead. Fix the tma_info_system_dram_bw_use metric to use the server
> > > > > > metric rather than client.
> > > > > >
> > > > > > The associated converter script fix is in:
> > > > > > https://github.com/intel/perfmon/pull/111
> > > > > >
> > > > > > Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell variant events/metrics")
> > > > > > Signed-off-by: Ian Rogers <[email protected]>
> > > > > > ---
> > > > >
> > > > > Thanks Ian. The whole patch series looks good to me.
> > > > >
> > > > > Reviewed-by: Kan Liang <[email protected]>
> > > >
> > > > Would be good to pick this up in perf-tools-next.
> > > >
> > > > Thanks,
> > > > Ian
> > >
> > > Ping.
> >
> > Thanks Namhyung for picking this up. There were two other patches in
> > the v2 patch set that Kan reviewed:
> > https://lore.kernel.org/all/[email protected]/
> > that I don't see in perf-tools-next.
>
> Sorry about that. I'll take care of them too.

Applied to perf-tools-next, thanks!