[Future] Control the number of processes
Created by: tele1
Few days ago I had something like fork bomb, I don't know how much I had process, but my 16GB RAM was busy. ( And I don't know from which app )
So I'm trying use /etc/security/limits.conf
tele soft nproc 500 tele hard nproc 700
Example : Before use pamac-update
$ ps -aux | wc -l 160 $ ps -elfT | wc -l 377
After use pamac-updater
$ ps -aux | wc -l 422 $ ps -elfT | wc -l 635
And I had many "echo" zombie from pamac-updater, I can not close pamac-updater, I can only kill pamac-updater and "echo" zombie disappears.
I can increase nproc to 1000, but if pamac will create more processes, I want close pamac-updater after update, because pamac-updater working, but I can not close window.