You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies that this is more of a Linux cgroup question than related to containers, but I was wondering if someone here might be able to enlighten me... @giuseppe perhaps?
Two questions:
Why on cgroups v1 do the cpuset controller's cpuset.effective_{cpus,mems} seem to simply not work?
Is there any way to check effective cgroup memory or hugetlb limits? (cgroups v1 or v2)
Didn't expect this to fail - shouldn't it automatically impose a stricter limit on any child cgroups? Do I need to manually update all child cgroups first?
But can't relax the child's cgroup restriction (i.e. need awareness of CPU restrictions already imposed above - how are you supposed to check this in a private cgroup namespace?).
There is a memory.max file, but not memory.max.effective (corresponding to cpuset.cpus.effective).
I guess you could traverse up the cgroup hierarchy to find the smallest limit being imposed... But this isn't possible inside a private cgroup namespace. Is there any way to find the actual cgroup limit imposed?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Apologies that this is more of a Linux cgroup question than related to containers, but I was wondering if someone here might be able to enlighten me... @giuseppe perhaps?
Two questions:
cpuset.effective_{cpus,mems}
seem to simply not work?Cpuset effective limits
Expected
cpuset/my-group/cpuset.effective_cpus
to give0-5
as set in the parent cgroup. Works as expected on cgroups v2.Didn't expect this to fail - shouldn't it automatically impose a stricter limit on any child cgroups? Do I need to manually update all child cgroups first?
Can impose a stricter limit on child cgroups, as expected.
But can't relax the child's cgroup restriction (i.e. need awareness of CPU restrictions already imposed above - how are you supposed to check this in a private cgroup namespace?).
Memory/Hugetlb effective limits
On cgroups v1:
There is a
memory.limit_in_bytes
file, but nomemory.effective_limit_in_bytes
to reflect parent cgroup restrictions.Similarly on cgroups v2:
There is a
memory.max
file, but notmemory.max.effective
(corresponding tocpuset.cpus.effective
).I guess you could traverse up the cgroup hierarchy to find the smallest limit being imposed... But this isn't possible inside a private cgroup namespace. Is there any way to find the actual cgroup limit imposed?
Beta Was this translation helpful? Give feedback.
All reactions