Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: memory release problem in mathematica6.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83309] Re: memory release problem in mathematica6.0
  • From: Jon McLoone <jonm at wolfram.co.uk>
  • Date: Sat, 17 Nov 2007 05:22:03 -0500 (EST)
  • References: <fhegac$m08$1@smc.vnet.net> <fhh7qq$90c$1@smc.vnet.net>

On Nov 15, 10:42 am, Yaroslav Bulatov <yarosla... at gmail.com> wrote:
> I confirm this behavior. The following line works the first few times,
> but the memory isn't released with "Clear[A]" and after a few times
> kernel quits with "out of memory" message
>
> A = RandomInteger[{1}, 100000000]; Clear[A]
>
> On Nov 14, 1:49 am, jack <giaber... at gmail.com> wrote:
>
> > Hi all,
> > When i define large data structures, for example an array  "A" of
> > million  of elements that occupy some  hundreds of MB of physical
> > memory,when i clear it, with Clear[A] memory isn' t released by
> > operating system. I' ve tried both on windows and linux.
> > The result of MemoryInUse[] command of mathematica but the physical
> > memory reported by the system monitor isn't released.
> > I' ve tried also ClearSystemCache[] but with no result.
> > Am i missing something?
>
> > Thanks!

Don't forget that Mathematica stores the history of a session in In[]
and Out[] values. So clearing A may still leave a copy of the data in
Out[1]. Use $HistoryLength=0; first to prevent this.

Jon McLoone
http://members.wolfram.com/jonm


  • Prev by Date: Re: Floor doesn't compute in some cases
  • Next by Date: Re: Message: "Numerical interation converging too slowly"
  • Previous by thread: Re: memory release problem in mathematica6.0
  • Next by thread: Re: memory release problem in mathematica6.0