Freeing memory [message #7047] |
Tue, 10 September 1996 00:00 |
Phil Williams
Messages: 78 Registered: April 1996
|
Member |
|
|
Is it my imagination or is idl not freeing all the memory it uses for
procedures and functions?
Here's what I did to check:
I have a function that reads data and does some base processing. As the
procedure is running I monitor my system memory using SGI's sysmon.
After the function is complete I use some % of memory.
IDL> help,/mem
heap memory in use: 13710221, calls to MALLOC: 25781, FREE: 25676
I then save all the data to a file and quit idl.
I then start idl and restore the data and compile the function and there
is less memory used.
IDL> help,/mem
heap memory in use: 13709644, calls to MALLOC: 119, FREE: 14
My question is why? And why is there very little descrpancy in the
help,/mem for the heap used? The sysmon looks like alot more than a 1%
difference?
I realize that this ain't too scientific, but the question still
remains.
Thanks in advance,
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
|
|
|