Linux 6.1 Perf Adds AMD CPU Cache-To-Cache & Memory Reporting Capabilities

Written by Michael Larabel in AMD on 10 October 2022 at 03:30 PM EDT. Add A Comment
AMD
The "perf" kernel subsystem for Linux with the perf performance analyzing tool has picked up some new AMD processor capabilities for Linux 6.1.

Beginning with Linux 6.1, perf mem and perf c2c are now wired up for use with recent AMD processors. The perf mem functionality is for various memory statistics while the perf c2c functionality is for CPU cache-to-cache information.


Via the perf tool on AMD CPUs there is now metrics around L1/L2/L3 cache hit rates, local RAM hit rates, remote RAM hit rates, remote cache hits, uncached hits, and similar metrics. This perf c2c/mem support relies on AMD CPUs with Instruction Based Sampling (IBS) support.

Also notable with the perf updates for Linux 6.1 is the LbrExtV2 support for Zen 4 processors. This is around the Last Branch Record Extension v2 functionality. The AMD LbrExtV2 adds LBR-Freeze-on-PMI for better correlation with PMC overflow events. There is also new hardware branch filtering support for recording just specific types of branches. The LbrExtV2 filtering includes being able to suppress branches for just kernel-only, user-space only, conditional branches, near relative calls, near indirect calls, near returns, near indirect jumps, near relative jumps, and far branches.

With the perf core changes for Linux 6.1 is also improved Intel PEBS TSC timestamp integration, Intel Raptor Lake S CPU support, hardware breakpoint improvements, and other fixes.

The perf tooling updates have the rest of the AMD perf mem/c2c bits plus improvements to perf lock / lock contention, Intel PT improvements, and other additions.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week