NetworkManager is polling every 4 seconds on the Desktop looking for /var/lib/ofono
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
Critical
|
Mathieu Trudel-Lapierre |
Bug Description
I was looking at what's sucking power on the Trusty desktop and found that NetworkManager is polling every 4 seconds adding an inotify watch on /var/lib/ofono (which does not exist on the desktop - isn't that a phone related component?).
Anyhow, strace on one of the threads of NetworkManager shows:
sudo strace -p 710
Process 710 attached
restart_
inotify_
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3996) = 0 (Timeout)
inotify_
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3995) = 0 (Timeout)
inotify_
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3995) = 0 (Timeout)
inotify_
So:
1. The polling is rather heavy - every 4 seconds? Is that really necessary?
2. Surely we can avoid repeatedly adding a watch on a directory that does not exist. Are there better ways than doing this so frequently, especially because it does not seem relevant on my desktop install.
Anyhow, can this be investigated, it's one of the final big causes of wakeups on an idle desktop image.
Changed in network-manager-applet (Ubuntu): | |
importance: | Undecided → High |
I've got some stats to show how this is now one of the top wake-up offending processes on the desktop now:
http:// ci.ubuntu. com/power/ eventstat/ image/3105/ machine/ 1/task/ NetworkManager/ details/