Description of problem:
The oom killer is continuing to kill other processes, while a process previously selected by oom killer is already freeing its memory. Meaning, oom killer kills more and innocent tasks.
Version-Release number of selected component (if applicable):
kernel-2.6.32-174.el6 and newer
Create a simple mem hog process and the oom killer will kill it along with another innocent process.
Steps to Reproduce:
1. swapoff -a
2. echo 1 > /proc/sys/vm/overcommit_memory
3. run mem hog process
The mem hog process is killed along with another innocent processes.
Only the mem hog process is killed.
Fixed by the following upstream commit:
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update release.
Patch(es) available on kernel-2.6.32-196.el6
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.