help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory....


From: Mario Storti
Subject: Re: Memory....
Date: Tue, 02 Sep 1997 09:22:13 -0300

Hi. I reproduced the same error as reported by Stef:

> I think I narrowed my problem (at last!) to the following:
>  when I do something like
> 
>   for i=1:1000000
>     eval("2;");
>   endfor
> 
> everything is O.K.
> 
> But, 
> 
>   for i=1:1000000
>     eval("[2];");
>   endfor
> 
> makes the Size bigger and bigger. Is this normal?
> Shouldn't I use eval this way?
> 
> If you still need a bug-report, I will try to send you one.
> 
> Sorry for the trouble, thanks for the help.
>  
> Stef.

Configuration: Linux Red Hat 3.0.3 (Kernel 1.2.13) on a Pentium
i586. Octave 2.0.9 (binary downloaded from
ftp://ftp.che.wisc.edu/pub/octave).

For instance, running this:

::  octave:2> for i=1:10000
::  > eval("2;");
::  > endfor

keeps the size of the octave process low:

::  address@hidden mstorti]$ ps -alw | grep octave
::    0   502  3847  3846  13  0  793 1680 1933ef     S <  pp1   2:27 octave
                                  ^^^ ^^^^

but this:

::  octave:3> for i=1:10000
::  > eval("[2];");
::  > endfor


makes the process grow:

::  address@hidden mstorti]$ ps -alw | grep octave
::    0   502  3847  3846  28  0 1937 2836 1933ef     S <  pp1   2:43 octave
                                 ^^^^^^^^^
Mario

%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%
Mario Alberto Storti               | Fax: (54)(42) 55.09.44 |
Grupo de Tecnologia Mecanica       | Tel: (54)(42) 55.91.75 |
INTEC, Guemes 3450 - 3000 Santa Fe | Home: Gob. Vera 3161   |
Argentina                          |       (54)(42) 55.00.23|
Reply: address@hidden  |                        |
                http://venus.unl.edu.ar/gtm-eng.html        |



reply via email to

[Prev in Thread] Current Thread [Next in Thread]