On Mar 4, 2010, at 5:18 PM, Simon King wrote:
Hi Yann!
On 5 Mrz., 00:49, Yann <yannlaiglecha...@gmail.com> wrote:
sage: R.<x>=QQ[]
sage: while True:
....: f=x+1
this eats up memory... it's bad
On the bright side, such a short example will probably be very helpful
to detect the problem.
Note that the memory is not constantly increasing: it jumps:
FWIW, I think that this (the call to get_memory_usage()) reports
usage from the OS's point of view: how much of your virtual address
space (or perhaps just the "data" segment of that space) has been
allocated. Each allocation gives a large chunk of memory to the
process, and then the process allocates from that new chunk until it
runs out, and then the OS allocates more (at which point,
get_memory_usage() reports a larger size).
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
If you're not confused,
You're not paying attention
--------
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org