Bug 205068

Summary: pam_timestamp_check wakes up every 5 seconds to poll if a file has changed
Product: [Fedora] Fedora Reporter: Arjan van de Ven <arjan>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-04 15:58:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 204948    
Attachments:
Description Flags
Patch to round the sleep up to wake up at the start of the wallclock second none

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.