On one of my machines the backup the backup process was disturbing running services. I didn’t want to stop the backup process so I decided to lower it’s priorities:
1 2 | for pid in `ps aux | grep backup | grep -v grep | tr -s " " | cut -d " " -f2`; do ionice -c 3 -p $pid; done for pid in `ps aux | grep backup | grep -v grep | tr -s " " | cut -d " " -f2`; do renice -n 19 $pid; done |
Comments