Sorry for the delay. I found the cause of this and I've pushed a branch.
** Changed in: friends (Ubuntu)
Status: New => Fix Committed
** Changed in: friends (Ubuntu)
Assignee: (unassigned) => Robert Bruce Park (robru)
** Branch linked: lp:~robru/friends/decrease-polling-frequency
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to friends in Ubuntu.
https://bugs.launchpad.net/bugs/1238083
Title:
friends-dispatcher is a little busy doing data updates on idle systems
Status in “friends” package in Ubuntu:
Fix Committed
Bug description:
I've noticed that on an idle system friends-dispatcher is doing writes
to a bunch of files and logs periodically.
install fatrace, cd to / and run it and you will see the activity.
This is what I observed over a 30 minute interval on the ubuntu-touch
phone:
14:21:52.912959 friends-service(2226): WO
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.BQ9W4W
14:21:52.931757 friends-service(2226): CW
/home/phablet/.local/share/resources/com.canonical.Friends.Streams
14:26:52.913722 friends-service(2226): WO
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.V39W4W
14:26:53.072627 friends-service(2226): CW
/home/phablet/.local/share/resources/com.canonical.Friends.Streams
14:31:52.912653 friends-service(2226): O
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.LD9W4W
14:31:52.913020 friends-service(2226): W
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.LD9W4W
14:31:52.933649 friends-service(2226): CW
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.LD9W4W
14:31:54.668513 friends-dispatc(2517): CW
/home/phablet/.config/libaccounts-glib/accounts.db
14:31:54.781733 friends-dispatc(2517): W /tmp/oe77uw
14:31:54.781855 friends-dispatc(2517): CW /tmp/oe77uw
14:31:54.946894 friends-dispatc(2517): W
/home/phablet/.cache/friends/friends.log
14:31:54.952448 friends-dispatc(2517): W
/home/phablet/.cache/friends/friends.log
14:31:54.953394 friends-dispatc(2517): W
/home/phablet/.cache/friends/friends.log
14:32:24.846278 friends-dispatc(2517): W
/home/phablet/.cache/friends/friends.log
14:32:24.847956 friends-dispatc(2517): CW
/home/phablet/.cache/friends/friends.log
14:32:24.907710 friends-dispatc(2517): CW
/home/phablet/.config/libaccounts-glib/accounts.db-shm
14:32:24.907710 friends-dispatc(2517): CW
/home/phablet/.config/libaccounts-glib/accounts.db-wal
14:32:24.908015 friends-dispatc(2517): CW
/home/phablet/.config/libaccounts-glib/accounts.db
14:36:52.913844 friends-service(2226): WO
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.HAAX4W
14:36:52.936030 friends-service(2226): CW
/home/phablet/.local/share/resources/com.canonical.Friends.Streams
14:41:52.913325 friends-service(2226): O
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.6E9W4W
14:41:52.913660 friends-service(2226): W
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.6E9W4W
14:41:52.932856 friends-service(2226): CW
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.6E9W4W
14:46:52.920893 friends-service(2226): O
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.NQLT4W
14:46:52.921259 friends-service(2226): W
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.NQLT4W
14:46:52.937769 friends-service(2226): CW
/home/phablet/.local/share/resources/com.canonical.Friends.Streams.NQLT4W
14:46:54.778651 friends-dispatc(2555): CW
/home/phablet/.config/libaccounts-glib/accounts.db
14:46:54.890253 friends-dispatc(2555): W /tmp/vg79r1
14:46:54.890376 friends-dispatc(2555): CW /tmp/vg79r1
14:46:55.082148 friends-dispatc(2555): W
/home/phablet/.cache/friends/friends.log
14:46:55.090266 friends-dispatc(2555): W
/home/phablet/.cache/friends/friends.log
14:46:55.091456 friends-dispatc(2555): W
/home/phablet/.cache/friends/friends.log
14:47:25.854884 friends-dispatc(2555): W
/home/phablet/.cache/friends/friends.log
14:47:25.856074 friends-dispatc(2555): CW
/home/phablet/.cache/friends/friends.log
14:47:25.927485 friends-dispatc(2555): CW
/home/phablet/.config/libaccounts-glib/accounts.db-shm
14:47:25.927485 friends-dispatc(2555): CW
/home/phablet/.config/libaccounts-glib/accounts.db-wal
14:47:25.927790 friends-dispatc(2555): CW
/home/phablet/.config/libaccounts-glib/accounts.db
Periodic database updates and writes to the log are fine, but if we
see lots of data and metadata writes spaced out over time with a few
minute intervals between them then spinning media such as hard disks
don't really get the opportunity to go into idle and spin down, hence
consuming more power on laptops etc. Perhaps somebody can look into
seeing of the number of writes can be reduced or batched better.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/friends/+bug/1238083/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp