Skip to content

Create checker for resctrl support in a system #9

Closed
@yonch

Description

@yonch

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 if resctrl 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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions