telephony-service-indicator is waking up every 4 seconds adding inotifies on paths that don't exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
telephony-service (Ubuntu) |
Triaged
|
High
|
Tiago Salem Herrmann |
Bug Description
Daily wakeups tests show that telephony-
http://
It is waking up every 4 seconds on a poll() and doing two inotify_add_watch() calls on paths that don't exist, which wastes power on devices such as phones, e.g:
Inotify watches added:
PID Process Rate/Sec File
2102 telephony-
2102 telephony-
This can be observed with strace:
poll([{fd=7, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3984) = 0 (Timeout)
clock_gettime(
inotify_
inotify_
clock_gettime(
poll([{fd=7, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3987) = 0 (Timeout)
clock_gettime(
inotify_
inotify_
clock_gettime(
Can these redundant polling checks be reduced or removed? Polling every 4 seconds is a little bit heavy handed IMHO.
tags: | added: rtm14 |
summary: |
- telephony-service-indicator is waking up every 4 seconds is waking up - every 4 seconds adding inotifies on paths that don't exist + telephony-service-indicator is waking up every 4 seconds adding + inotifies on paths that don't exist |
Changed in telephony-service: | |
importance: | Undecided → High |
status: | New → Triaged |
assignee: | nobody → Tiago Salem Herrmann (tiagosh) |
Changed in telephony-service (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Tiago Salem Herrmann (tiagosh) |
tags: | added: pat |
no longer affects: | telephony-service |
Changed in telephony-service (Ubuntu): | |
status: | Incomplete → Triaged |
I debugged this issue and the inotify_add_watch() calls start to happen after I call messaging_ menu_app_ new() in the telephony- service- indicator, so I suppose there is something wrong there in messaging-menu.