Messages in this thread | | | Date | Sat, 22 Feb 2003 17:14:18 -0300 (BRT) | From | Rik van Riel <> | Subject | Re: oom killer and its superior braindamage in 2.4 |
| |
On Sat, 22 Feb 2003, Marc-Christian Petersen wrote:
> - Feb 21 10:04:57 codeman kernel: Out of Memory: Killed process 2657 (apache). > > The above log entry (apache) appeared for about 4 hours every some > seconds (same PID) until I thought about sysrq-b
> Is there any chance we can fix this up?
Yes.
1) add a VM_KILLED flag 2) set this flag on the p->mm->def_flags when you kill a process/thread from oom_kill.c 3) clear the flag on process exit
4) on a new call to oom_kill, skip processes when (p->mm->def_flags & VM_KILLED) by returning 0 points for such a process
cheers,
Rik -- Engineers don't grow up, they grow sideways. http://www.surriel.com/ http://kernelnewbies.org/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |