Ask Your Question
0

maxima is eating up all the memory

asked 14 years ago

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

Preview: (hide)

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 ( 14 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 9 years ago

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.

Preview: (hide)
link

Comments

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

kcrisman gravatar imagekcrisman ( 9 years ago )

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: 14 years ago

Seen: 644 times

Last updated: Jun 22 '15