Keeping an interactive system responsive: chrt and ionice

At times, I’ll kick off an I/O intensive process, like running aide, or generating a photo album. I don’t want those things to interfere with the interactive feel of my Linux system. I stumbled on the following solution:

chrt --idle 0 ionice -t -c3 <program>