Messages in this thread | | | Date | Thu, 23 Sep 2004 14:24:28 +0200 | From | Tonnerre <> | Subject | Re: [PATCH] oom_pardon, aka don't kill my xlock |
| |
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 [unhandled content-type:application/pgp-signature] | |