Bug 205068 - pam_timestamp_check wakes up every 5 seconds to poll if a file has changed
Summary: pam_timestamp_check wakes up every 5 seconds to poll if a file has changed
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pam
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: wakeup
TreeView+ depends on / blocked
 
Reported: 2006-09-03 13:10 UTC by Arjan van de Ven
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-04 15:58:16 UTC


Attachments (Terms of Use)
Patch to round the sleep up to wake up at the start of the wallclock second (887 bytes, patch)
2006-09-03 13:10 UTC, Arjan van de Ven
no flags Details | Diff

Description Arjan van de Ven 2006-09-03 13:10:13 UTC
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.

Comment 1 Arjan van de Ven 2006-09-03 13:10:13 UTC
Created attachment 135457 [details]
Patch to round the sleep up to wake up at the start of the wallclock second

Comment 2 Tomas Mraz 2006-09-04 13:53:18 UTC
Eventually it should use inotify, however for FC-6 I'll use the rounding patch.



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