unity-scope-loader is polling at very regular intervals

Bug #1231536 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-lens-applications
New
Undecided
Unassigned

Bug Description

In a vain attempt to try and reduce power consumption I've observed that unity-scope-loader is polling away merrily every 4 seconds. Running strace on the process shows:

poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3991) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {12721, 124500091}) = 0
inotify_add_watch(8, "/home/phablet/.config/menus/unity-lens-applications-merged", 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)
inotify_add_watch(8, "/etc/xdg/menus/unity-lens-applications-merged", 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)
inotify_add_watch(8, "/home/phablet/.config/menus", 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, {12721, 127368742}) = 0
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3992) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {12725, 125448015}) = 0
inotify_add_watch(8, "/home/phablet/.config/menus/unity-lens-applications-merged", 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)
inotify_add_watch(8, "/etc/xdg/menus/unity-lens-applications-merged", 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)
inotify_add_watch(8, "/home/phablet/.config/menus", 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, {12725, 128316521}) = 0

add infinitum..

Is this really necessary to poll so frequently? And also there are a bunch of failed inotify_add_watch() calls that are failing. Is that expected too?

As it is, the poll() is blocked on fd 9 and 8, so is a timeout of 4 seconds really required?

tags: added: mobile-power-consumption
description: updated
Revision history for this message
Michal Hruby (mhr3) wrote :

Seems to be coming from deep inside libgnome-menus...

affects: libunity → unity-lens-applications
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.