AMD recently submitted the company’s Instruction-Based Sampling (IBS) capabilities for use in the Linux perf subsystem and utility. This new submission by the company is the first official patch for the Zen 4 CPU series.
Instruction-based sampling support for upcoming AMD Zen 4 processors under Linux review
The previous and current patch series for the new AMD Zen 4 family have had basic and lackluster terminology. With the latest patches under review, users can rest assured that the Zen 4 Linux support is currently taking effect and will be apparent in all-new patches and updates to the open-source operating system.
Zen 4 is set to enhance instruction-based sampling by creating an additional data source extension and a new L3 cache miss filtering ability.
The new Zen 4 IBS features commented on the higher priority modifications:
DataSrc extension provides additional data source details for tagged load/store operations. Add support for these new bits in perf report/script raw-dump.
IBS L3 miss filtering works by tagging an instruction on IBS counter overflow and generating an NMI if the tagged instruction causes an L3 miss. Samples without an L3 miss are discarded and counter is reset with random value (between 1-15 for fetch pmu and 1-127 for op pmu). This helps in reducing sampling overhead when user is interested only in such samples. One of the use case of such filtered samples is to feed data to page-migration daemon in tiered memory systems.
Add support for L3 miss filtering in IBS driver via new pmu attribute “l3missonly”.
Linux users will be able to read through the mailing list on the official Linux kernel site about the new Zen 4 IBS patch information.
In summary, outside of perf instruction-based sampling, the new submission for selection is also beneficial for a gradually increasing number of features for compiling to give the ability to feed the perf hardware sampling outcomes back to the compiler for aiding in designing profile-based and optimized binaries. Intel has been more aggressive with functionality and hardware performance counters developed under Linux’s upcoming operating system. Along with seeing utilization for profiling possible optimization and issues that will need debugging, the enablement by AMD for their IBS Zen 4 capability is excellent for the company.
Source: Phoronix
The post AMD preps Zen 4 IBS ‘Instruction-Based Sampling’ extensions for Linux by Jason R. Wilson appeared first on Wccftech.
Powered by WPeMatico