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

Home » Public Forums » archive » Re: QUESTION: is there a command in idl which could clean up memory pieces?
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: QUESTION: is there a command in idl which could clean up memory pieces? [message #62989 is a reply to message #62987] Tue, 21 October 2008 15:52 Go to previous messageGo to previous message
litongmu is currently offline  litongmu
Messages: 7
Registered: October 2008
Junior Member
On Oct 21, 12:16 pm, pgri...@gmail.com wrote:
> liton...@gmail.com wrote:
>> Hi all,
>
>> I am wondering if there is a command in IDL which could clean up all
>> the memory pieces to generate a whole big piece which could be used by
>> IDL.
>> Because, recently I am running a code to read and deal with cdf files.
>> And there are lots of files (more than 1000). The code cannot finish
>> them once, because of memory problem.
>
> While it is possible you are having a memory fragmentation issue,
> it seems more likely you are just running out of memory. Can you tell
> us how much memory you use at the time of the failure?
> Use: help,/mem
>
> Cheers,
> Paolo
>
>> And I know that in Matlab there is a command called 'pack', which
>> could clean up all the memory pieces. So I am wondering if there is a
>> similar counterpart in IDL. It took me really a long time to find in
>> the manuals. But no luck.
>> I appreciate your help and your try.
>
>> tongmu
>
>

It is different. If I run my code in my desktop, the memory usage is
about 300m, which, as you mentioned, is likely to be out of memory.
But if I use my laptop, the memory usage is about 30m or less.
However, I called a subroutine to open and read a cdf file every time,
and in one file, there are only like 5000 records. So I think there
should be enough memory to each file.
Another reason why I believe it is caused by memory fragmentation is
that in my code, I need to resize some arrays several times. It could
generate lots of memory pieces.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Array/Group Help
Next Topic: Re: how to suppres warning

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

Current Time: Fri Oct 10 01:37:40 PDT 2025

Total time taken to generate the page: 1.11877 seconds