lkml.org 
[lkml]   [1998]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.060 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site