> 2024年9月10日 17:35,Michal Koutný <mkoutny@xxxxxxxx> 写道: > > Hello. > > On Tue, Sep 10, 2024 at 03:48:32PM GMT, Liu Song <liusong@xxxxxxxxxxxxxxxxx> wrote: >> For the handling logic of child_quota, there is no need to distinguish >> between cgroup1 and cgroup2, so unify the handling logic here. > > IIUC, v1 check prevents quota overcommit while v2 doesn't. So this > isn't user invisible change (i.e. there may be a need to distinguish the > two). > Hi In cgroup2, child task group quota can set exceed parent task group quota. However, at the scheduling level, the cpu runqueue (rq) performs checks on the runtime of the CFS run queue (cfs_rq) in a hierarchical way. Therefore, even though the child group quota appears to be greater than the parent group quota, it will not actually receive a runtime that exceeds the parent's quota. This logic also holds true for cgroup1, so there is no need to differentiate the handling logic in this case. Thanks > Regards, > Michal