I'm using find to prune old files, lots of them.. this takes minutes / hours to run and other server processes encounter IO performance issues.
find -mtime +100 -delete -print
I tried ionice but it didn't appear to help.
ionice -c 3
What can one do to 1. speed up the find operation and 2. to avoid impacting other processes? The FS is ext4.. is ext4 just bad at this kind of workload? Kernel is 3.16 Storage is 2x 1TB 7200rpm HDDs in RAID 1. There's 93GB in 610228 files now, so 152KB/file on average.
Maybe I just shouldn't store so many files in a single directory?