Re: setrlimit for RLIMIT_RSS not enforced

From: Alan Cox
Date: Mon Jan 09 2006 - 09:21:46 EST


On Mer, 2006-01-04 at 15:29 -0600, Ram Gupta wrote:
> I am wondering why setrlimit for RLIMIT_RSS is not enforced? Is
> there any particular reason for not implementing it? Is there any
> taker if I implement it & submit patch for it?


I had a long long dig back through my mail archive in search of
RLIMIT_RSS. The original mm for Linux didn't enforce it as it did not
have any way to track RSS that was not computationally expensive. The
current mm is probably capable of implementing RSS limits although
questions then still remain about what effect this has if a user sets a
low RSS limit and then causes a lot of swap thrashing.

If you can see a way to implement it efficiently then go for it.

Alan

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