I've been trying the "nicer" way to run a gzip
from a bash
script on an active server, but it somehow manages to get the load average above what I would wish it would be.
Which of the following would be softer on the I/O and the CPU?
Is there another way I'm not aware of?
/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 gzip -9 -q foo*
or
/usr/bin/ionice -c2 -n7 /usr/bin/nice -n 19 gzip -9 -q foo*
Also, is there another commands such as ulimit
that would help reducing the load on the server?