# Linux 3.16 version Oom choose which process to kill----# # # Background I have 2 scheduled tasks, a task A is 00:00 run, another B is 04:00 run. Under normal circumstances a will run at 2, but one day because of the time spent on a step too long, resulting in 4 points have not run out, this time a memory consumption of about 12g. 4 o'clock began, B began to run, gradually ran up, when the memory used to about 6g, the system memory is not enough to kill a. Question: For this I have a question, that is why the process after the rise did not kill, but instead killed the original run the good process. Reason # # # # # # # # # # # # # # # # # # # # # # # # # # # SIGKILL The Linux selection process strategy can refer to http://elixir.free-electrons.com/linux/latest/source/mm/oom_kill.c this can be from Select_bad_ Process this function to start, I am also learning. Speaking relatively shallow, just said a approximate, detailed program, and so I read the code to add up.
Linux 3.16 version when Oom chooses which process to kill