摘要: 当应用程序申请内存时,如果系统内存不足或者到达了memory cgroup设置的limit,会触发内存回收,如果还是得不到想要的数量的内存,最后会出发oom,选择一个进程杀死,释放其占用的内存。 下面通过实验来学习一下通过memory cgroup触发oom。 内核:linux-5.14 发行版:u 阅读全文
posted @ 2022-05-01 15:46 dolinux 阅读(1896) 评论(0) 推荐(0)
摘要: 参考 BuildYourOwnKernel https://wiki.ubuntu.com/KernelTeam/KernelMaintenance https://wiki.ubuntu.org.cn/UbuntuHelp:Kernel/Compile Ubuntu下获取内核源码 解压: cd / 阅读全文
posted @ 2022-05-01 10:18 dolinux 阅读(134) 评论(1) 推荐(0)
摘要: 参考: https://www.cnblogs.com/vdvvdd/p/5464775.html 查看当前系统使用的内核版本 apt-cache search linux-source 输出如下: linux-source - Linux kernel source with Ubuntu pat 阅读全文
posted @ 2022-05-01 09:28 dolinux 阅读(352) 评论(0) 推荐(0)
摘要: 参考 https://openanolis.cn/sig/pmem Linux挂载持久化内存(PMEM) Linux文件系统与持久性内存介绍:块设备、闪存(NAND/NOR)、NVDIMM(非易失性内存)、PMEM(PMDK)- ndctl Linux Kernel中AEP的现状和发展 阅读全文
posted @ 2022-05-01 00:14 dolinux 阅读(190) 评论(0) 推荐(0)
摘要: 参考 https://developer.aliyun.com/article/807824 https://openanolis.cn/video/447397858019557785 内核功能与接口 阅读全文
posted @ 2022-05-01 00:08 dolinux 阅读(68) 评论(0) 推荐(0)
摘要: 参考 https://gitee.com/anolis/tracing-ssar/blob/master/Reference_zh-CN.md https://gitee.com/anolis/tracing-ssar 阅读全文
posted @ 2022-05-01 00:05 dolinux 阅读(71) 评论(0) 推荐(0)
摘要: 参考 https://gitee.com/anolis/sysak sysAK(青囊)系统运维工具集:如何实现高效自动化运维? 系统运维工具 SysAK的云上应用性能诊断 阿里sysAK工具简析 阅读全文
posted @ 2022-05-01 00:02 dolinux 阅读(91) 评论(0) 推荐(0)
摘要: 参考 https://github.com/facebookincubator/oomd https://engineering.fb.com/2018/07/19/production-engineering/oomd/ https://lwn.net/Articles/511731/ https 阅读全文
posted @ 2022-05-01 00:00 dolinux 阅读(231) 评论(0) 推荐(0)