-
-
Save opsxcq/ad3681baeaba7c8d7e9ff0cb9327824b to your computer and use it in GitHub Desktop.
Renice with pooling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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