Re: How to free memory?
- To: mathgroup at smc.vnet.net
- Subject: [mg59768] Re: How to free memory?
- From: David Bailey <dave at Remove_Thisdbailey.co.uk>
- Date: Sat, 20 Aug 2005 03:14:12 -0400 (EDT)
- References: <de46jr$r62$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
The following experiment (with 5.1 under Windows) seems even more
disturbing because there is no question of the information being cached
(because the same calculation is repeated) and nothing significant is
being stored in Out[...]. Even Jens-Peer Kuska's suggestion to use
Developer`ClearCache[] has no effect:
MemoryInUse[]
20277264
s = Table[i, {i, 1, 10^7}];
MemoryInUse[]
60279936
s = Table[i, {i, 1, 10^7}];
MemoryInUse[]
100281904
Developer`ClearCache[]
MemoryInUse[]
100285568
Surely this is wrong - I wonder if the garbage collector has been
accidentally disabled?
David Bailey
http://www.dbaileyconsultancy.co.uk