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

Home » Public Forums » archive » Re: about memory (on winnt)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: about memory (on winnt) [message #25140] Tue, 22 May 2001 08:09
R.G.S. is currently offline  R.G.S.
Messages: 46
Registered: September 2000
Member
Craig Markwardt <craigmnet@cow.physics.wisc.edu> wrote in message
news:onofsm8ctn.fsf@cow.physics.wisc.edu...
>
> The answer is also "it depends," because it depends on which platform
> you are using. I believe that under Windows the memory is actually
> returned to the OS. Thus, other programs are able to use the memory
> again.


Just for curiosity's sake, I checked out the operation on
IDL5.4 winnt WS4 SP5. Here I run the commands over and over,
and the mem is MEM USAGE from task manager, so the mem
is indeed given back to the OS. In this case, i swap out to
create the array, so there seems to be a little overhead when
you first do it, but there is no memory leaking on subsequent
allocations and freeings.
Note: the array is 190.7M (5000*5000*8bytes)


a = 0, mem = 201440k
a = dblarr(5000,5000), mem = 397076k
a = 0, mem = 201572k
a = dblarr(5000,5000), mem = 397076k
a = 0, mem = 201572k


Cheers,
bob stockwell
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: color table conversion
Next Topic: [Newbie]writing JPEG or GIF file with plot?

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

Current Time: Wed Oct 08 16:49:23 PDT 2025

Total time taken to generate the page: 0.00528 seconds