Re: [PATCH v2 0/2] perf jevents: Add IOMMU PTW & device entry metrics
From: Vasant Hegde
Date: Mon Nov 16 2026 - 05:15:39 EST
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@xxxxxxxxx. 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@xxxxxxxxx>
>>
>> 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