ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 23 Jun 2015 15:43:44 +0200maxima is eating up all the memoryhttps://ask.sagemath.org/question/7954/maxima-is-eating-up-all-the-memory/I am running a sage script that uses maxima_methods().exponentialize(). I have a time out wrapper that kills the sage after a specific amount of time say 20 secs. Normamly when I kill sage, the associated process including maxima are killed. But, in a case, it kills the sage but not the associated maxima process. And the maxima process is eating up all the memory. Any way to kill that associated maxima process when I kill the sage script. Shoud I need to change/tweak anything in the file sage/interfaces/maxima.py Thu, 17 Feb 2011 18:24:38 +0100https://ask.sagemath.org/question/7954/maxima-is-eating-up-all-the-memory/Comment by William Stein for <p>I am running a sage script that uses maxima_methods().exponentialize(). I have a time out wrapper that kills the sage after a specific amount of time say 20 secs. Normamly when I kill sage, the associated process including maxima are killed. But, in a case, it kills the sage but not the associated maxima process. And the maxima process is eating up all the memory. Any way to kill that associated maxima process when I kill the sage script. Shoud I need to change/tweak anything in the file sage/interfaces/maxima.py </p>
https://ask.sagemath.org/question/7954/maxima-is-eating-up-all-the-memory/?comment=22091#post-id-22091You write "But, in a case,". To debug this, it would be very helpful if you posted an example that illustrates the problem. This is surely a bug...Thu, 17 Feb 2011 23:06:14 +0100https://ask.sagemath.org/question/7954/maxima-is-eating-up-all-the-memory/?comment=22091#post-id-22091Answer by nbruin for <p>I am running a sage script that uses maxima_methods().exponentialize(). I have a time out wrapper that kills the sage after a specific amount of time say 20 secs. Normamly when I kill sage, the associated process including maxima are killed. But, in a case, it kills the sage but not the associated maxima process. And the maxima process is eating up all the memory. Any way to kill that associated maxima process when I kill the sage script. Shoud I need to change/tweak anything in the file sage/interfaces/maxima.py </p>
https://ask.sagemath.org/question/7954/maxima-is-eating-up-all-the-memory/?answer=27183#post-id-27183If you are just interested in using some functionality that maxima offers on a sage expression, then maxima_methods is probably an outdated way of doing so presently: it still uses a text-based interface to maxima, whereas we have maxima_lib nowadays.
If you have a symbolic expression F and do
`F._maxima_().exponentialize()._sage_()`
you should get basically the same result as
`F.maxima_methods().exponentialize()`
but via the more efficient maxima_lib interface. That doesn't involve a separate process either, so killing sage will just do the trick. Perhaps maxima_methods needs to be migrated to use maxima_lib, but since the only thing it does is convert the expression back to sage after the method call, it's hardly worth supporting in the first place.Mon, 22 Jun 2015 20:50:23 +0200https://ask.sagemath.org/question/7954/maxima-is-eating-up-all-the-memory/?answer=27183#post-id-27183Comment by kcrisman for <p>If you are just interested in using some functionality that maxima offers on a sage expression, then maxima_methods is probably an outdated way of doing so presently: it still uses a text-based interface to maxima, whereas we have maxima_lib nowadays.</p>
<p>If you have a symbolic expression F and do</p>
<p><code>F._maxima_().exponentialize()._sage_()</code></p>
<p>you should get basically the same result as</p>
<p><code>F.maxima_methods().exponentialize()</code></p>
<p>but via the more efficient maxima_lib interface. That doesn't involve a separate process either, so killing sage will just do the trick. Perhaps maxima_methods needs to be migrated to use maxima_lib, but since the only thing it does is convert the expression back to sage after the method call, it's hardly worth supporting in the first place.</p>
https://ask.sagemath.org/question/7954/maxima-is-eating-up-all-the-memory/?comment=27187#post-id-27187Hmm, what about tab-completion? Does one of these support tab-completion of said Maxima methods better?Tue, 23 Jun 2015 15:43:44 +0200https://ask.sagemath.org/question/7954/maxima-is-eating-up-all-the-memory/?comment=27187#post-id-27187