containerd中的cgroup

西风发财發表於2024-03-21

containerd中的資源限制 具體位置:

root@master01:1432# nerdctl inspect 15dcddb6e111 --namespace=k8s.io --format '{{.State.Pid}}'
1432
root@master01:1432# cat /proc/1432/cgroup
0::/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-podc84a8d7e6a05ce695b3328aec4b998a4.slice/cri-containerd-15dcddb6e111e3afdc8ded4cabcc70505b550ccd2d8f0ad3afaba159b3d7776f.scope
 
root@master01:1432# cd /sys/fs/cgroup/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-podc84a8d7e6a05ce695b3328aec4b998a4.slice/cri-containerd-15dcddb6e111e3afdc8ded4cabcc70505b550ccd2d8f0ad3afaba159b3d7776f.scope
root@master01:cri-containerd-15dcddb6e111e3afdc8ded4cabcc70505b550ccd2d8f0ad3afaba159b3d7776f.scope# ls
cgroup.controllers cgroup.type cpu.stat hugetlb.1GB.rsvd.max io.stat memory.oom.group pids.events
cgroup.events cpu.idle cpu.uclamp.max hugetlb.2MB.current io.weight memory.pressure pids.max
cgroup.freeze cpu.max cpu.uclamp.min hugetlb.2MB.events memory.current memory.stat rdma.current
cgroup.kill cpu.max.burst cpu.weight hugetlb.2MB.events.local memory.events memory.swap.current rdma.max
cgroup.max.depth cpu.pressure cpu.weight.nice hugetlb.2MB.max memory.events.local memory.swap.events
cgroup.max.descendants cpuset.cpus hugetlb.1GB.current hugetlb.2MB.rsvd.current memory.high memory.swap.high
cgroup.procs cpuset.cpus.effective hugetlb.1GB.events hugetlb.2MB.rsvd.max memory.low memory.swap.max
cgroup.stat cpuset.cpus.partition hugetlb.1GB.events.local io.max memory.max misc.current
cgroup.subtree_control cpuset.mems hugetlb.1GB.max io.pressure memory.min misc.max
cgroup.threads cpuset.mems.effective hugetlb.1GB.rsvd.current io.prio.class memory.numa_stat pids.current
root@master01:cri-containerd-15dcddb6e111e3afdc8ded4cabcc70505b550ccd2d8f0ad3afaba159b3d7776f.scope#

相關文章