What is the relationship between cpu.shares and cpu.cfs_quota_us in context of cgroup?
问题 I'm using centos6/7 and using cgroup to manage cpu resources. I have read through the RHEL document but have no answer to my question below: If I set both cfs_quota_us and shares among cgroups, then what will happen? (e.g. will cfs_quota_us take precedence over shares?) Thank you in anticipation! 回答1: My understanding is that for the same level of two cgroups (only), e.g.: foo | +- bar | +- baz Then bar and baz will firstly share the cpu occupied on foo according to cpu.share . Let's say the