← Back to team overview

dx-packages team mailing list archive

[Bug 1231531] [NEW] accounts-daemon is polling frequenly on phablet images

 

Public bug reported:

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.

** Affects: accountsservice (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: mobile-power-consumption

** Tags added: mobile-power-consumption

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to accountsservice in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1231531

Title:
  accounts-daemon is polling frequenly on phablet images

Status in “accountsservice” package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1231531/+subscriptions


Follow ups

References