Is magma.exe the math application listed here? 
http://magma.maths.usyd.edu.au/magma/download/x86_64-linux/

According to your process list that you posted, it looks like you use X11 with 
KDE plasma. You load up konsole, which starts bash and then you start magma.exe 
from there.

Likely it does sufficiently long computations that you need to leave it running 
for a while. That makes a lot of sense.

setsid(1) looks like a good tool for detaching magma from bash. Then you could 
safely close bash and the konsole and restart plasma and the X server demons 
(systemd services) every now and then so that you can free up that 50% plus of 
your 32 gigs of ram.

You had all those free up as much memory as rebooting the machine, but without 
having to interrupt magma with an actual machine reboot.

You could also accomplish this with tmux or screen, instead of setsid. You 
would load up Konsole and bash, start a tmux or screen session with a separate 
bash shell process in it, start magma, and then detach from the tmux or screen 
session.

Then you could safely exit Konsole, restart X and Plasma, launch a new konsole 
window, and reattached to that same tmux or screen session with magma running 
inside of it.

Would that work in your case?

On Sun, Nov 13, 2022 at 3:23 PM, American Citizen <[email protected]> 
wrote:

> The setsid() command does exactly what I need when starting programs of
> this type
>
> See https://www.man7.org/linux/man-pages/man1/setsid.1.html about this
>
> Now, just to figure out a way to detach the parent from these children
> safely.

Reply via email to