[OmniOS-discuss] ILB memory leak?
Bob Friesenhahn
bfriesen at simple.dallas.tx.us
Fri Nov 6 18:33:47 UTC 2015
On Fri, 6 Nov 2015, Dan McDonald wrote:
>
> More huge anonymous mappings (1G, 512MB, 256MB, 128MB).
>
> I don't know pmap as well as I should. I don't see anything in the
> man page to give me further insight into why these chunks of memory
> are being eaten.
It is pretty common for memory allocators to use anonymous mappings
for large memory allocations. This allows releasing memory back to
the system.
Some applications use algorithms where they double the memory size
request from the previous request when a little more memory is
required in order to lessen the hit from many realloc() calls. This
might explain the power-of two sizes. If this is being done, the
smaller power of two allocations may be a bug.
Tracing mmap() calls on the program while is is running might reveal
something.
Bob
--
Bob Friesenhahn
bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
More information about the OmniOS-discuss
mailing list