cgroups
cgroups copied to clipboard
cgroups package for Go
In some kernel, the cpuacct.stat has more than 4 fields. ``` # cat /sys/fs/cgroup/cpuacct/kubepods/besteffort/pod7a0c0cd5-4414-4a20-9105-993e7cbaf371/5a73789dcb4fd96e5d4946dd9ea7ed444c3c896eb51f6a98c8cff11e0b1ec48c/cpuacct.stat user 32 system 89 sched_delay 0 ``` should handle this case. Signed-off-by: Guodong Zhu
The kernel will block an attempt to rmdir a cgroup path that still has running processes in it. Since the removal code uses the standard `os.RemoveAll` function, the Go runtime...
In NewSystemd, if the slice ends with .scope, we put into a Slice=PropSlice(slice). refer to: https://github.com/opencontainers/runc/blob/main/libcontainer/cgroups/systemd/v2.go#L262
Just stumbled upon https://github.com/containerd/cgroups/pull/77/files#r259087886 thanks @mikebrow Signed-off-by: Abirdcfly
We'd like to migrate off from gogo/protobuf. The package is looking for new ownership since 2020. See https://github.com/containerd/containerd/issues/6564 for the detail. Signed-off-by: Kazuyoshi Kato
Kernel 5.14 added support for a `cgroup.kill` file in cgroupv2; writing "1" to this file will immediately send SIGKILL to all processes in that cgroup hierarchy. I have a local...
Update of devices in cgroup v2 will override runc settings. This is not an addition, but a complete overwrite. Therefore, it will overwrite the default settings. I'd like to fix...
https://github.com/containerd/containerd/issues/6542 > We have been using Vagrant on macOS on GHA for testing Fedora 35, but we are not happy with its performance and flakiness. So probably we should use...
In the context of kata containers, I am trying to figure out how to write code that works both for legacy and unified mode. I did not find any good...
Hi, sorry for creating an issue but I didn't know where to ask a quesiton. Can this library be used in a running container to get cgroups memory limits? I...