![]() |
2016-10-11
, 14:01
|
Posts: 127 |
Thanked: 313 times |
Joined on Sep 2016
@ Yekaterinbourg, Russia
|
#2
|
![]() |
2016-10-11
, 14:13
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#3
|
Hello, rinigus.
Tnanks for useful application, but sometimes I see on the charts Battery_current=0 A and Battery_power_consumption=hundreds mW at the same time period(a few hours). It's strange.
![]() |
2016-10-12
, 04:20
|
Posts: 127 |
Thanked: 313 times |
Joined on Sep 2016
@ Yekaterinbourg, Russia
|
#4
|
If that shows correct non-zero value and you get 0 in the graph... You could easily do that by opening an issue on https://github.com/rinigus/systemdatascope
![]() |
2016-10-12
, 06:12
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#5
|
Yes, I'm sure it's correct non-zero value for current, it's only 0 in the graph. This for standbye mode for night hours. Big value for power consumption is strange. IMHO this value continues from past, does not change to XX mA.
Tonight it was better for current/power_consumption, i.e. 0mA/98mW for graphs. Then, 98mW/4.15V=23.5mA. It's excessively for standbye, but this is other problem... Maybe in history value for current is other?..
I'll try for github, it's not very simple :-) I don't know how add screenshot here from PC.
![]() |
2016-10-12
, 09:57
|
Posts: 127 |
Thanked: 313 times |
Joined on Sep 2016
@ Yekaterinbourg, Russia
|
#6
|
![]() |
2016-10-12
, 11:10
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#7
|
Hi, rinigus.
Many thanks for this detailed explanation. I'll see and try.
This story with battery is by origin from N9. It's good application for N9(and symbian devices) EnergyProfiler. I know current in standbye mode(only 2G=on) for N9 is 7...9mA(2mA for N52) and for battery 1450 mAh -> 1450/9=161h=6.7days. Aqua Fish battery have 2500 mAh and for current 23 mA I have 108.7h=4.5days only. And it's close to my practice for this moment. It's bad.
I don't know why consumption is three times more but I would like to reduce consumption. I know the difference between N9 and Jolla_C, but... :-)
The Following User Says Thank You to rinigus For This Useful Post: | ||
![]() |
2016-12-12
, 15:58
|
Posts: 127 |
Thanked: 313 times |
Joined on Sep 2016
@ Yekaterinbourg, Russia
|
#8
|
The Following User Says Thank You to XOleg For This Useful Post: | ||
![]() |
2016-12-12
, 17:43
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#9
|
@rinigus Battery_current, Battery_power_consumption are stranges. Current is very low for this consumption. I'm not a programmer, I don't understand how this is possible.
https://ptpb.pw/_Fyj.png
https://ptpb.pw/qSnv.png
https://ptpb.pw/fhZh.png
https://ptpb.pw/RD1P.png
https://ptpb.pw/5HVM.png
https://ptpb.pw/UMD2.png
https://ptpb.pw/G_T-.png
https://ptpb.pw/2W1S.png
https://ptpb.pw/IG8j.png
https://ptpb.pw/wCmQ.png
![]() |
2017-09-12
, 11:55
|
Posts: 112 |
Thanked: 116 times |
Joined on Apr 2012
|
#10
|
Example of the questions this solution can answer you: does my phone enter sleep? for how long? which CPU frequencies are used? when did my RAM run out? whats a battery current? how much cellular traffic did I use? All these questions are relevant for monitoring different aspects of your device performance, such as determining reasons behind battery drain, for example.
It is expected that users are running this solution 24x7 without any noticeable impact on battery life, CPU, RAM, and storage usage.
collectd
Homepage: https://collectd.org/
Sailfish port: https://github.com/rinigus/collectd
Packages: https://openrepos.net/content/rinigus/collectd
rrdtool
Sailfish packaging scripts: https://github.com/rinigus/pkg-rrdtool
Packages: https://openrepos.net/content/rinigus/rrdtool
SystemDataScope
Homepage: https://github.com/rinigus/systemdatascope
Packages: https://openrepos.net/content/rinigus/systemdatascope
Screenshots: see SystemDataScope and collectd OpenRepos packages description.
When in use, the data is recorded by collectd and stored in RRD datasets. collectd runs as a daemon that should be enabled on installation. Data can be visualized using SystemDataScope that uses rrdtool to generate graphs. SystemDataScope also shows selected graph on a cover allowing you to follow recent data (whether your device is entering CPU sleep, for example).
Goal is to allow keep records that cover several time windows from hours, days, up-to a year in the default configuration. The data can be viewed on a device as well as the GUI allows you to generate the reports that you could send as a feedback on relevant forums.
The collected data covers CPU usage and sleep, battery, RAM and storage, network, radios, system load and processes.
In addition to overall system data, you could also follow some specific apps and see their CPU, RAM, I/O usage. This is useful if you develop an app and want to profile it.
Used resources
collectd has a very small CPU (~0.1% of wall time), RAM (~15MB RSS for collectd and datasets kept in RAM), and storage (~10MB for all default datasets) impact. collectd wakes up the device once in 2.5 minutes to perform the readout. SystemDataScope's main impact is through RAM usage which is ~55MB RSS that's used by GUI and rrdtool running in the background. CPU usage is negligible when minimized (redrawing of the cover once in 2 minutes) and an average when you scroll through the graphs. As such, I would expect that it has no noticeable impact.
Current state
In general, all is expected to work. There are several plugins that I developed for collectd and which are not merged yet with upstream. Taking into account the earlier experience with the other plugins, I expect that the recorded data may change for these plugins and the users would have to remove the old datasets recorded by these plugins. Eventually, when everything is merged with upstream such inconvenience would disappear.
If something does not work, please send your bug reports via GitHub by opening an Issue or reporting here.
Licenses: Open Source, see corresponding package or module.
Last edited by rinigus; 2016-10-08 at 17:16.