From help-octave-request at bevo dot che dot wisc dot edu Tue Jan 7 17:16:09 2003 Subject: Memory usage From: "David Pruitt" To: "Octave" Date: Tue, 7 Jan 2003 16:53:26 -0600 This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C2B66D.516836F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have an octave program that calls many self-written functions as well as octave functions. The program consumes a very large chunk of memory - (~750MB, many times more than I can rationalize based on the matrix sizes). The code runs over several minutes and the memory usage grows nearly linearly over time. I'm guessing that memory is not being released as data are passed to and from functions. My questions: 1. Is there some clever way to track the memory consumption with greater detail? 2. Must I compel octave to release memory on return from a function? If so, how? Thanks in advance. David Pruitt, PhD Ashdon Investment Analysis and Reseach, LLC Phone: 931.695.3220 Mobile: 931.639.2477 Fax: 931.695.5545 e-mail: david dot pruitt at ashdonanalysis dot com ------=_NextPart_000_0009_01C2B66D.516836F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have an octave program that calls many self-written functions as well as octave functions.  The program consumes a very = large chunk of memory – (~750MB, many times more than I can rationalize = based on the matrix sizes).  The code runs over several minutes and the = memory usage grows nearly linearly over time.  I’m guessing that = memory is not being released as data are passed to and from functions.  =

 

My questions: 

 

  1. Is there some clever way to track the memory consumption with greater detail?
  2. Must I compel octave to release memory on return = from a function?  If so, how?

 

 

Thanks in advance.

 

 

David Pruitt, PhD

Ashdon Investment Analysis and Reseach, = LLC

Phone: 931.695.3220

Mobile: = 931.639.2477

Fax: 931.695.5545

e-mail: david dot pruitt@ashdonanalys= is.com

 

------=_NextPart_000_0009_01C2B66D.516836F0-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------