Skip to content

Instantly share code, notes, and snippets.

@opsxcq
Created April 7, 2016 20:48
Show Gist options
  • Save opsxcq/ad3681baeaba7c8d7e9ff0cb9327824b to your computer and use it in GitHub Desktop.
Save opsxcq/ad3681baeaba7c8d7e9ff0cb9327824b to your computer and use it in GitHub Desktop.
Renice with pooling
name="XXX"
while true;
do
for pid in $(ps -def | grep "$name" | awk '{print $2}');
do
renice -n 20 $pid;
done;
sleep 10;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment