Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11789

Re: Kernel exits (for lack of memory)

From Joseph Gwinn <joegwinn@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Kernel exits (for lack of memory)
Date 2012-09-18 07:48 +0000
Message-ID <k398vo$9p0$1@smc.vnet.net> (permalink)
References <k2s2re$dq5$1@smc.vnet.net> <k368j5$1ud$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


In article <k368j5$1ud$1@smc.vnet.net>, dgolber@aol.com wrote:

> I am already storing partial results, which lets me make progress on this 
> problem.
> 
> In looking at MemoryInUse, I found the following interesting behavior:
> 
> Mathematica 4 running directly on Windows XP.
> 
> The notebook below fits a 2-parameter curve (a simple Bezier curve) to some 
> data.
> 
> The module "error" finds the total sum-of-squares of distances from the data 
> points to a curve.  The main cell (not a module) uses FindMinimum to vary the 
> curve parameters to minimize the error.
> 
> The "error" module prints MemoryInUse  each time it is entered.  
> 
> The main cell is run twice (two completely distinct copies).  The first time 
> it is run, we see MemoryInUse building up from about one MB to 25 MB, as (I 
> assume) FindMinimum builds up its search context.
> 
> The second time it is called, MemoryInUse starts aleady at 25 MB!  In other 
> words, even though the (first) use of FindMinimum is completely over, the 
> memory it used is still shown in MemoryInUse.
> 
> What is going on?

The Out[] variables are storing all results, just in case you ask for 
them.

Set $HistoryLength to zero to turn this off.

One can also Clear[] intermediate variables to reduce memory footprint.

Joe Gwinn

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Kernel exits davidgolber <hmsnively@aol.com> - 2012-09-13 07:43 +0000
  Re: Kernel exits David Bailey <dave@removedbailey.co.uk> - 2012-09-14 04:19 +0000
  Re: Kernel exits Roland Franzius <roland.franzius@uos.de> - 2012-09-15 07:44 +0000
  Re: Kernel exits dgolber@aol.com - 2012-09-17 04:23 +0000
    Re: Kernel exits (for lack of memory) Joseph Gwinn <joegwinn@comcast.net> - 2012-09-18 07:48 +0000
      Re: Kernel exits (for lack of memory) dgolber@aol.com - 2012-09-19 08:57 +0000
        Re: Kernel exits (for lack of memory) Joseph Gwinn <joegwinn@comcast.net> - 2012-09-21 08:19 +0000
  Re: Kernel exits dgolber@aol.com - 2012-10-06 08:16 +0000

csiph-web