Created
April 10, 2014 15:00
-
-
Save hfs/10391365 to your computer and use it in GitHub Desktop.
Wrap a command with 'nice' and 'ionice' to give it lower CPU and IO priority
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
#!/bin/sh | |
# | |
# Start the command "$0.original", i.e. with the same name and ".original" | |
# appended with nice (lower CPU priority) and ionice (lower IO priority) | |
# | |
# Usage: If you want to provide "foo", rename "foo" to "foo.original", then | |
# link this script in "foo"'s place | |
nice ionice -c 3 "$0.original" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment