MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: release memory

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98304] Re: release memory
  • From: summer <summertan at hotmail.com>
  • Date: Sun, 5 Apr 2009 06:38:51 -0400 (EDT)
  • Organization: The Math Forum

Here is an example program that fails to release the memory:

In[1]:= $HistoryLength = 0;
tbl = Table[{r, t}, {t, 0, 1, 1/1000}, {r, 0, 1, 1/1000}];
ByteCount[tbl]
MemoryInUse[]

Out[3]= 188 184 024

Out[4]= 94 058 160

In[5]:= ClearAll[tbl]; MemoryInUse[] 

Out[5]= 9 885 560


First notice that the numbers shown by ByteCount and MemoryInUse are inconsistent ???

Anyways, after ClearAll, the MemoryInUse decreased with about 85 MB indeed but Windows Task Manager does not show any decrease of the used RAM memory, nor increase in the free memory ....


  • Prev by Date: Plot3D, show and text
  • Next by Date: Re: cell bracket symbols
  • Previous by thread: Re: release memory
  • Next by thread: Re: release memory