"-client" option
Andrew Haley
aph at redhat.com
Thu Jan 13 06:40:24 PST 2011
On 01/13/2011 02:12 PM, Zhu Han wrote:
> On Wed, Jan 12, 2011 at 7:57 PM, Andrew Haley<aph at redhat.com> wrote:
>> I've had a look, and the big mappings seem to be
>> MAP_PRIVATE|MAP_NORESERVE per-thread regions allocated for the malloc
>> heap by glibc. Every thread has its own heap, and these are
>> pre-allocated in 64M chunks. A bunch of special-purpose threads are
>> started by the VM, so you have a multiple of these 64M mappings. So,
>> I don't think there's much you can do about it.
>>
>> But in any case, MAP_NORESERVE doesn't reserve memory, so you
>> shouldn't start getting an OOM condition until you really run out of
>> memory, not just address space.
>
> That's very helpful. I really appreciate your response.
>
> One more question, please :-)
>
> Does this behavior(MAP_NORESERVE) consistent on other *NIX platform. For
> example, OSX or freebsd?
It's not an uncommon thing to do, but I couldn't speak about any particular
OS version.
Andrew.
More information about the distro-pkg-dev
mailing list