Bug 240073 - cron should use inotify instead of constantly stat'ing files.
Summary: cron should use inotify instead of constantly stat'ing files.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cronie
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: wakeup
TreeView+ depends on / blocked
 
Reported: 2007-05-14 20:57 UTC by Dave Jones
Modified: 2015-01-04 22:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-04 11:56:11 UTC


Attachments (Terms of Use)

Description Dave Jones 2007-05-14 20:57:29 UTC
strace crond, and you'll see it wakes up once a minute to stat /etc/crontab,
/etc/cron.d and /var/spool/cron to look if anything changed.
This prevents the disk from ever spinning down when the system is otherwise idle.

If crond used inotify to find out that these files/dirs changed, it wouldn't
have to keep waking up at all.

Comment 1 Marcela Mašláňová 2007-07-24 07:51:01 UTC
Thanks for comment, I'm working on it in upstream and I'm planning after some
testing push it to rawhide.

Comment 2 Nick Lamb 2008-01-27 20:01:59 UTC
How's this work coming? This is a very small contributor to unnecessary wakeups,
and with relatime it no longer keeps disks spun up either, but every little
helps, especially in core features like the cron daemon that can't really be
disabled.

Comment 3 Marcela Mašláňová 2008-01-31 11:47:22 UTC
I agree with you that's important feature.
I rewrote the essential part of code, but there are still some features, options
which don't work yet. 
I'm not sure if I make it to F-9 release, because I definitely don't want push
untested package.


Comment 4 Bug Zapper 2008-05-14 02:54:17 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.