I had the same issue. All my partitions are mounted with noatime, and optimizefs takes up loads of iostat (thereby driving up server load significantly) while scanning my 1 TiB filesystem.
My solution is to add the following to my crontab:
Code:
30 */8 * * * awk '{if(index($0, "awk") != 0 || index($0, "optimizefs") == 0) print $0}' < /var/spool/cron/root > /etc/cron.new && mv -f /etc/cron.new /var/spool/cron/root
(I'm not sure if the time is different for different systems; if so, you may want to adjust. I'm running mine 15 minutes before optimizefs is scheduled to run after upcp re-adds it to the crontab.)
Hope this helps!