Re: Linux killed Kenny, bastard!

From: Theodore Tso
Date: Tue Jan 13 2009 - 08:20:00 EST


Instead of trying to specify which process should be protected from
the OOM killer by name, how about something which is inherited from
the parent process? After all, if having the child not get killed due
to OOM is important, the child won't even have a chance to run if the
parent gets killed off. And in fact, we have something that fits that
bill fairly well; getrlimit()/setrlimit(). Why not define a new
resource limit which specifies a relative immunity to the oom_killer?

Most of the infrastructure to support that will already be in place
(i.e., shell support, PAM support in /etc/securitylimits.conf); all
that would need to be done is to teach a few userspace
programs/libraries about the new resource limit.

This would be a much cleaner approach, I would think.

Regards,

- Ted
--
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/