在 EC2 ebs 支持的 xlarge ubuntu 实例上,正在调用 oom-killer。从下面的 /var/log/syslog 输出来看,似乎 ZONE_NORMAL 内存不足:
Node 0 Normal free:11344kB min:11556kB low:14444kB high:17332kB active_anon:10936284kB inactive_anon:144kB active_file:688kB inactive_file:740kB
Run Code Online (Sandbox Code Playgroud)
但为什么 ZONE_NORMAL 只分配了 15GB 总 RAM 中的 11MB?或者是否有其他原因导致内存不足?
机器(xlarge 实例)上可用的 RAM 为 15GB。下面日志中 rss 列的总和为 3.7GB,total_vm 的总和为 11.4GB。
Dec 11 08:53:53 ip-10-60-61-71 kernel: [19427969.456146] node invoked oom-killer: gfp_mask=0x84d0, order=0, oom_adj=0, oom_score_adj=0
Dec 11 08:53:53 ip-10-60-61-71 kernel: [19427969.456153] node cpuset=/ mems_allowed=0
Dec 11 08:53:53 ip-10-60-61-71 kernel: [19427969.456157] Pid: 639, comm: node Not tainted 2.6.38-1-virtual #28-Ubuntu
Dec 11 08:53:53 …Run Code Online (Sandbox Code Playgroud)