accounts-daemon is polling frequenly on phablet images

Bug #1231531 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
accountsservice (Ubuntu)
New
Undecided
Unassigned

Bug Description

Running today's image on a Samsung Galaxy Nexus I am observing frequent regular periodic polling by accounts-daemon on an idle system. Running strace on it I see:

poll([{fd=4, events=POLLIN}, {fd=7, events=POLLIN}], 2, 537) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {12270, 5725668}) = 0
inotify_add_watch(7, "/etc/gdm", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
clock_gettime(CLOCK_MONOTONIC, {12270, 7373617}) = 0
poll([{fd=4, events=POLLIN}, {fd=7, events=POLLIN}], 2, 3993) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {12274, 8106038}) = 0
inotify_add_watch(7, "/etc/gdm", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
clock_gettime(CLOCK_MONOTONIC, {12274, 9204671}) = 0
poll([{fd=4, events=POLLIN}, {fd=7, events=POLLIN}], 2, 3991) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {12278, 6854036}) = 0
inotify_add_watch(7, "/etc/gdm", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
clock_gettime(CLOCK_MONOTONIC, {12278, 8318940}) = 0

So it is polling every 4 seconds and timing out. Is this polling absolutely necessary since it is essentially blocking on fd 4 and 7?

Also, it is interesting that every poll loop it adds an inotify_add_watch on /etc/gdm which does not exist on the phone images. It seems a little bit wasteful to keep on doing this every 4 seconds.

tags: added: mobile-power-consumption
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.