On a linux (ubuntu 16.04) machine I am running one instance of Sage
version 7.6.  In a loop I am calling a function of my own which
interfaces to Magma; that function starts with

 mag = Magma()

then there are a whole lot of mag.eval() statements and af ew others
with which I collect the content of Magma variable back into Sage, and
the last line before the function returns is

 mag.quit()

Once this has been running for a while, I have --as expected-- exactly
one magma process running.  But there are many defunct python
processes (right now, 1375 lines like
jec      59385  0.0  0.0      0     0 pts/11   Z+   12:30   0:00
[python] <defunct>
in the output of ps -ux | grep python) whose times stamps show that
many per second were created.  These are all child processes of the
controlling Sage process.  They seem harmless since they are not using
any resources, but I had 5 such Sage sessions running overnight and
this morning could not log into the machine for a while and I suspect
(without proof) that some maximum number of processes was exceeded --
when I did log in, I saw that all 5 of the Sage processes had been
killed and showed an error message about not being able to fork().
The computer has 512g of RAM and 72 cores, and was not heavily loaded.

Help please!

I am attaching the function in question in case that helps.

John

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Attachment: l.sage
Description: Binary data

Reply via email to