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
复制代码

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 禁用 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   吃草的青蛙  阅读(4)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示