ionice -c 2 -n 4 -p 1234

Category: Administration

ionice -c 2 -n 4 -p 1234

Set best-effort I/O priority level

Best-effort class 2 is the default, and the -n level from 0 to 7 tunes priority within it, where 4 sits in the middle. Lower numbers get the disk first, so a compile job at -n 0 would starve everything else. Combine with nice for CPU plus I/O tuning.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.