[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: incorrect malloc_stats output
From: |
Prem Gopalan |
Subject: |
Re: incorrect malloc_stats output |
Date: |
Tue, 19 Aug 2003 10:57:17 -0400 (EDT) |
> Please note also that the "Total" including mmap is unreliable when
> multiple threads are used. The counting of the size of mmapped
> regions as in
>
> mp_.mmapped_mem += size;
>
> is done outside a mutex lock for performance, and may not be atomic.
>
Yes, I knew about this although I dont quite understand why my program
(attached in prev mail) should cause so many mmap regions. The chunks are
smaller than DEFAULT_MMAP_THRESHOLD of 128KB.
> However, even your total without mmap (sum of system bytes for Arena
> 0-3) exceeds 3GB, which seems bogus unless you have a kernel where the
> top of stack would be at 0xD0000000.
Top of stack using the program attached : bffffa74
sbrk limit : 3fffea7c
Thanks,
Prem.
sbrk.cc
Description: Text document