From time to time, I make the mistake of generating too many small files in a single directory. This usually results in some trouble removing the directory,
rm -rf is not very I/O efficient here.
Here's how to run
ionice to make it go!
ionice -n7 nice rm -rf directory