> Since the system will panic if the init process is chosen by > the OOM killer, the following patch prevents select_bad_process() > from picking init. Hmmm, wouldn't it be nice to make this all configurable? Like; have some list of PIDs that can be killed? I would hate it the daemon that checks my UPS would get killed... (that deamon brings the machine down safely when the UPS' batteries get emptied). Would be something like: int *dont_kill_pid, ndont_kill_pid; // initialize with at least pid '1' and n=1 for_each_task(p) { int loop; for(loop=ndont_kill_pid-1; loop>=0; loop--) { if (dont_kill_pid[loop] == p->pid) break; } if (p->pid && !(loop>=0)) { int points = badness(p); if (points > maxpoints) { chosen = p; (untested (not even compiled or anything) code) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: [PATCH] Prevent OOM from killing... Guest section DW
- Re: [PATCH] Prevent OOM from killing init Patrick O'Rourke
- Re: [PATCH] Prevent OOM from killing init Philipp Rumpf
- Re: [PATCH] Prevent OOM from killing init James A. Sutherland
- Re: [PATCH] Prevent OOM from killing init Szabolcs Szakacsits
- Re: [PATCH] Prevent OOM from killing init Rik van Riel
- RE: [PATCH] Prevent OOM from killing ini... Juha Saarinen
- Re: [PATCH] Prevent OOM from killing ini... Roger Gammans
- RE: [PATCH] Prevent OOM from killing init Leif Sawyer
- Re: [PATCH] Prevent OOM from killing init Kevin Buhr
- Re: [PATCH] Prevent OOM from killing init Heusden, Folkert van
- Re: [PATCH] Prevent OOM from killing init Rik van Riel
- Re: [PATCH] Prevent OOM from killing init Christian Bodmer
- Re: [PATCH] Prevent OOM from killing init Horst von Brand
- Re: [PATCH] Prevent OOM from killing ini... Doug Ledford
- Re: [PATCH] Prevent OOM from killing... Mike Galbraith
- Re: [PATCH] Prevent OOM from ki... Jonathan Morton
- Re: [PATCH] Prevent OOM fro... Mike Galbraith
- Re: [PATCH] Prevent OOM from ki... Doug Ledford
- Re: [PATCH] Prevent OOM fro... Jonathan Morton
- Re: [PATCH] Prevent OOM fro... Jonathan Morton