cgroups
cgroups copied to clipboard
cgroup v2 does not set CPUQuotaPeriodUSec
Currently cgroup2 systemd implementation does not set CPUQuotaPeriodUSec property.
Similar support was added into runc's cgroup implementation:
- https://github.com/opencontainers/runc/issues/2465
- https://github.com/opencontainers/runc/pull/2466
Shall we replicate the same logic in this package?
Amazon ECS observes impact from this issue via the amazon-ecs-agent repository when creating cgroup using cgroups v2 and passing in CPU period as part of cgroup specs here: https://github.com/aws/amazon-ecs-agent/blob/64a89e1343939398ef49ccd7101939a32a84c52e/agent/taskresource/cgroup/control/cgroupv2_controller_linux.go#L52.