From: Vasant Hegde <vasant.hegde@amd.com>
To: Ravi Bangoria <ravi.bangoria@amd.com>,
Hang Zhengyang <hang.zhengyang1010@gmail.com>,
Jacob Lefkowitz <jlefkowi@akamai.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
James Clark <james.clark@linaro.org>,
Ben Chaney <bchaney@akamai.com>,
Matt Pelland <mpelland@akamai.com>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/2] perf jevents: Add IOMMU PTW & device entry metrics
Date: Mon, 16 Nov 2026 15:45:15 +0530 [thread overview]
Message-ID: <bd63e202-7ee0-4943-bdbe-44bf7655afa0@amd.com> (raw)
In-Reply-To: <c52fb4b3-1b9a-40ff-ad6f-5d2325443a73@amd.com>
Hi,
On 11/14/2026 8:59 AM, Ravi Bangoria wrote:
> On 10-Nov-26 8:52 AM, Hang Zhengyang wrote:
>> [You don't often get email from hang.zhengyang1010@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>>
>> On Mon, 02 Nov 2026 21:14:15 +0000, Jacob Lefkowitz wrote:
>>> Adds AMD specific metrics for the IOMMU with respect to page table
>>> walks and device table entires.
>>
>> Tested on Zen 3 (Ryzen 7 PRO 5850U) on top of perf-tools-next
>> 13a8d580433a. Both groups show up and count, perf test 130 and 131
>> pass, and under O_DIRECT reads from NVMe the values match the raw
>> amd_iommu_0 counts.
>>
>> Tested-by: Hang Zhengyang <hang.zhengyang1010@gmail.com>
>>
>> Two values look odd on this machine:
>>
>> - lpm_iommu_ptw_nested_read_ratio is 100% with no guest running:
>> page_tbl_read_nst equals page_tbl_read_tot.
Its host or nested page table walk. I think this number is fine.
>>
>> - lpm_iommu_ptw_reads_per_tlb_miss is about 0.2: 142588 page table
>> reads against 440805 pte and 192018 pde misses.
This one is not adding up. I will check internally and get back to you.
-Vasant
prev parent reply other threads:[~2026-11-16 10:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 21:14 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:14 ` [PATCH v2 2/2] perf jevents: add amd specific device table entry metrics Jacob Lefkowitz via B4 Relay
2026-11-10 3:22 ` [PATCH v2 0/2] perf jevents: Add IOMMU PTW & device " Hang Zhengyang
2026-11-14 3:29 ` Ravi Bangoria
2026-11-16 10:15 ` Vasant Hegde [this message]
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=bd63e202-7ee0-4943-bdbe-44bf7655afa0@amd.com \
--to=vasant.hegde@amd.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=bchaney@akamai.com \
--cc=hang.zhengyang1010@gmail.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jlefkowi@akamai.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=mpelland@akamai.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=ravi.bangoria@amd.com \
/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
all inboxes | Powered by JetHome®