Re: [PATCH] oom_pardon, aka don't kill my xlock

Tonnerre
2004-09-23T12:26:18Z

[-- Attachment #1: Type: text/plain, Size: 854 bytes --]

Salut,

On Thu, Sep 23, 2004 at 08:57:50AM +0200, Thomas Habets wrote:
> Yup. What would be a good interface for setting that flag per-process?
> prctl()?
> Personally, I'd prefer it without userspace having to write code for it.

Well, either via a new syscall/ioctl, or via some exported file in
/proc or /sys. I guess the second approach (file) will be prefered.

> Also, it should be able to protect against a DoS where a user launches N
> un-OOM-killable processes.

You can still do that. Maybe kill those processes first who got less
criterias matching the OOM gracefulness, so you can protect httpd more
strongly than xlock.

Also remember to set per-user limits of processes. :)

> > What about programs with spaces in its names?
>
> I thought "screw 'em". :-)

Now that's what I call policy!

Tonnerre

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]