Warning
|
This document is in the Ratified state
No changes are allowed. Any desired or needed changes can be the subject of a follow-on new extension. Ratified extensions are never revised. |
This specification is licensed under the Creative Commons Attribution 4.0 International License (CC-BY 4.0). The full license text is available at creativecommons.org/licenses/by/4.0/.
Copyright 2024 by RISC-V International.
This RISC-V specification has been contributed to directly or indirectly by: Aaron Durbin, Allen Baum, Greg Favor, Krste Asanović, Ved Shanbhogue
Quality of Service (QoS) is defined as the minimal end-to-end performance guaranteed in advance by a service level agreement (SLA) to a workload. Performance metrics might include measures such as instructions per cycle (IPC), latency of service, etc.
When multiple workloads execute concurrently on modern processors—equipped with large core counts, multiple cache hierarchies, and multiple memory controllers—the performance of any given workload becomes less deterministic, or even non-deterministic, due to shared resource contention cite:[PTCAMP].
To manage performance variability, system software needs resource allocation and monitoring capabilities. These capabilities allow for the reservation of resources like cache and bandwidth, thus meeting individual performance targets while minimizing interference cite:[HERACLES]. For resource management, hardware should provide monitoring features that allow system software to profile workload resource consumption and allocate resources accordingly.
To facilitate this, the QoS Identifiers extension (Ssqosid) introduces the
srmcfg
register, which configures a hart with two identifiers: a Resource
Control ID (RCID
) and a Monitoring Counter ID (MCID
). These identifiers
accompany each request issued by the hart to shared resource controllers.
Additional metadata, like the nature of the memory access and the ID of the
originating supervisor domain, can accompany RCID
and MCID
. Resource
controllers may use this metadata for differentiated service such as a different
capacity allocation for code storage vs. data storage. Resource controllers can
use this data for security policies such as not exposing statistics of one
security domain to another.
These identifiers are crucial for the proposed RISC-V Capacity and Bandwidth
Controller QoS Register Interface cite:[CBQRI], which provides methods for
setting resource usage limits and monitoring resource consumption. The RCID
controls resource allocations, while the MCID
is used for tracking resource
usage.