Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdt: implement GetCPUs() and SetCPUs() #26

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented Feb 16, 2021

Functionality for associating CPUs with classes. Under the hood
goresctrl will write the given CPU ids to the "cpus_list" file of the
corresponding resctrl group.

The hierarchy between task and cpu lists is as follows (imposed by the
resctrl filesystem):

  1. If a process PID is in the tasks file of a non-root class then that
    class is in effect
  2. Else, if a process is running on a CPU that is associated with a class,
    then this class is in effect
  3. Else the root class is in effect

Functionality for associating CPUs with classes. Under the hood
goresctrl will write the given CPU ids to the "cpus_list" file of the
corresponding resctrl group.

The hierarchy between task and cpu lists is as follows (imposed by the
resctrl filesystem):
1. If a process PID is in the tasks file of a non-root class then that
   class is in effect
2. Else, if a process is running on a CPU that is associated with a class,
   then this class is in effect
3. Else the root class is in effect
@klihub
Copy link
Contributor

klihub commented Feb 17, 2021

Looks already pretty good to me in this draft...

@askervin
Copy link
Contributor

Looking good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants