Hi Nichols,

On Jul 28, 2011, at 5:44 PM, Nichols A. Romero wrote:

> Hi,
> 
> I am trying to figure out if there is a memory leak or a lack of 
> understanding on my part
> with respect to the HDF5 internals. My simple test case writes a 
> 4-dimensional uniformly
> distributed array using H5Dwrite. I measure the heap memory before and after 
> the write.
> I would expect the heap memory utilization to not change substantially.
> 
> I have measured the heap memory a couple of different ways, e.g. using 
> mallinfo or some tool.
> Naively it looks like the MPI I/O aggregators are not releasing memory but 
> some tools
> have reported no leak at all, while others have report a large one (> 200 
> MB). I finally
> resorted to using mpirun -strace to track the series of mmap/munmap in the 
> H5Dwrite.
> I was surprised to see a large number of calls to mmap/munmap which 
> ultimately results
> in 60 MB of heap memory not being released.
> 
> First question: Is this the intended behavior?
> 
> Second question: If this behavior is intentional, is there away to force HDF5 
> to release
> these internal buffers after the H5Dwrite.

        It's a bit hard to tell from your description - could you send a short 
program that demonstrates the issue?

        Quincey


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to