cgroupv2

https://arthurchiao.art/blog/k8s-cgroup-zh/

https://zhuanlan.zhihu.com/p/658635638

https://zhuanlan.zhihu.com/p/643942399

https://www.cnblogs.com/xzy186/p/16202563.html

https://www.vvave.net/archives/introduction-to-linux-kernel-control-groups-v2.html

https://adtxl.com/index.php/archives/179.html

https://www.lixueduan.com/posts/linux/08-cgroup-v2/

https://www.alibabacloud.com/blog/enable-cgroup-v2-on-alibaba-cloud-container-service-for-kubernetes_600413

https://plantegg.github.io/2020/11/15/Linux内存--HugePage/

https://www.hiascend.com/doc_center/source/zh/Pytorch/600/ptmoddevg/trainingmigrguide/performance_tuning_0069.html

https://help.aliyun.com/zh/alinux/user-guide/hugetext

https://arthurchiao.art/blog/cgroupv2-zh/#hugetlb-interface-files

https://github.com/0voice/kernel_new_features/blob/main/cgroups/文章/[译] Control Group v2(cgroupv2 权威指南)(KernelDoc, 2021).md

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

# 启用 cgroup v2 支持
./scripts/config -e CONFIG_CGROUPS
./scripts/config -e CONFIG_CGROUP_V2

# 启用各个控制器
./scripts/config -e CONFIG_CGROUP_CPU
./scripts/config -e CONFIG_CGROUP_MEMORY
./scripts/config -e CONFIG_CGROUP_IO
./scripts/config -e CONFIG_CGROUP_PIDS
./scripts/config -e CONFIG_CGROUP_RDMA
./scripts/config -e CONFIG_CGROUP_HUGETLB
./scripts/config -e CONFIG_CGROUP_CPUSET
./scripts/config -e CONFIG_CGROUP_DEVICES
./scripts/config -e CONFIG_CGROUP_FREEZER
./scripts/config -e CONFIG_CGROUP_NET_CLASSID
./scripts/config -e CONFIG_CGROUP_NET_PRIO
./scripts/config -e CONFIG_CGROUP_PERF

 

# 禁用 COMPILE_TEST
./scripts/config -d COMPILE_TEST

# 启用内核调试支持
./scripts/config -e DEBUG_KERNEL
./scripts/config -e FRAME_POINTER
./scripts/config -e KGDB
./scripts/config -e KGDB_SERIAL_CONSOLE
./scripts/config -e DEBUG_INFO
./scripts/config -e DEBUG_FS

# 启用 BPF 支持
./scripts/config -e BPF
./scripts/config -e BPF_SYSCALL
./scripts/config -e BPF_JIT
./scripts/config -e HAVE_EBPF_JIT
./scripts/config -e BPF_EVENTS
./scripts/config -e HAVE_BPF_JIT

# 启用网络 BPF 支持
./scripts/config -m NET_CLS_BPF
./scripts/config -m NET_ACT_BPF

# 启用跟踪和探测支持
./scripts/config -e FTRACE_SYSCALLS
./scripts/config -e FUNCTION_TRACER
./scripts/config -e HAVE_DYNAMIC_FTRACE
./scripts/config -e DYNAMIC_FTRACE
./scripts/config -e HAVE_KPROBES
./scripts/config -e KPROBES
./scripts/config -e KPROBE_EVENTS
./scripts/config -e ARCH_SUPPORTS_UPROBES
./scripts/config -e UPROBES
./scripts/config -e UPROBE_EVENTS

# 启用内存泄漏检测
./scripts/config -e DEBUG_KMEMLEAK
./scripts/config -d DEBUG_KMEMLEAK_DEFAULT_OFF

# 启用 kexec 和崩溃转储支持
./scripts/config -e KEXEC
./scripts/config -e CRASH_DUMP

# 启用 BPF LSM 支持(可选)
./scripts/config -e BPF_LSM

# 启用 BPF 预加载支持(可选)
./scripts/config -e BPF_PRELOAD

# 启用内核头文件支持
./scripts/config -e IKHEADERS

  

posted on 2025-02-25 23:54  吃草的青蛙  阅读(23)  评论(0)    收藏  举报

导航