Ask Your Question
0

maxima is eating up all the memory

asked 2011-02-17 11:24:38 -0500

Shu gravatar image

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

edit retag flag offensive close merge delete

Comments

You 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...

William Stein gravatar imageWilliam Stein ( 2011-02-17 16:06:14 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2015-06-22 13:50:23 -0500

nbruin gravatar image

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.

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.

edit flag offensive delete link more

Comments

Hmm, what about tab-completion? Does one of these support tab-completion of said Maxima methods better?

kcrisman gravatar imagekcrisman ( 2015-06-23 08:43:44 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-02-17 11:24:38 -0500

Seen: 273 times

Last updated: Jun 22 '15