-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add Intel RDT support #19922
Copy link
Copy link
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.
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.
Resctrlenables 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'tasksfile,runcenables the container to use the cache-ways defined within thebitmaskwithin theschematafile in this subfolder. the subfolder's name is the name of theClass of service (CLOS).runcgets the CLOS name (orclosID) from theintelRDTsection within the Linux Container specification, for examplemyCloswould 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=myClosthat is then added to the OCI spec'slinuxsection to look like in the above example.Additional context
Intel RDT is only supported in
runcso far. So the default runtimecrundoes not support it so far. However, I will also open an issue to support RDT incrun.