Messages in this thread | | | From | Glynn Clements <> | Date | Sat, 22 Aug 1998 06:58:02 +0100 (BST) | Subject | Re: Ulimit Probrems with Linux |
| |
Dean Gaudet wrote:
> > In an attempt to correct the problem altogether ulimit was invoked to > > restrict the maximum size of it's data segment instead of trying to hack > > 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.
According to the libc info file, using mallopt(M_MMAP_MAX, 0) should disable the use of mmap() by malloc().
-- Glynn Clements <glynn@sensei.co.uk>
- 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
| |