gvfs-afc-volume-monitor is stat'ing /var/run/usbmuxd every second
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu Power Consumption Project |
New
|
Undecided
|
Unassigned |
Bug Description
I've observed that gvfs-afc-
Using eventstat from my PPA: https:/
sudo eventstat 1 1 | grep gvfs-afc
1.00 2027 gvfs-afc-volume hrtimer_
and a strace shows:
stat("/
rt_sigprocmask(
rt_sigaction(
rt_sigprocmask(
nanosleep({1, 0}, 0x7faf78339dd0) = 0
stat("/
rt_sigprocmask(
rt_sigaction(
Rather than continually polling for /var/run/usbmuxd it is more efficient to use inotify on /var/run and observe any new files appearing and then do the check for /var/run/usbmuxd
Frequent periodical polling reads on the filesystem waste power and reduce the running time on battery.
description: | updated |