Closed
Description
We would like to write a program that checks whether a system has Operating System and hardware support for memory bandwidth and cache allocation.
goresctrl is a go library that works with the Resource Control network subsystem. It has helper methods for finding and querying resctrl. For example, getRdtInfo()
appears to check for support for different features (CAT, MON, MBA).
The result of this ticket is either:
- a golang binary using
goresctrl
that exists with 0 ifresctrl
exists and is operational, 1 otherwise (and can print useful information about the state of the system), or - a golang test or set of tests, that if all of the tests pass,
resctrl
exists and is operational
We can put the code in pkg/checker
.
Note that getRdtInfo()
does not mount the resctrl
filesystem. Rather, it assumes it was previously mounted and finds its location, so we need to check how goresctrl
mounts the filesystem.