Skip to content

Instantly share code, notes, and snippets.

@amotl
Created March 18, 2019 20:13
Show Gist options
  • Select an option

  • Save amotl/b81cc68e4fbd7d82e078cfaa836f4767 to your computer and use it in GitHub Desktop.

Select an option

Save amotl/b81cc68e4fbd7d82e078cfaa836f4767 to your computer and use it in GitHub Desktop.
Increase scheduling priority for ffmpeg and packager processes
#!/bin/bash
# https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/
processnames="ffmpeg packager"
niceness="-10"
for name in $processnames; do
echo "Renicing $name"
pids=$( pidof $name )
for pid in $pids; do
#echo $pid
renice --priority $niceness --pid $pid
done
echo "Reniced processes: $pids"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment