I have a script that starts big, CPU and memory consuming tree of processes. There is Python and executables down there, but everything starts with single bash script and python subprocesses.
During the execution, rest of system is completely chocked down. I attempted to do mitigate by
$ nice -n10 ionice -c2 ./Script.sh, however this is not sufficient - using computer is very laggy
(acutally this is development desktop, but the problem on designated server will be the same analogous).
I suspect, that the problem is with processes using to much memory - everything ends up swapped out and becomes sluggish.
Is there a way to lower priority of a process (and its recursive children) in access to physial memory? I prefer it to be done slower in background with limited influence on other tasks.