unity-scope-loader is adding the SAME inotify watches regularly every 4 seconds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libunity |
New
|
High
|
Unassigned | ||
libunity (Ubuntu) |
New
|
High
|
Unassigned |
Bug Description
unity-scope-loader is adding the SAME inotify watches regularly every 4 seconds:
Inotify watches added:
PID Process Rate/Sec File
3495 unity-scope-loader 0.250 /usr/share/
3495 unity-scope-loader 0.250 /etc/xdg/
3495 unity-scope-loader 0.250 /usr/share/
3495 unity-scope-loader 0.250 /usr/local/
3495 unity-scope-loader 0.250 /usr/share/
3495 unity-scope-loader 0.250 /home/king/
3495 unity-scope-loader 0.250 /etc/xdg/
3495 unity-scope-loader 0.250 /etc/xdg/
I'm seeing every 4 seconds the *same* files being added to an inotify watch. Additionally, the code is polling every 4 seconds to do this:
Top polling system calls:
PID Process Syscall Rate/Sec Infinite Zero Minimum Maximum Average
3476 unity-scope-loader poll 0.0167 2 3 0.0 sec 0.0 sec 0.0 sec
3495 unity-scope-loader poll 0.2500 0 0 4.0 sec 4.0 sec 4.0 sec
Total 0.2667 2 3
the timeout is set to just 4 seconds. Is this heavy polling and repeated inotify watch adding really required? We're trying to get the battery life to last longer and this kind of polling activity just is rather anti-social if it is not necessary.
Attached are the results of a 5 minute analysis from the health-check too.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libunity9 7.1.4+14.
ProcVersionSign
Uname: Linux 3.13.0-21-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Apr 3 15:14:14 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-03-25 (9 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140323)
SourcePackage: libunity
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in libunity: | |
importance: | Undecided → High |