AMD Posts Linux Patches For QoS RMID Pinning / ABMC

Written by Michael Larabel in AMD on 4 December 2023 at 09:59 AM EST. Add A Comment
AMD
One of the latest Linux kernel patch series posted by AMD Linux engineers is for enabling an AMD QoS RMID pinning feature found within their latest generation processors.

AMD QoS RMID Pinning is perhaps better known and more descriptive by its other name, Assignable Bandwidth Monitoring Counters (ABMC). The new AMD kernel patches adding this ABMC integration to the resource control "resctrl" code explains:
"AMD hardware can support 256 or more RMIDs. However, bandwidth monitoring feature only guarantees that RMIDs currently assigned to a processor will be tracked by hardware. The counters of any other RMIDs which are no longer being tracked will be reset to zero. The MBM event counters return "Unavailable" for the RMIDs that are not active.

Users can create 256 or more monitor groups. But there can be only limited number of groups that can be give guaranteed monitoring numbers. With ever changing system configuration, there is no way to definitely know which of these groups will be active for certain point of time. Users do not have the option to monitor a group or set of groups for certain period of time without worrying about RMID being reset in between.

The ABMC feature provides an option to pin (or assign) the RMID to the hardware counter and monitor the bandwidth for a longer duration. The pinned RMID will be active until the user unpins (or unassigns) it. There is no need to worry about counters being reset during this period. Additionally, the user can specify a bitmask identifying the specific bandwidth types from the given source to track with the counter."

These 15 patches now out for review allow exposing this ABMC support under Linux. Via the /sys/fs/resctrl interfaces is then support for user-space to make use of these Assignable Bandwidth Monitoring Counters for various quality of service monitoring purposes.

AMD ABMC


This feature will mainly be of interest for server administrators and those profiling AMD EPYC servers for performance bottlenecks.
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