comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Memory leak in IDL hdf5 library?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Memory leak in IDL hdf5 library? [message #74599 is a reply to message #74508] Mon, 24 January 2011 13:08 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Eddie Schlafly writes:

> I take it that you don't see any leak under Windows?

No, I don't think so. I don't see anything dramatic
happening with memory.
>
> Thanks for pointing out h5_close! I just followed the example files from
> the hdf5 documentation, which didn't used h5_close.
>
> If I add an h5_close at the end of ex_read_hdf5 and ex_create_hdf5, I no
> longer leak memory. If, however, I just try to h5_close when I'm done
> reading in a bunch of files, I still leak.
>
> Adding h5_close, however, doesn't change the problem I am having where
> the amount of memory used is many times the size of the file being read
> in. The ~40K file I am reading in ends up reading in to about 50 MB of
> memory, which is freed by the h5_close. The files are also slower to
> read in than I would expect. If I write out a structure with a zero in
> it, rather than a nested structure with a zero in it, things read in
> quickly and no memory is leaked, even without h5_close.

I'm really just waving my hands here, but if I read the
H5_CLOSE documentation correctly, I would guess that there
is an enormous amount of overhead in "linking" to the H5
libraries. I would guess it is this memory that is freed
with H5_CLOSE. Reading the files is probably slower because
you have to load and unload all this overhead each time.

Have you discussed this with ITTVIS? What do they recommend?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 7 OK and IDL 8 segmentation Fault - JAVA BRIDGE
Next Topic: hai

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 20:37:58 PDT 2025

Total time taken to generate the page: 1.44106 seconds