lkml.org 
[lkml]   [2009]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Linux killed Kenny, bastard!
Hi Dave.

On Mon, Jan 12, 2009 at 10:44:56AM -0500, Dave Jones (davej@redhat.com) wrote:
> > Do you want to own a tame killer? Do you want to control the world?
> >
> > Start with your computer now and own the planet next: you already have
> > an OOM-killer in the Linux to kill for you. But to date it was quite
> > berserk and usually killed not what you would like him to murder.
> >
> > Now you can add a name of the victims, which will be checked by the
> > oom-killer, who select the process to kill first among the ones which
> > have given string in their executable name.
> >
> > By default the process to be killed is called 'Kenny', and if you like
> > him, change then name by calling
>
> I realise it ruins the joke, and it sounds unlikely, but anyone who
> happens to have a process called 'Kenny' might be unpleasantly surprised
> by this.
>
> If we merge this feature, I think it should default to just using the
> existing heuristic.

Well, Kenny has to die, but if we still decide to change the world, here
is the fist step.

--- ./mm/oom_kill.c~ 2009-01-12 17:51:23.000000000 +0300
+++ ./mm/oom_kill.c 2009-01-12 18:48:04.000000000 +0300
@@ -28,7 +28,7 @@
#include <linux/memcontrol.h>
#include <linux/security.h>

-char oom_victim_name[TASK_COMM_LEN] = "Kenny";
+char oom_victim_name[TASK_COMM_LEN] = "";

int sysctl_panic_on_oom;
int sysctl_oom_kill_allocating_task;

--
Evgeniy Polyakov


\
 
 \ /
  Last update: 2009-01-12 16:51    [W:0.109 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site