如何解释该内核消息:cgroup内存不足:杀死进程1234 ....得分1974或牺牲孩子? [英] How to interpret this kernel message: cgroup out of memory: Kill process 1234 .... score 1974 or sacrifice child?

查看:2150
本文介绍了如何解释该内核消息:cgroup内存不足:杀死进程1234 ....得分1974或牺牲孩子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我正在运行一个被杀死的Docker容器.

So, I'm running a docker container that's getting killed.

Memory cgroup out of memory: Kill process 1014588 (my-process) score 1974 or sacrifice child

该pid并没有真正的帮助,因为实例将重新启动.我不确定score 1974部分的内容.那是某种评价吗?那是需要减少的字节数吗?

The pid doesn't really help since the instance will be restarted. I'm not sure what to make of the score 1974 portion. Is that some kind of rating? Is that the number of bytes it needs to drop to?

是因为系统上的其他因素挤压了该容器而导致了死亡,还是只能将此容器(strong)封顶?

Could the kill be issued because of other things on the system that are squeezing this container, or can this only this container is topped out?

还有牺牲子部分,我认为这是关于某种子过程的?

And the sacrifice child part, I think that would be in regards to some kind of subprocess?

推荐答案

我相信这实际上是在如果您在此处检查Linux内核代码.您会看到:

If you check the Linux kernel code here. You'll see:

/*
 * If any of p's children has a different mm and is eligible for kill,
 * the one with the highest oom_badness() score is sacrificed for its
 * parent.  This attempts to lose the minimal amount of work done while
 * still freeing memory.
 */

mm表示内存管理".

mm means 'Memory Management'.

这里唯一的区别是,这种杀死是由cgroups触发的,因为您可能已经遇到了内存限制.

The only difference here is that this kill is getting triggered by cgroups because you have probably run into memory limits.

这篇关于如何解释该内核消息:cgroup内存不足:杀死进程1234 ....得分1974或牺牲孩子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆