-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Feature request description
When running a container, I would love be able to use the Cache Allocation Technology (CAT) feature that is part of the Intel Resource Director Technology (RDT) feature set. It is already integrated into the OCI runtime spec and runc and is based on the resctrl kernel driver.
Resctrl enables a user to interact with registers that specify the RDT behaviour based on a pseudo-file system mounted at /sys/fs/resctrl. By e.g. writing the PID of a container to a subfolders' tasks file, runc enables the container to use the cache-ways defined within the bitmask within the schemata file in this subfolder. the subfolder's name is the name of the Class of service (CLOS). runc gets the CLOS name (or closID) from the intelRDT section within the Linux Container specification, for example
"linux": {
"intelRdt": {
"closID": "myClos",
}
}myClos would be the name of the CLOS, so a subfolder within /sys/fs/resctrl.
Suggest potential solution
Add a flag, similar to the one in nerdctrl or ctr, e.g. --rdt-class=myClos that is then added to the OCI spec's linux section to look like in the above example.
Additional context
Intel RDT is only supported in runc so far. So the default runtime crun does not support it so far. However, I will also open an issue to support RDT in crun.