maemo-tools:sp-endurance.git
5 years agosp-endurance v3.0 v3.0
Tommi Rantala [Fri, 9 Dec 2011 13:39:22 +0000 (15:39 +0200)]
sp-endurance v3.0

5 years agoendurance_plot.1: remove reference to 'e' directory
Tommi Rantala [Fri, 9 Dec 2011 12:57:20 +0000 (14:57 +0200)]
endurance_plot.1: remove reference to 'e' directory

The 'e' directory is automatically removed since commit
65d495b1b135a0202e654dd47de193f5604acee5 ("endurance_plot: remove the
temporary directory 'e' by default").

5 years agoproc2csv: remove '-t' option
Tommi Rantala [Fri, 9 Dec 2011 12:52:20 +0000 (14:52 +0200)]
proc2csv: remove '-t' option

We are now requesting extra capabilities for proc2csv in Harmattan, so
remove the '-t' flag could be used for nefarious purposes.

5 years agoendurance_plot: do not 'eval' the ForkManager
Tommi Rantala [Fri, 9 Dec 2011 10:27:10 +0000 (12:27 +0200)]
endurance_plot: do not 'eval' the ForkManager

Do not try to catch errors here with 'eval', but just plain 'require'
and use the ForkManager if the '-j' flag was specified.

The ForkManager is still optional after this change.

5 years agoendurance_plot: remove the temporary directory 'e' by default
Tommi Rantala [Fri, 9 Dec 2011 10:24:05 +0000 (12:24 +0200)]
endurance_plot: remove the temporary directory 'e' by default

The endurance_plot script uses the 'e' directory for storing temporary
data, such as those required by gnuplot. Remove the directory by default
after the script has executed, and provide option '-e' for retaining it.

5 years agoMakefile: link xmeminfo explicitly with libX11
Tommi Rantala [Fri, 9 Dec 2011 09:56:29 +0000 (11:56 +0200)]
Makefile: link xmeminfo explicitly with libX11

xmeminfo uses symbols from libX11, so link to it explicitly. Fixes link
failures seen in some systems.

5 years agosave-incremental-endurance-stats: rename 'xres.log' to 'xmeminfo.log'
Tommi Rantala [Fri, 9 Dec 2011 09:46:02 +0000 (11:46 +0200)]
save-incremental-endurance-stats: rename 'xres.log' to 'xmeminfo.log'

The results from running xmeminfo is stored to file 'xmeminfo', so
follow the naming and store the possible errors to 'xmeminfo.log'.

5 years agosave-incremental-endurance-stats: do not hide sysinfoclient errors
Tommi Rantala [Fri, 9 Dec 2011 09:44:36 +0000 (11:44 +0200)]
save-incremental-endurance-stats: do not hide sysinfoclient errors

5 years agosave-incremental-endurance-stats: do not create dummy 'bootreason' and 'component_ver...
Tommi Rantala [Fri, 9 Dec 2011 09:42:46 +0000 (11:42 +0200)]
save-incremental-endurance-stats: do not create dummy 'bootreason' and 'component_version' files

Check that sysinfoclient is available before using it, to avoid creating
empty/dummy bootreason and component_version files.

5 years agosave-incremental-endurance-stats: collect /sys/class/backlight/
Tommi Rantala [Fri, 9 Dec 2011 09:39:28 +0000 (11:39 +0200)]
save-incremental-endurance-stats: collect /sys/class/backlight/

Collect backlight information, as it has an effect on battery lifetime.

5 years agoendurance_plot: prune old commented out debugging code
Tommi Rantala [Fri, 9 Dec 2011 09:18:47 +0000 (11:18 +0200)]
endurance_plot: prune old commented out debugging code

5 years agoproc2csv: collect /proc/pid/io optionally
Tommi Rantala [Fri, 9 Dec 2011 08:45:05 +0000 (10:45 +0200)]
proc2csv: collect /proc/pid/io optionally

Start collecting /proc/pid/io. These proc entries are only available if
the kernel was configured with suitable options.

The CSV entry that is produced looks like this:

PID,rchar,wchar,syscr,syscw,read_bytes,write_bytes,cancelled_write_bytes:
1,1554811136,380714952,711467,338580,1766457344,1499136,53248
2,0,0,0,0,0,0,0
3,0,0,0,0,0,0,0
6,0,0,0,0,0,0,0
10,0,0,0,0,0,0,0
29,0,0,0,0,0,0,0
250,0,0,0,0,0,0,0
251,0,0,0,0,0,0,0
342,0,0,0,0,0,19189760,0
343,0,0,0,0,0,0,0
398,1608,1556,3400,1556,0,0,0
400,11736848,156448,18168,3079,63933952,0,0
...

5 years agoproc2csv: document newly collected /proc/pid/wchan
Tommi Rantala [Fri, 9 Dec 2011 08:35:05 +0000 (10:35 +0200)]
proc2csv: document newly collected /proc/pid/wchan

5 years agoendurance_plot: also catch 'anon_inode:inotify' in process_openfds()
Tommi Rantala [Fri, 9 Dec 2011 08:33:52 +0000 (10:33 +0200)]
endurance_plot: also catch 'anon_inode:inotify' in process_openfds()

5 years agoendurance_plot: add '-j' flag for parallel gnuplotting and thumbnail generation
Tommi Rantala [Thu, 8 Dec 2011 14:03:04 +0000 (16:03 +0200)]
endurance_plot: add '-j' flag for parallel gnuplotting and thumbnail generation

The gnuplotting and thumbnail generation are easily executed in
parallel, and this may result to nice wall clock improvements to the
time it takes to generate the endurance graphs.

We use the Parallel::ForkManager Perl module for the parallel execution.

Some results with quad-core x86 machine:

  $ time endurance_plot 10? >/dev/null 2>/dev/null
  real    0m15.067s
  user    0m16.177s
  sys     0m1.072s

  $ time endurance_plot 10? >/dev/null 2>/dev/null -j 2
  real    0m10.115s
  user    0m17.241s
  sys     0m1.408s

  $ time endurance_plot 10? >/dev/null 2>/dev/null -j 20
  real    0m6.610s
  user    0m24.294s
  sys     0m1.748s

5 years agoendurance_plot: remove progress printing from plot generation functions
Tommi Rantala [Thu, 8 Dec 2011 13:51:50 +0000 (15:51 +0200)]
endurance_plot: remove progress printing from plot generation functions

The progress prints in the plot generation functions were incomplete and
now redundant, as the gnuplot commands are now printed instead.

5 years agoendurance_plot: separate gnuplot command generation and gnuplot execution
Tommi Rantala [Thu, 8 Dec 2011 13:10:01 +0000 (15:10 +0200)]
endurance_plot: separate gnuplot command generation and gnuplot execution

First create the gnuplot command files, and when done, execute gnuplot
in a separate loop. With the current settings the command generation is
very fast, and most time goes to the gnuplot execution.

5 years agoendurance_plot: more examples in usage output
Tommi Rantala [Thu, 8 Dec 2011 12:46:20 +0000 (14:46 +0200)]
endurance_plot: more examples in usage output

5 years agoendurance_plot: change parsing order for improved performance
Tommi Rantala [Thu, 8 Dec 2011 11:05:44 +0000 (13:05 +0200)]
endurance_plot: change parsing order for improved performance

Check for the /proc/pid/smaps key-value pairs first, as those are the
most common lines from the smaps capture files. Improves performance
slightly:

Before:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m23.626s
  user    1m27.721s
  sys     0m3.916s

After:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m21.154s
  user    1m25.389s
  sys     0m4.072s

5 years agoendurance_plot: use substr() instead of split() in process_smaps()
Tommi Rantala [Thu, 8 Dec 2011 11:00:14 +0000 (13:00 +0200)]
endurance_plot: use substr() instead of split() in process_smaps()

Improve performance slightly by avoiding the more expensive split().

Before:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m29.741s
  user    1m33.842s
  sys     0m4.284s

After:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m23.626s
  user    1m27.721s
  sys     0m3.916s

5 years agoendurance_plot: remove redundant chop for improved performance
Tommi Rantala [Thu, 8 Dec 2011 10:45:59 +0000 (12:45 +0200)]
endurance_plot: remove redundant chop for improved performance

We do not need to chop the input line here. Also improves the
performance slightly:

Before:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m33.021s
  user    1m35.938s
  sys     0m4.548s

After:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m29.741s
  user    1m33.842s
  sys     0m4.284s

5 years agoendurance_plot: remove redundant `show_kernelstack' and `show_shmem'
Tommi Rantala [Thu, 8 Dec 2011 10:37:01 +0000 (12:37 +0200)]
endurance_plot: remove redundant `show_kernelstack' and `show_shmem'

5 years agoendurance_plot: rewrite the system memory graph creation
Tommi Rantala [Thu, 8 Dec 2011 10:29:33 +0000 (12:29 +0200)]
endurance_plot: rewrite the system memory graph creation

5 years agoendurance_plot: also parse Active and Inactive anon memory in parse_memtotal_block()
Tommi Rantala [Thu, 8 Dec 2011 10:21:37 +0000 (12:21 +0200)]
endurance_plot: also parse Active and Inactive anon memory in parse_memtotal_block()

5 years agoendurance_plot: battery graph based on `sysfs_power_supply'
Tommi Rantala [Thu, 8 Dec 2011 09:50:48 +0000 (11:50 +0200)]
endurance_plot: battery graph based on `sysfs_power_supply'

5 years agoendurance_plot: use one_plot_set() in generate_plot_ramzswap()
Tommi Rantala [Thu, 8 Dec 2011 09:16:26 +0000 (11:16 +0200)]
endurance_plot: use one_plot_set() in generate_plot_ramzswap()

5 years agoendurance_plot: use one_plot_set() in generate_plot_battery()
Tommi Rantala [Thu, 8 Dec 2011 09:15:47 +0000 (11:15 +0200)]
endurance_plot: use one_plot_set() in generate_plot_battery()

5 years agoendurance_plot: use one_plot_set() in generate_plot_interrupts()
Tommi Rantala [Thu, 8 Dec 2011 09:15:09 +0000 (11:15 +0200)]
endurance_plot: use one_plot_set() in generate_plot_interrupts()

5 years agoendurance_plot: use one_plot_set() in generate_plot_shmem()
Tommi Rantala [Thu, 8 Dec 2011 09:14:05 +0000 (11:14 +0200)]
endurance_plot: use one_plot_set() in generate_plot_shmem()

5 years agoendurance_plot: use one_plot_set() in generate_plot_processes_global()
Tommi Rantala [Thu, 8 Dec 2011 09:13:09 +0000 (11:13 +0200)]
endurance_plot: use one_plot_set() in generate_plot_processes_global()

5 years agoendurance_plot: use one_plot_set() in generate_plot_loadavg()
Tommi Rantala [Thu, 8 Dec 2011 09:12:29 +0000 (11:12 +0200)]
endurance_plot: use one_plot_set() in generate_plot_loadavg()

5 years agoendurance_plot: use one_plot_set() in generate_plot_ctx()
Tommi Rantala [Thu, 8 Dec 2011 09:11:04 +0000 (11:11 +0200)]
endurance_plot: use one_plot_set() in generate_plot_ctx()

5 years agoendurance_plot: rewrite generate_plot_pagetypeinfo()
Tommi Rantala [Thu, 8 Dec 2011 09:03:31 +0000 (11:03 +0200)]
endurance_plot: rewrite generate_plot_pagetypeinfo()

5 years agoendurance_plot: catch 'isolate' in process_pagetypeinfo()
Tommi Rantala [Thu, 8 Dec 2011 08:59:38 +0000 (10:59 +0200)]
endurance_plot: catch 'isolate' in process_pagetypeinfo()

5 years agoendurance_plot: check required arguments in one_plot_set()
Tommi Rantala [Wed, 7 Dec 2011 09:47:25 +0000 (11:47 +0200)]
endurance_plot: check required arguments in one_plot_set()

Some of the arguments to one_plot_set() are always expected to be found.

5 years agoendurance_plot: add gnuplot 'axes' parameter support in one_plot_set()
Tommi Rantala [Wed, 7 Dec 2011 09:14:33 +0000 (11:14 +0200)]
endurance_plot: add gnuplot 'axes' parameter support in one_plot_set()

5 years agosave-incremental-endurance-stats: collect /sys/class/power_supply/
Tommi Rantala [Wed, 7 Dec 2011 09:11:47 +0000 (11:11 +0200)]
save-incremental-endurance-stats: collect /sys/class/power_supply/

Start collecting /sys/class/power_supply/ for battery data.

5 years agoendurance_plot: fix /proc/pid/stat parsing error with ',' in comm field
Tommi Rantala [Fri, 2 Dec 2011 14:26:33 +0000 (16:26 +0200)]
endurance_plot: fix /proc/pid/stat parsing error with ',' in comm field

The usage.csv /proc/pid/stat parsing code would fail to parse properly
those entries that have ',' in the comm (ie. name) field.

5 years agoendurance_plot: new process graph: thread changes
Tommi Rantala [Fri, 2 Dec 2011 10:31:04 +0000 (12:31 +0200)]
endurance_plot: new process graph: thread changes

We have the histogram plot that shows the total count of threads in
processes, but tracking changes from this graph is difficult. Add
another graph that shows only processes that have changes in their
thread count.

5 years agoendurance_plot: improve readability by renaming WCHAN to WAIT CHANNEL
Tommi Rantala [Fri, 2 Dec 2011 10:30:18 +0000 (12:30 +0200)]
endurance_plot: improve readability by renaming WCHAN to WAIT CHANNEL

5 years agoendurance_plot: add explanation to '0' wchan
Tommi Rantala [Fri, 2 Dec 2011 10:03:23 +0000 (12:03 +0200)]
endurance_plot: add explanation to '0' wchan

If /proc/pid/wchan reports '0', the process is most likely not sleeping
in kernel, but rather executing code in user space.

5 years agoendurance_plot: new system graphs: wchan counts and changes
Tommi Rantala [Fri, 2 Dec 2011 07:24:44 +0000 (09:24 +0200)]
endurance_plot: new system graphs: wchan counts and changes

Create some graphs based on the wchan information we are collecting.

5 years agoendurance_plot: process xmeminfo later for process names
Tommi Rantala [Thu, 1 Dec 2011 14:57:29 +0000 (16:57 +0200)]
endurance_plot: process xmeminfo later for process names

The process names are taken from the smaps data, so process it prior to
the xmeminfo data.

5 years agoendurance_plot: improve X resource graph titles
Tommi Rantala [Thu, 1 Dec 2011 14:44:01 +0000 (16:44 +0200)]
endurance_plot: improve X resource graph titles

Add process name if it does not match the xmeminfo identifier:

           "sysuid-12345" => "sysuid-12345"
 "Quick-Launch-Bar-12345" => "meegotouchhome-Quick-Launch-Bar-12345"

5 years agoendurance_plot: allow longer X identifier names
Tommi Rantala [Thu, 1 Dec 2011 14:47:44 +0000 (16:47 +0200)]
endurance_plot: allow longer X identifier names

5 years agoendurance_plot: fix empty string check in one_plot_set()
Tommi Rantala [Thu, 1 Dec 2011 14:42:39 +0000 (16:42 +0200)]
endurance_plot: fix empty string check in one_plot_set()

Check for empty strings one_plot_set(), so that "0" passes as valid
title.

5 years agoendurance_plot: new graph: ext4 filesystem writes
Tommi Rantala [Thu, 1 Dec 2011 09:07:51 +0000 (11:07 +0200)]
endurance_plot: new graph: ext4 filesystem writes

5 years agoendurance_plot: new disk read/write graphs that show megabytes per round
Tommi Rantala [Thu, 1 Dec 2011 09:01:44 +0000 (11:01 +0200)]
endurance_plot: new disk read/write graphs that show megabytes per round

Add new disk read and write graphs that show megabytes per round in
addition to the existing graphs that show megabytes per second.

5 years agoendurance_plot: set block device sector size to 512
Tommi Rantala [Thu, 1 Dec 2011 07:32:28 +0000 (09:32 +0200)]
endurance_plot: set block device sector size to 512

Set the default block device sector size to the more common 512 bytes.
In the future we could start collecting the block size reported by the
kernel.

5 years agosave-incremental-endurance-stats: workaround GNU coreutils 6.x cp bug
Tommi Rantala [Thu, 1 Dec 2011 14:38:51 +0000 (16:38 +0200)]
save-incremental-endurance-stats: workaround GNU coreutils 6.x cp bug

Copy files from /proc with `cat' instead of `cp' to workaround GNU
coreutils 6.x cp bug, that results to empty files. For example the
coreutils used in MeeGo is unfortunately affected by this bug.

5 years agosave-incremental-endurance-stats: do not hide /proc copy errors
Tommi Rantala [Mon, 28 Nov 2011 10:39:51 +0000 (12:39 +0200)]
save-incremental-endurance-stats: do not hide /proc copy errors

Copying these files from /proc should not usually cause any errors. Do
not try to hide potential errors messages from the user.

5 years agosave-incremental-endurance-stats: do not hide `bmestat' errors
Tommi Rantala [Mon, 28 Nov 2011 10:37:43 +0000 (12:37 +0200)]
save-incremental-endurance-stats: do not hide `bmestat' errors

Do not try to hide potential `bmestat' error messages from user.

5 years agosave-incremental-endurance-stats: do not hide 'dmesg' errors
Tommi Rantala [Mon, 28 Nov 2011 10:33:57 +0000 (12:33 +0200)]
save-incremental-endurance-stats: do not hide 'dmesg' errors

The `dmesg' collection may fail for example due to missing permission.
Do not try to mask this error.

5 years agosave-incremental-endurance-stats: collect copyable /proc files early
Tommi Rantala [Mon, 28 Nov 2011 10:23:38 +0000 (12:23 +0200)]
save-incremental-endurance-stats: collect copyable /proc files early

Collect the files from /proc that we get with `cp' earlier, in the hopes
that the file copies may proceed even if the system is extremely loaded.

5 years agosave-incremental-endurance-stats: collect `df' output later
Tommi Rantala [Mon, 28 Nov 2011 10:13:32 +0000 (12:13 +0200)]
save-incremental-endurance-stats: collect `df' output later

The save-incremental-endurance-stats execution has been seen to block at
the `df' execution when the system has been extremely loaded. In this
case we manage to collect only a partial snapshot. Move the `df'
invocation to later position in the script, so that we may be able to
collect as much information as possible before invoking it.

5 years agoRevert "Collect /proc/*/wchan"
Tommi Rantala [Fri, 2 Dec 2011 07:36:47 +0000 (09:36 +0200)]
Revert "Collect /proc/*/wchan"

This reverts commit 42de3abc62eab1e68aff73b7097bbfe13d2057e7. The
/proc/pid/wchan files are now collected in proc2csv.

5 years agoproc2csv: echo newline with fputc() instead of fputs()
Tommi Rantala [Thu, 1 Dec 2011 14:36:35 +0000 (16:36 +0200)]
proc2csv: echo newline with fputc() instead of fputs()

5 years agoproc2csv: collect /proc/pid/wchan
Tommi Rantala [Mon, 28 Nov 2011 10:01:31 +0000 (12:01 +0200)]
proc2csv: collect /proc/pid/wchan

Collect /proc/pid/wchan. This adds a new section to the end of the
proc2csv results:

PID,wchan:
1,poll_schedule_timeout
10,worker_thread
1025,poll_schedule_timeout
...

While the wchan information is already collected as part of
/proc/pid/stat, the ASCII results from /proc/pid/wchan are much easier
to process than the numerical address format.

5 years agoRevert "save-incremental-endurance-stats: Collect `xlsclients' output"
Tommi Rantala [Mon, 28 Nov 2011 09:21:27 +0000 (11:21 +0200)]
Revert "save-incremental-endurance-stats: Collect `xlsclients' output"

This reverts commit 5bf25e283de1138e4a04c8c12ad71440e2351763.

The xlsclients results are redundant; we should be able to reconstruct
the same information from the data we are already collecting.

5 years agoendurance_plot: new process graph: 'Process /dev/pvrsrvkm mapping count'
Tommi Rantala [Mon, 28 Nov 2011 09:19:52 +0000 (11:19 +0200)]
endurance_plot: new process graph: 'Process /dev/pvrsrvkm mapping count'

This graph shows changes in /dev/pvrsrvkm memory map count.

5 years agoendurance_plot: rewrite 'pvrsrvkm' graph legends
Tommi Rantala [Mon, 28 Nov 2011 08:47:51 +0000 (10:47 +0200)]
endurance_plot: rewrite 'pvrsrvkm' graph legends

5 years agoendurance_plot: ignore initial round in round_duration_stats()
Tommi Rantala [Mon, 28 Nov 2011 08:45:27 +0000 (10:45 +0200)]
endurance_plot: ignore initial round in round_duration_stats()

The `lapsed_time' contains zero for initial round, so we will need to
filter it out of the statistics.

5 years agoendurance_plot: restore round duration calculation for initial round
Tommi Rantala [Mon, 28 Nov 2011 08:43:25 +0000 (10:43 +0200)]
endurance_plot: restore round duration calculation for initial round

Commit 2c70917087277a84389dc0d8ff7eeeec5b1e1048 ("endurance_plot: report
more duration statistics on console") changed the `lapsed_time' for
initial round from zero to the uptime for the initial round. Restore the
old behaviour.

5 years agoRaise SIGINT to propagate proper return value to caller
Tommi Rantala [Fri, 25 Nov 2011 14:35:03 +0000 (16:35 +0200)]
Raise SIGINT to propagate proper return value to caller

Make sure that e.g. shell will recognize that we were interrupted by a
signal.

5 years agoAlso check for '-r -w' combination in sp-noncached parameters
Tommi Rantala [Fri, 25 Nov 2011 14:19:05 +0000 (16:19 +0200)]
Also check for '-r -w' combination in sp-noncached parameters

Complain loudly if user specified both '-r' and '-w', as it is not
supported.

5 years agoCall it 'sp-noncached' in all strings
Tommi Rantala [Fri, 25 Nov 2011 14:04:28 +0000 (16:04 +0200)]
Call it 'sp-noncached' in all strings

5 years agoAdd missing newline in sp-noncached usage output
Tommi Rantala [Fri, 25 Nov 2011 14:00:36 +0000 (16:00 +0200)]
Add missing newline in sp-noncached usage output

5 years agofix endurance report failure when there were no logged errors
Eero Tamminen [Thu, 1 Dec 2011 17:39:23 +0000 (19:39 +0200)]
fix endurance report failure when there were no logged errors
(e.g. because there was only dmesg and rules currently parse syslog)

5 years agoremove changelogs from run-time parsed files:
Eero Tamminen [Thu, 1 Dec 2011 17:14:57 +0000 (19:14 +0200)]
remove changelogs from run-time parsed files:
- We've moved to git which tracks all changes.
- In some cases those logs weren't even up to date

5 years agoupdate rpm deps, add endurance.pdf
Eero Tamminen [Mon, 28 Nov 2011 13:51:23 +0000 (15:51 +0200)]
update rpm deps, add endurance.pdf

5 years agoinstall endurance.pdf to -postproc, fix recompress manual page install
Eero Tamminen [Mon, 28 Nov 2011 13:47:36 +0000 (15:47 +0200)]
install endurance.pdf to -postproc, fix recompress manual page install

5 years agoendurance_plot: remove samples count check in FD graphs
Tommi Rantala [Fri, 25 Nov 2011 13:31:15 +0000 (15:31 +0200)]
endurance_plot: remove samples count check in FD graphs

We already check for changes in the FD graphs, so the sample count check
is somewhat redundant.

5 years agoendurance_plot: remove unused html_avg_interval()
Tommi Rantala [Fri, 25 Nov 2011 12:31:00 +0000 (14:31 +0200)]
endurance_plot: remove unused html_avg_interval()

5 years agoendurance_plot: switch legend title and symbol order
Tommi Rantala [Fri, 25 Nov 2011 12:24:19 +0000 (14:24 +0200)]
endurance_plot: switch legend title and symbol order

Improve readability of the legends by switching the order of the legend
text and symbol. This helps greatly for example in the filesystem and
cgroup graphs.

Before:
                        / --x--
                 /system/ --x--
    /system/applications/ --x--
         /system/desktop/ --x--

After:
    --x-- /
    --x-- /system/
    --x-- /system/applications/
    --x-- /system/desktop/

5 years agoendurance_plot: report more duration statistics on console
Tommi Rantala [Fri, 25 Nov 2011 12:14:24 +0000 (14:14 +0200)]
endurance_plot: report more duration statistics on console

Cleanup the uptime parsing, and report more statistics regarding the
snapshot interval statistics on console.

5 years agoendurance_plot: also report longest and shortest snapshot intervals
Tommi Rantala [Fri, 25 Nov 2011 11:49:23 +0000 (13:49 +0200)]
endurance_plot: also report longest and shortest snapshot intervals

5 years agoendurance_plot: generalize html_total_duration() and rename to duration_to_str()
Tommi Rantala [Fri, 25 Nov 2011 11:46:04 +0000 (13:46 +0200)]
endurance_plot: generalize html_total_duration() and rename to duration_to_str()

5 years agoendurance_plot: change cgroup name mangling for better sorting order
Tommi Rantala [Fri, 25 Nov 2011 09:49:04 +0000 (11:49 +0200)]
endurance_plot: change cgroup name mangling for better sorting order

Mangle the root '/' cgroup to '_' instead of 'root' so that the list of
cgroups sorts better.

5 years agoendurance_plot: default to gnuplot 'png' terminal when running in scratchbox
Tommi Rantala [Wed, 23 Nov 2011 14:30:42 +0000 (16:30 +0200)]
endurance_plot: default to gnuplot 'png' terminal when running in scratchbox

The plot generation fails in Harmattan ARMv7 scratchbox target due to
segfault in the 'pngcairo' initialization. The segfault is due to
/proc/pid/auxv emulation limitation. Automatically switch to 'png'
terminal when running in scratchbox to avoid the segfault.

5 years agoendurance_plot: add `--gnuplot-terminal' command line switch
Tommi Rantala [Wed, 23 Nov 2011 14:29:57 +0000 (16:29 +0200)]
endurance_plot: add `--gnuplot-terminal' command line switch

Allow the gnuplot terminal to be set from command line.

5 years agoendurance_plot: allow for old style 'png' gnuplot terminal type
Tommi Rantala [Wed, 23 Nov 2011 14:25:54 +0000 (16:25 +0200)]
endurance_plot: allow for old style 'png' gnuplot terminal type

In some cases it may be desireable to use the old 'png' gnuplot terminal
type. Add support for both png and pngcairo terminals.

5 years agoendurance_plot: use custom linecolors in the CPU graph with one_plot_set() lc parameter
Tommi Rantala [Wed, 23 Nov 2011 10:26:13 +0000 (12:26 +0200)]
endurance_plot: use custom linecolors in the CPU graph with one_plot_set() lc parameter

5 years agoendurance_plot: provide larger default palette based on X11 color set
Tommi Rantala [Wed, 23 Nov 2011 10:19:08 +0000 (12:19 +0200)]
endurance_plot: provide larger default palette based on X11 color set

The default pngcairo palette seems to be small, so the same colors are
easily reused in the graphs. Provide out own colors (based on the X11
color set) to to avoid the issue, and allow the plots to define their
own colors as well.

5 years agoendurance_plot: use named arguments in one_plot_set()
Tommi Rantala [Wed, 23 Nov 2011 08:53:01 +0000 (10:53 +0200)]
endurance_plot: use named arguments in one_plot_set()

Improve readability and allow for easier extensibility of the
one_plot_set() call by passing the arguments with names.

5 years agoendurance_plot: fix the non-sleep process count graph occasionally displaying incorrectly
Tommi Rantala [Wed, 23 Nov 2011 08:35:37 +0000 (10:35 +0200)]
endurance_plot: fix the non-sleep process count graph occasionally displaying incorrectly

Gnuplot generates histogram plots with very large y range values when
some of the input is missing data for some rounds. To fix this, always
write zero entries for all rounds.

5 years agoendurance_plot: use the one_plot_set() call in generate_plot_pss_swap()
Tommi Rantala [Tue, 22 Nov 2011 10:53:12 +0000 (12:53 +0200)]
endurance_plot: use the one_plot_set() call in generate_plot_pss_swap()

5 years agoendurance_plot: provide legend titles in various graphs
Tommi Rantala [Tue, 22 Nov 2011 10:51:31 +0000 (12:51 +0200)]
endurance_plot: provide legend titles in various graphs

5 years agoendurance_plot: provide legend titles in the filesystem graph
Tommi Rantala [Tue, 22 Nov 2011 10:49:32 +0000 (12:49 +0200)]
endurance_plot: provide legend titles in the filesystem graph

5 years agoendurance_plot: provide legend titles in the CPU frequency graph
Tommi Rantala [Tue, 22 Nov 2011 10:47:58 +0000 (12:47 +0200)]
endurance_plot: provide legend titles in the CPU frequency graph

5 years agoendurance_plot: provide legend titles in the networking graphs
Tommi Rantala [Tue, 22 Nov 2011 10:47:33 +0000 (12:47 +0200)]
endurance_plot: provide legend titles in the networking graphs

5 years agoendurance_plot: provide legend titles in the non-sleep process state graph
Tommi Rantala [Tue, 22 Nov 2011 10:46:47 +0000 (12:46 +0200)]
endurance_plot: provide legend titles in the non-sleep process state graph

5 years agoendurance_plot: provide legend titles in the battery graph
Tommi Rantala [Tue, 22 Nov 2011 10:45:47 +0000 (12:45 +0200)]
endurance_plot: provide legend titles in the battery graph

5 years agoendurance_plot: provide legend titles in the cpu utilization graph
Tommi Rantala [Tue, 22 Nov 2011 10:44:39 +0000 (12:44 +0200)]
endurance_plot: provide legend titles in the cpu utilization graph

5 years agoendurance_plot: use cgroup names in cgroup graph legends
Tommi Rantala [Tue, 22 Nov 2011 10:43:15 +0000 (12:43 +0200)]
endurance_plot: use cgroup names in cgroup graph legends

5 years agoendurance_plot: add support for adding prettier legend titles
Tommi Rantala [Tue, 22 Nov 2011 10:37:05 +0000 (12:37 +0200)]
endurance_plot: add support for adding prettier legend titles

Allow for prettier legend titles. For example the title
'e/pswp-name-pid' may be replaced by 'name-pid'.

5 years agoUpdate RPM packaging
Andris Zeila [Tue, 22 Nov 2011 09:32:45 +0000 (11:32 +0200)]
Update RPM packaging

5 years agoFix the cache dropping in sp_noncached utility
Andris Zeila [Tue, 22 Nov 2011 09:11:52 +0000 (11:11 +0200)]
Fix the cache dropping in sp_noncached utility

6 years agoharmattan-syslog: add a few missing human readable descriptions
Tommi Rantala [Fri, 18 Nov 2011 13:03:01 +0000 (15:03 +0200)]
harmattan-syslog: add a few missing human readable descriptions

6 years agoRename the syslog parser configuration to allow for easier extension
Tommi Rantala [Fri, 18 Nov 2011 09:11:25 +0000 (11:11 +0200)]
Rename the syslog parser configuration to allow for easier extension

We will want to parse the `dmesg' with different set of regexps in the
future, so force users of the LogParserConfig to always specify the
configuration file for easier extension.

6 years agoendurance_plot: new system graph that shows count of processes in non-sleep state
Tommi Rantala [Fri, 18 Nov 2011 08:45:50 +0000 (10:45 +0200)]
endurance_plot: new system graph that shows count of processes in non-sleep state

Show count of processes in interesting states, for example to catch
long-living zombies.