Re: Linux killed Kenny, bastard!

From: Evgeniy Polyakov
Date: Mon Jan 12 2009 - 10:48:41 EST


Hi Dave.

On Mon, Jan 12, 2009 at 10:44:56AM -0500, Dave Jones (davej@xxxxxxxxxx) 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/