Dear Support,

I apologize if this is really a Python question, I'm not sure.  I have
a Mac running X.4 on G4 PPC.

A couple of weeks ago, I created an object in Sage which is a list of
about 2.8 million lists with 18 elements each.  That saved and loaded
fine - thanks, Sage!

Now, I rewrote the code to make the object a list of lists which have
three lists of 6 elements each (3x6=18), but otherwise it is
IDENTICAL.  Now when I try to save it, my computer uses all available
virtual memory and things grind to a halt.  What's worse, Ctrl-C does
not do anything at all; the only way to exit the command
sage: save(object,'object')
is to actually force close the Terminal window.

When I looked at the output of top, it seems like the amount of
virtual memory allocated to the Python process that is Sage is slowly
increasing during the save.  The previous object was about 20MB, so I
assume that this new nearly-identical object is not anywhere near 1GB
in size, yet the virtual memory allocation crept slowly up from
1.25GB, 1.26GB,... - when I quit the last time I tried this (the
behavior repeated, didn't matter what filename I tried to save it to)
it got up to 1.35GB.  I had worked up to 45 million pageins and 13
million pageouts, though that is over doing this several times.  That
sounds like a memory leak, though I am not exactly sure what they are.

Is there anything that comes immediately to mind as to what I might
have done wrong to make save behave this way?  Alternately, is there
any way for me to see (in the terminal) what files are using all that
memory?  The .sobj file is never actually created, as far as I can
tell.

I apologize for being vague, but what I hope are the germane details
is that the object itself is just a long list of lists (of length
three) of lists (of length six), so hopefully that will be enough.  I
am using 4.0.rc0 for this computation.

Thanks,
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to