Linux Perf Users
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jacob Lefkowitz" <jlefkowi@akamai.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v2 1/2] perf jevents: add iommu page table walk metrics
Date: Mon, 02 Nov 2026 21:22:14 +0000	[thread overview]
Message-ID: <sashiko-outbox-194191@kernel.org> (raw)
In-Reply-To: <20261102-perf-tools-next-v2-1-4d237f886710@akamai.com>

> From: Jacob Lefkowitz <jlefkowi@akamai.com>
> 
> Adds page table walk metrics specfically to perf jevents for AMD
> platforms to enhance observability into IOMMU overhead. The metrics
> are supported on Zen 2 and neweer processors. They are implemented
> using the amd_iommu PMU events.
> 
> The list of metrics added here are:
> - lpm_iommu_ptw_reads_per_tlb_miss
> - lpm_iommu_ptw_nested_read_ratio
> - lpm_iommu_ptw_guest_read_ratio
> - lpm_iommu_trans_per_sec
> 
> The changes here have been tested with 'sleep 10' as the workload:
> 
> perf stat -M iommuptw --per-socket --metric-only -j -a -- sleep 10
> {"socket" : "S0", "counters" : 8,
> "reads/tlb_miss lpm_iommu_ptw_reads_per_tlb_miss" : "0.5",
> "%  lpm_iommu_ptw_nested_read_ratio" : "none",
> "%  lpm_iommu_ptw_guest_read_ratio" : "0.0",
> "trans/s  lpm_iommu_trans_per_sec" : "971.5"}
> {"socket" : "S1", "counters" : 0,
> "reads/tlb_miss  lpm_iommu_ptw_reads_per_tlb_miss" : "none",
> "%  lpm_iommu_ptw_nested_read_ratio" : "none",
> "%  lpm_iommu_ptw_guest_read_ratio" : "none,
> "trans/s  lpm_iommu_trans_per_sec" : "none"}
> 
> Signed-off-by: Jacob Lefkowitz <jlefkowi@akamai.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261102-perf-tools-next-v2-0-4d237f886710@akamai.com?part=1


  reply	other threads:[~2026-11-02 21:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 21:14 [PATCH v2 0/2] perf jevents: Add IOMMU PTW & device entry metrics Jacob Lefkowitz via B4 Relay
2026-11-02 21:14 ` [PATCH v2 1/2] perf jevents: add iommu page table walk metrics Jacob Lefkowitz via B4 Relay
2026-11-02 21:22   ` sashiko-bot [this message]
2026-11-02 21:14 ` [PATCH v2 2/2] perf jevents: add amd specific device table entry metrics Jacob Lefkowitz via B4 Relay
2026-11-02 21:18   ` sashiko-bot

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=sashiko-outbox-194191@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=jlefkowi@akamai.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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