Re: RLIMIT_AS maximum is 2GB

Jan Edler (edler@research.nj.nec.com)
Wed, 3 Mar 1999 00:21:08 -0500


On Wed, Mar 03, 1999 at 01:02:42PM +0800, David Luyer wrote:
> > 1) Am I missing something?
>
> Yes - if you're going to give someone more than 2GB, you probably just
> want to give them 'unlimited'. Sure, you can't do clear limits between
> 2GB and 4GB (or whatever your total limit on address space is) but it
> really won't make that much difference if you let some process squash 3GB
> of your memory or just give it free reign.

Ah, yes, but there is no explicit RLIM_INFINITY checking,
so it just looks like plain 0x7fffffff, which is 2GB-1.
So you're saying we could patch the code to check for this.
I suppose that is a reasonable approach.

Jan Edler

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/