Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2010

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

Search the Archive

Re: cant free ram..

  • To: mathgroup at
  • Subject: [mg109285] Re: cant free ram..
  • From: dh <dh at>
  • Date: Tue, 20 Apr 2010 05:52:23 -0400 (EDT)
  • References: <hqh9i9$eo3$>

On 19.04.2010 11:59, ValeX wrote:
> i'm running a Do loop over a grid of points, say 100x100.
> the problem is that for every grid point the ram used increases by 1.4
> MB and so i cant actually finish the evaluation
> [100x100x1.4 is roughly 14GB]
> of all the outputs i need only 3 numbers per grid point and so i tried
> the following:
> ClearAll[all the variables i used and i dont need anymore];
> ClearSystemCache[];
> Unprotect[In, Out]; Clear[In, Out]; Protect[In, Out];
> but the memory does not go down...
> even if i do Remove["Global`*"] nothing happens.
> in the Do loop i do a bunch of things like FindRoot, Interpolation,
> NDSolve, NIntegrate, ..
> is it that maybe i've got to clear some specific place other than the
> history and Global?
Mathematica version 7.0.1
ClearAll does not seem to work with a pattern. Consider:
d = RandomReal[{-1, 1}, 10^7];
this does not clear the memory. However, If you use
it works.


Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh at>

  • Prev by Date: Finding the extreme function values.
  • Next by Date: Re: Exporting Plot with Customized Legend to PDF
  • Previous by thread: Re: cant free ram..
  • Next by thread: Re: cant free ram..