-
Notifications
You must be signed in to change notification settings - Fork 373
cpuset: fixes to address VM sizing and constraining based on cpuset.mems #2972
Conversation
CPUSet cgroup allows for pinning the memory associated with a cpuset to a given numa node. Similar to cpuset.cpus, we should take cpuset.mems into account for the sandbox-cgroup that Kata creates. Fixes: kata-containers#2970 Signed-off-by: Eric Ernst <[email protected]>
/test |
@egernst, please take a look:
And a general comment, we're now mixing cpu and memory sets / getters. Wouldn't be better to have one function for each one of those, as we already do in the sandbox level? |
Hmm. No, thinking a little bit more about this, no. It's specfically related to cpuset. So, please, ignore my previous suggestion. |
04c96b4
to
479fd70
Compare
/test |
479fd70
to
a7b019d
Compare
/test |
a7b019d
to
7788cb7
Compare
(sorry to keep thrashing the CI). /test |
7788cb7
to
f49d6fc
Compare
/test |
Codecov Report
@@ Coverage Diff @@
## master #2972 +/- ##
==========================================
- Coverage 51.65% 45.17% -6.49%
==========================================
Files 118 118
Lines 17430 15565 -1865
==========================================
- Hits 9003 7031 -1972
- Misses 7342 7667 +325
+ Partials 1085 867 -218 |
If quota is not being enforced on any containers but CPUsets are specified, take the number of CPU sets into account when sizing the virtual machine. Fixes: kata-containers#2971 Signed-off-by: Eric Ernst <[email protected]>
f49d6fc
to
8ef2946
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @egernst.
lgtm
/test metrics-ubuntu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @egernst
a given numa node. Similar to cpuset.cpus, we should take cpuset.mems
into account for the sandbox-cgroup that Kata creates.
specified, take the number of CPU sets into account when sizing the
virtual machine.