It would be nice if cron would run all jobs as if they were prefixed with nice ionice -c2 -n6 Nicely starting the cron daemon itself would also be nice. Have a nice nice day.
The particular values would be targets for tuning on a per-job basis, though some sane defaults are probably worthwhile (I don't need slocate to take all my I/O, thanks!). Just to spur discussion, a proposal that steals from SELinux's MLS_LEVEL crond approach: add to /etc/sysconfig/crond: IO_CLASS=2 IO_PRIORITY=6 NICE=10 and then modify crond to recognize: CRON_IO_CLASS=2 CRON_IO_PRIORITY=6 CRON_NICE=10 environment variables in crontabs and launch the jobs under nice and ionice if any of the above are set. I stuck CROND_ in there to quasi-namespace them, so we don't clobber others' use of the names (which might be likely if this is filling an existing need). The init script can launch prepend CRON_ when it starts crond. This would be a big win for both desktops and servers, both of which tend to get unexpectedly bogged down during some common cron tasks.
This seems very reasonable.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Very little is using cronie these days, but perhaps the systemd timer units are also not being spawned with batch priority and I/O class.
cron has been superseded by systemd timers, many of which explicitly set Nice and IOSchedulingClass as appropriate.