Red Hat Bugzilla – Bug 205068
pam_timestamp_check wakes up every 5 seconds to poll if a file has changed
Last modified: 2007-11-30 17:11:42 EST
Description of problem:
pam_timestamp_check (run by the default FC6 config when a gnome user logs in)
wakes up every 5 seconds to poll if a file or two have changed.
Ideally, it would just use inotify for this rather than polling.
But if it has to really poll, please consider at least the attached patch; it'll
make sure that pam wakes up right at the start of the second as opposed to
random places inside the second. Other apps are going to wake up at the start of
a new second as well, and when none of them wake during the rest of the second
the cpu can go into deep power saving state.
Created attachment 135457 [details]
Patch to round the sleep up to wake up at the start of the wallclock second
Eventually it should use inotify, however for FC-6 I'll use the rounding patch.