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.Thu, 18 Jun 2020 03:18:58 -0500little code which produces memory overflowhttp://ask.sagemath.org/question/52065/little-code-which-produces-memory-overflow/ HI
UBUNTU 18.04 Sagemath 9.1 notebook.
just for information:
this little code saturates my computer memory if executed 3 or 4 times. if I run it 2 times the memory goes up 2 times and if I reset the kernel the occupied memory goes back down. if I saturate the PC memory by executing this code 3 or 4 times then my PC becomes unusable and I have to turn off my PC and turn it back on.
import sys
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
from matplotlib.pyplot import figure
figS=100
figure(num=None, figsize=(figS, 2*figS), dpi=150, facecolor='w', edgecolor='k')
#
![image description](/upfiles/15924682665808095.png)ortolljThu, 18 Jun 2020 03:18:58 -0500http://ask.sagemath.org/question/52065/How to increase ECL/maxima memory limits in SageMath?http://ask.sagemath.org/question/47203/how-to-increase-eclmaxima-memory-limits-in-sagemath/ I am looking for a symbolic solution of a linear system 10x10. The coefficients and the right-hand sides are symbolic expressions, and it is critical for my. After one hour run with ~5 GB memory consumption I get an error message:
"TypeError: ECL says: Memory limit reached. Please jump to an outer pointer, quit program and enlarge the memory limits before executing the program again."
My Windows-10 PC has 64 GB, so it is definitely not the physical memory limitation. According to my Google search results, there are deliberately tight default memory limits in the Embeddable Common Lisp (ECL), which is used in Maxima. This page
"https://trac.sagemath.org/ticket/6772"
suggests to increase the ECL heap size to 1 GB by adding a line
"(ext:set-limit 'ext:heap-size (* 1024 1024 1024))"
to the file "maxima/src/ecl-port.lisp". I have found this file under "C:\Program Files\SageMath 8.7\runtime\opt\sagemath-8.7\local\share\maxima\5.41.0\src" and added such line with the 8 GB limit (* 2048 2048 2048). This had absolutely no effect, the same error message appeared after the same run time.
I see two such questions answered in this forum. However both answers suggest to reformulate the original problem, which is not what I need. I will appreciate an explanation of how to increase the ECL memory limits in SageMath. Is there something like ".eclrc" configuration file in SageMath? May be, I have to install Maxima standalone and try it there?SevasThu, 18 Jul 2019 04:15:50 -0500http://ask.sagemath.org/question/47203/