Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to free memory in SAGE?
#1
Does anyone know how to free up memory in SAGE?

I'm not even talking so much about being able to delete a particular variable, though that would be nice too.

No, I'm talking about memory used by local variables inside functions that have already executed. Unless these values are "static", they should effectively become unusable once the function exits.

BUT THEY CONTINUE TO EAT UP MEMORY!!!

Eventually, I've got 2 GB of virtual memory being used by variables I can't even access, variables I was willing to throw away hours ago. Normally, I would just save my work to disk, quit, and restart, thus freeing up all the memory. But I had a session this morning that had been crunching numbers for hours, and I had so little memory left, I couldn't even save my work to disk!

So please, does anyone know how to free up memory in SAGE? I'm looking for some sort of garbage collector that can look at the used memory and say to itself, "Hmm, here's 2 GB of memory sitting on a stack/heap somewhere, that isn't even referenced anymore. Maybe I should free this memory..."
~ Jay Daniel Fox
Reply


Messages In This Thread
How to free memory in SAGE? - by jaydfox - 09/20/2007, 05:15 PM
RE: How to free memory in SAGE? - by jaydfox - 12/21/2007, 06:06 PM
RE: How to free memory in SAGE? - by andydude - 12/21/2007, 06:38 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Sage Question? rsgerard 1 4,034 05/09/2010, 11:40 AM
Last Post: bo198214
  SAGE code for computing flow matrix for exp(z)-1 jaydfox 4 8,403 08/21/2009, 05:32 PM
Last Post: jaydfox
  SAGE code implementing slog with acceleration jaydfox 4 7,221 10/22/2007, 12:59 AM
Last Post: jaydfox
  Complete SAGE code for tetration eyu100 4 6,222 10/18/2007, 03:55 AM
Last Post: jaydfox
  How to force precision in SAGE? jaydfox 2 5,295 08/18/2007, 11:08 PM
Last Post: jaydfox



Users browsing this thread: 1 Guest(s)