ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 15 Jan 2019 17:42:46 -0600Loading a 5GB dictionary of matrices uses up all of 64GB RAMhttp://ask.sagemath.org/question/45062/loading-a-5gb-dictionary-of-matrices-uses-up-all-of-64gb-ram/ In a 5GB `file.sage`, I stored a chain complex as a dictionary of sparse matrices (created it in Mathematica with no problems). When I run `load(file.sage)`, the program uses up all 64GB RAM + 64GB swap and crashes. Why does Sage use that much of memory for a small file?
I tried splitting the file into three smaller ones and load one after another, but already with the first 1.3GB file, the system crashes after using all RAM, but without using swap. I get:
---------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
<ipython-input-1-8cecfac681b8> in <module>()
----> 1 load('/home/leon/file.sage');
sage/structure/sage_object.pyx in sage.structure.sage_object.load (build/cythonized/sage/structure/sage_object.c:12879)()
/usr/lib/python2.7/dist-packages/sage/repl/load.pyc in load(filename, globals, attach)
245 if attach:
246 add_attached_file(fpath)
--> 247 exec(preparse_file(open(fpath).read()) + "\n", globals)
248 elif ext == '.spyx' or ext == '.pyx':
249 if attach:
MemoryError: LeonTue, 15 Jan 2019 17:42:46 -0600http://ask.sagemath.org/question/45062/