friends-dispatcher is a little busy doing data updates on idle systems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
friends (Ubuntu) |
Fix Released
|
Undecided
|
Ken VanDine |
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-
14:21:52.931757 friends-
14:26:52.913722 friends-
14:26:53.072627 friends-
14:31:52.912653 friends-
14:31:52.913020 friends-
14:31:52.933649 friends-
14:31:54.668513 friends-
14:31:54.781733 friends-
14:31:54.781855 friends-
14:31:54.946894 friends-
14:31:54.952448 friends-
14:31:54.953394 friends-
14:32:24.846278 friends-
14:32:24.847956 friends-
14:32:24.907710 friends-
14:32:24.907710 friends-
14:32:24.908015 friends-
14:36:52.913844 friends-
14:36:52.936030 friends-
14:41:52.913325 friends-
14:41:52.913660 friends-
14:41:52.932856 friends-
14:46:52.920893 friends-
14:46:52.921259 friends-
14:46:52.937769 friends-
14:46:54.778651 friends-
14:46:54.890253 friends-
14:46:54.890376 friends-
14:46:55.082148 friends-
14:46:55.090266 friends-
14:46:55.091456 friends-
14:47:25.854884 friends-
14:47:25.856074 friends-
14:47:25.927485 friends-
14:47:25.927485 friends-
14:47:25.927790 friends-
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.
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- Ken VanDine: Approve
-
Diff: 28 lines (+3/-3)2 files modifieddata/com.canonical.friends.gschema.xml (+2/-2)
service/src/service.vala (+1/-1)
- PS Jenkins bot (community): Approve (continuous-integration)
- Robert Bruce Park: Approve
-
Diff: 48 lines (+6/-6)2 files modifieddata/com.canonical.friends.gschema.xml (+2/-2)
service/src/service.vala (+4/-4)
description: | updated |
Changed in friends (Ubuntu): | |
assignee: | Robert Bruce Park (robru) → Ken VanDine (ken-vandine) |
Changed in friends (Ubuntu): | |
status: | Confirmed → Fix Committed |
Colin, what number do you get when you run `gsettings get com.canonical. friends interval` ? The default is 15 but yours seems to be set to 5. Setting it to 15 will improve your battery life if you are concerned about it.