Re: Ulimit Probrems with Linux

H. Peter Anvin (hpa@transmeta.com)
22 Aug 1998 08:16:56 GMT


Followup to: <Pine.LNX.3.96dg4.980821193611.26012Q-100000@twinlark.arctic.org>
By author: Dean Gaudet <dgaudet-list-linux-kernel@arctic.org>
In newsgroup: linux.dev.kernel
>
> On linux you have to use RLIMIT_AS, RLIMIT_DATA is useless. This is a
> conspiracy between the kernel and libc to produce a bug... whose fault it
> is you can debate. But unix98 does say that RLIMIT_DATA affects memory
> allocated by malloc() ... it just doesn't count mmap(). Too bad malloc
> uses mmap.
>
> Dean
>

Sounds like malloc() should pass a nonstandard mmap() flag which makes
it could towards RLIMIT_DATA.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- 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.altern.org/andrebalsa/doc/lkml-faq.html