on-internet
← Community

[Linux] Ubuntu 26.04 遇到 free -h 和 htop 查不出来的诡异 OOM 内存不足,由 KHO 的 CMA 导致

V2EX ·

如题,1G 内存的服务器升级 Ubuntu 26.04 后,每几分钟就 OOM 一次,自动重启服务后过几分钟就又不行了,日志说: kworker/0:2 invoked oom-killer: gfp_mask=0xdc0(GFP_KERNEL|__GFP_ZERO), order=0, oom_score_adj=0 The kernel OOM killer killed some processes in this unit. 此时,查看剩余内存还有很多: root@ubuntu:~# free -h total used free shared buff/cache available Mem: 907Mi 296Mi 543Mi 1.2Mi 87Mi 611Mi Swap: 0B 0B 0B 诡异到想破脑袋也想不出来,百思不得其解,幸好这是个 AI 的时代,AI 从日志里发现了端倪: active_anon:5463 inactive_anon:5697 isolated_anon:0 slab_reclaimable:4871 slab_unreclaimable:25711 mapped:2013 shmem:394 pagetables:801 sec_pagetables:0 bounce:0 free:153942 free_pcp:7 free_cma:153

Comments

Sign in or sign up to comment and upvote.

No comments yet.