6fa490c664
Kernel memory cannot be set in these circumstances (before kernel 4.6): 1. kernel memory is not initialized, and there are tasks in cgroup 2. kernel memory is not initialized, and use_hierarchy is enabled, and there are sub-cgroups While we don't need to cover case 2 because when we set kernel memory in runC, it's either: - in Apply phase when we create the container, and in this case, set kernel memory would definitely be valid; - or in update operation, and in this case, there would be tasks in cgroup, we only need to check if kernel memory is initialized or not. Even if we want to check use_hierarchy, we need to check sub-cgroups as well, but for here, we can just leave it aside. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com> |
||
---|---|---|
.. | ||
fs | ||
systemd | ||
cgroups.go | ||
cgroups_test.go | ||
cgroups_unsupported.go | ||
stats.go | ||
utils.go | ||
utils_test.go |