MathGroup Archive 2009

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

Search the Archive

Re: Releasing memory

  • To: mathgroup at
  • Subject: [mg101770] Re: [mg101685] Releasing memory
  • From: Filippo Miatto <miatto at>
  • Date: Thu, 16 Jul 2009 08:21:34 -0400 (EDT)
  • References: <>

I have the almost the same problem, but somehow this happens only with =

my mac. (!)
I have an optimization algorithm to run, and when i run it under linux =

it works well and never fills up all the available ram, when i run it =

with my mac (exactly the same notebook) after a short time it 
regularly starts to fill a huge swapfile.
I use mathematica 7, the mathkernel is the 64 bit version.
How can I release memory without quitting the mathkernel?
Thank you

On Jul 14, 2009, at 11:36 AM, Zach Bj=F8rnson wrote:

> Hello-
> I frequently write scripts that call external programs, exchanging 
> data
> by temporary files. The Mathematica scripts tend to take up large
> amounts of memory (2-7 gb), as do the external programs (~4 gb). I 
> can't
> figure out how to get Mathematica to actually release memory so that =

> the
> external programs have that memory to use.
> Clear, ClearAll and Remove remove the definitions from Mathematica, =

> but
> the amounts of memory in use by the MathKernel processes don't change.
> (Quitting the kernel does the trick, but is obviously not a feasible
> solution when Mathematica has work to do both up and down-stream of =

> the
> external call.)
> Advice?
> Thanks!
> Zach

Mobile (IT):	+39 340 6104269
Mobile (NL):	+31 064 3949827
Home (IT): 	+39 0438 59360

P.O. Box 9504

msn:			dr.ziofil at
skype:			filippo.miatto
Quantum Optics
Group Mail:		miatto at

  • Prev by Date: eigenvector centrality
  • Next by Date: Re: ParallelTable doesn't work, but Table does
  • Previous by thread: Releasing memory
  • Next by thread: Re: Re: Releasing memory