Skip to content

Add Intel RDT support #19922

@wpross

Description

@wpross

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.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions