操作系统其实是没办法去区分哪个是我的关键任务进程的,oom-killer的作者有这么段话:
If we run out of memory, we have the choice between either killing a random task (bad) letting the system crash (worse), OR try to be smart about which process to kill. Note that we don't have to be perfect here, we just have to be good.