]> granicus.if.org Git - sysstat/log
sysstat
8 years agosysstat-11.3.4 v11.3.4
Sebastien GODARD [Sat, 14 May 2016 08:39:21 +0000 (10:39 +0200)]
sysstat-11.3.4

sysstat version 11.3.4 final packaging.
lsm and spec files updated.
Changelog added.

NOTE: A stable version (11.2.4) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.3.4
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoNLS: Sync with translation project
Sebastien GODARD [Sat, 14 May 2016 08:30:14 +0000 (10:30 +0200)]
NLS: Sync with translation project

Croatian translation updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoAdd a reference to sysstat(5) in sadf and sar manual pages
Sebastien GODARD [Fri, 13 May 2016 13:37:14 +0000 (15:37 +0200)]
Add a reference to sysstat(5) in sadf and sar manual pages

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSome more cosmetic changes
Sebastien GODARD [Fri, 13 May 2016 13:26:16 +0000 (15:26 +0200)]
Some more cosmetic changes

Update code to get one indentation less.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoCosmetic changes
Sebastien GODARD [Fri, 13 May 2016 13:25:10 +0000 (15:25 +0200)]
Cosmetic changes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Differentiate graphs titles for temperature sensors
Sebastien GODARD [Fri, 13 May 2016 12:56:36 +0000 (14:56 +0200)]
SVG: Differentiate graphs titles for temperature sensors

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update sadf manual page
Sebastien GODARD [Fri, 13 May 2016 12:46:33 +0000 (14:46 +0200)]
SVG: Update sadf manual page

Update sadf manual page to explain option -O.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update sadf usage message
Sebastien GODARD [Fri, 13 May 2016 12:45:02 +0000 (14:45 +0200)]
SVG: Update sadf usage message

Include option -O in sadf usage message.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix graph's min and max values test
Sebastien GODARD [Sat, 7 May 2016 13:37:24 +0000 (15:37 +0200)]
SVG: Fix graph's min and max values test

sadf should check for a min and a max value for the first graph of each
view.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Really skip empty views when option "skipempty" is used
Sebastien GODARD [Sat, 7 May 2016 13:17:53 +0000 (15:17 +0200)]
SVG: Really skip empty views when option "skipempty" is used

Even when option "skipempty" was used with sadf, some views were still
displayed because some of their graphs had very low (but not equal to
zero) values.
As the resulting views appeared empty anyway, make sadf skip them
anyway.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add "autoscale" option
Sebastien GODARD [Fri, 6 May 2016 13:52:29 +0000 (15:52 +0200)]
SVG: Add "autoscale" option

This new option (to be used with sadf's switch -O) tells sadf to draw
all the graphs of a given view as large as possible based on current
view's scale. To do this, a factor (10, 100, 1000...) is used to
enlarge the graph drawing.
This option may be intesting when several graphs are drawn on the same
view, some with only very small values, and others with high ones,
the latter making the former difficult to see.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add "skipempty" option
Sebastien GODARD [Sun, 1 May 2016 08:54:51 +0000 (10:54 +0200)]
SVG: Add "skipempty" option

Add a new switch (-O) to sadf to enable the user to pass additional
options to control SVG output.
This first option is "skipempty" which tells sadf to not display views
where all graphs have only zero values.

Example: sadf -g -O skipempty -- -A > out.svg

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for UDPv4 network statistics
Sebastien GODARD [Sat, 30 Apr 2016 14:43:13 +0000 (16:43 +0200)]
SVG: Add SVG output for UDPv4 network statistics

These graphs correspond to the output of "sar -n UDP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for TCPv4 network statistics
Sebastien GODARD [Sat, 30 Apr 2016 14:27:04 +0000 (16:27 +0200)]
SVG: Add SVG output for TCPv4 network statistics

These graphs correspond to the output of "sar -n TCP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for IPv4 network statistics
Sebastien GODARD [Sat, 30 Apr 2016 14:16:14 +0000 (16:16 +0200)]
SVG: Add SVG output for IPv4 network statistics

These graphs correspond to the output of "sar -n IP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for IPv6 netwok socket statistics
Sebastien GODARD [Sat, 30 Apr 2016 13:48:20 +0000 (15:48 +0200)]
SVG: Add SVG output for IPv6 netwok socket statistics

This graph corresponds to the output of "sar -n SOCK6".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for network socket statistics
Sebastien GODARD [Sat, 30 Apr 2016 13:36:21 +0000 (15:36 +0200)]
SVG: Add SVG output for network socket statistics

These graphs correspond to the outpu of "sar -n SOCK".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoCosmetic fixes
Sebastien GODARD [Sat, 30 Apr 2016 13:15:42 +0000 (15:15 +0200)]
Cosmetic fixes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for hugepages utilization statistics
Sebastien GODARD [Sat, 16 Apr 2016 13:44:06 +0000 (15:44 +0200)]
SVG: Add SVG output for hugepages utilization statistics

These graphs correspond to the output of "sar -H".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for kernel tables statistics
Sebastien GODARD [Sat, 16 Apr 2016 13:02:28 +0000 (15:02 +0200)]
SVG: Add SVG output for kernel tables statistics

These graphs correspond to the output of "sar -v".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for I/O and transfer rate statistics
Sebastien GODARD [Sat, 16 Apr 2016 06:43:52 +0000 (08:43 +0200)]
SVG: Add SVG output for I/O and transfer rate statistics

These graphs correspond to the output of "sar -b".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for temperature sensors statistics
Sebastien GODARD [Fri, 15 Apr 2016 12:50:48 +0000 (14:50 +0200)]
SVG: Add SVG output for temperature sensors statistics

These graphs correspond to the output of "sar -m TEMP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for fan speed statistics
Sebastien GODARD [Fri, 15 Apr 2016 12:03:26 +0000 (14:03 +0200)]
SVG: Add SVG output for fan speed statistics

This graph corresponds to the output of "sar -m FAN".
The graph type is "rectangular" (just like that for CPU frequency
statistics).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoStarting sysstat 11.3.4
Sebastien GODARD [Sat, 9 Apr 2016 12:47:42 +0000 (14:47 +0200)]
Starting sysstat 11.3.4

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agosysstat-11.3.3 v11.3.3
Sebastien GODARD [Sat, 9 Apr 2016 12:42:39 +0000 (14:42 +0200)]
sysstat-11.3.3

sysstat version 11.3.3 final packaging.
lsm and spec files updated.
Changelog added.

NOTE: A stable version (11.2.3) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.3.3
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoNLS: Sync with Translation Project
Sebastien GODARD [Sat, 9 Apr 2016 12:25:32 +0000 (14:25 +0200)]
NLS: Sync with Translation Project

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix how min and max values are calculated for some memory metrics
Sebastien GODARD [Sat, 9 Apr 2016 08:15:59 +0000 (10:15 +0200)]
SVG: Fix how min and max values are calculated for some memory metrics

Be more accurate when calculating the min and max values for memused,
swpused, %memused, %commit, %swpused and %swpcad.
Previously these values could have been wrong if the total amount of
memory or swap had changed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add graphs for %memused, %commit, %swpused and %swpcad metrics
Sebastien GODARD [Thu, 7 Apr 2016 14:32:13 +0000 (16:32 +0200)]
SVG: Add graphs for %memused, %commit, %swpused and %swpcad metrics

Add a bar graph for each of the remaining memory metrics that didn't
have one.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for queue length and load average statistics
Sebastien GODARD [Sun, 3 Apr 2016 08:39:51 +0000 (10:39 +0200)]
SVG: Add SVG output for queue length and load average statistics

Graph corresponding to the output of sar -q.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Convert memory metrics to MB
Sebastien GODARD [Fri, 1 Apr 2016 15:40:41 +0000 (17:40 +0200)]
SVG: Convert memory metrics to MB

Using values expressed in kB to draw graphs for memory metrics made sadf
reach some (Firefox?) limits: Values bigger than 10,000,000 made the
graph to disappear on screen unless we clicked on the view.
Using smaller values (ie. values expressed in MB) fixes the problem. And
they are easier to read for a human BTW :-)

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Set a min value of 1s for X graduations
Sebastien GODARD [Fri, 1 Apr 2016 14:52:42 +0000 (16:52 +0200)]
SVG: Set a min value of 1s for X graduations

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for memory and swap statistics
Sebastien GODARD [Fri, 1 Apr 2016 14:19:07 +0000 (16:19 +0200)]
SVG: Add SVG output for memory and swap statistics

These graphs correspond to the output of sar -r [ALL] and sar -S.
%memused, %commit, %swapused and %swapcad will be added later.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update core functions to handle integer metrics
Sebastien GODARD [Fri, 1 Apr 2016 12:45:03 +0000 (14:45 +0200)]
SVG: Update core functions to handle integer metrics

Update save_extrema() functions for metrics which are not calculated
over a time interval.
Add lniappend() function to create graphs for metrics with integer
values.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Handle integer values in graph caption
Sebastien GODARD [Fri, 1 Apr 2016 12:33:22 +0000 (14:33 +0200)]
SVG: Handle integer values in graph caption

Some metrics are integer values: Their min/max values should then be
displayed as integer values (xxxx and not xxxx.00).
Such a metric will be identified by a leading ~ character in its name.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Remove unused argument from lnappend() function
Sebastien GODARD [Fri, 1 Apr 2016 12:26:59 +0000 (14:26 +0200)]
SVG: Remove unused argument from lnappend() function

Remove a relic of the past...

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Enlarge graph view
Sebastien GODARD [Fri, 1 Apr 2016 12:17:49 +0000 (14:17 +0200)]
SVG: Enlarge graph view

Make graph view a bit wider to deal with large numbers that sometimes
are used on Y axis.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for CPU frequency statistics
Sebastien GODARD [Fri, 25 Mar 2016 13:33:59 +0000 (14:33 +0100)]
SVG: Add SVG output for CPU frequency statistics

This graph corresponds to the output of "sar -m CPU".
This is a new kind of graph ("rectangular").

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Set a min value on Y axis
Sebastien GODARD [Fri, 25 Mar 2016 12:05:47 +0000 (13:05 +0100)]
SVG: Set a min value on Y axis

Set a min value on Y axis so that graduations remain meaningful.
For instance, if the max value for a graph was 0.01 then the graduations
on the Y axis were 0.01, 0.01 and 0.01 (for 3 horizontal lines). In this
case, this patch will set the max value to 0.03 to get some meaningful
graduations values: 0.01, 0.02 and 0.03.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoMerge branch 'portante-master'
Sebastien GODARD [Fri, 25 Mar 2016 09:39:02 +0000 (10:39 +0100)]
Merge branch 'portante-master'

The cprintf_u64() function always reads passed parameters as unsigned
long long, even if the actual parameter is unsigned long or unsigned
int.
This does not work correctly on 32-bit systems, where sizeof(unsigned
long long) != sizeof(unsigned int). For example sar -q displays:

/tmp> sar -q 1 4
Linux 4.4.0-1-686-pae (vox)     22.03.2016      _i686_  (1 CPU)

23:50:00      runq-sz  plist-sz   ldavg-1   ldavg-5  ldavg-15   blocked
23:50:01    1408749273091 4294967297      0,73      0,67      0,60
1408749273088
23:50:02    1408749273090        73      0,75      0,67      0,60
1408749273088
23:50:03    1408749273090        75      0,75      0,67      0,60
1408749273088
23:50:04    1408749273090        75      0,75      0,67      0,60
1408749273088

Patch fixes the problem.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoQuick fix for cprintf_u64 non-uintv64_t
Peter Portante [Wed, 23 Mar 2016 01:42:14 +0000 (21:42 -0400)]
Quick fix for cprintf_u64 non-uintv64_t

8 years agoSVG: Make SVG code locale independent
Sebastien GODARD [Mon, 21 Mar 2016 16:50:27 +0000 (17:50 +0100)]
SVG: Make SVG code locale independent

Graphs could not be displayed if corresponding SVG code had been
generated on machines with specific locales.

Eg: If you set your locale to, say, fr_FR then here is a sample SVG
code you could get:

...
<path id="g9p0" d=" M311,2663,54 L613,1446,20 L913,423,75 (...)
...

To avoid the confusion, this patch sets the LC_NUMERIC to "C" so that a
decimal point is used instead of a comma:

...
<path id="g9p0" d=" M311,2663.54 L613,1446.20 L913,423.75 (...)
...

Resulting SVG output can now be displayed whatever locale is used.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix "SVG graphs report 'No data' for dynamically added CPUs"
Sebastien GODARD [Sat, 19 Mar 2016 15:16:06 +0000 (16:16 +0100)]
SVG: Fix "SVG graphs report 'No data' for dynamically added CPUs"

Fix #107.
Offline CPU were not properly taken into account when creating SVG
graphs for CPU statistics.
This was because min and max values were not updated for the metrics
(%user, %nice, etc.) This should be done even for offline (and also
tickless) CPUs.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for CPU statistics
Sebastien GODARD [Fri, 18 Mar 2016 13:41:07 +0000 (14:41 +0100)]
SVG: Add SVG output for CPU statistics

Each CPU (including CPU "all") has a bar graph, with each metric being
cumulative.
At the present time, %idle is not displayed because I think the graph is
much more readable without it. But an SVG option to display it will
possibly be added in the future.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update core functions
Sebastien GODARD [Fri, 18 Mar 2016 13:31:21 +0000 (14:31 +0100)]
SVG: Update core functions

Create separate functions for line graphs and bar graphs.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix truncated SVG code
Sebastien GODARD [Fri, 18 Mar 2016 13:21:56 +0000 (14:21 +0100)]
SVG: Fix truncated SVG code

SVG graph definition may be truncated when the array which contains
SVG code needs to be resized. Fix this.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update graph colors
Sebastien GODARD [Fri, 18 Mar 2016 13:18:09 +0000 (14:18 +0100)]
SVG: Update graph colors

This is necessary to tell the difference between several graphs which
may be drawn on the same view.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoStarting sysstat 11.3.3
Sebastien GODARD [Sun, 13 Mar 2016 10:17:13 +0000 (11:17 +0100)]
Starting sysstat 11.3.3

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agosysstat-11.3.2 v11.3.2
Sebastien GODARD [Sun, 13 Mar 2016 10:11:02 +0000 (11:11 +0100)]
sysstat-11.3.2

sysstat version 11.3.2 final packaging.
lsm and spec files updated.
Changelog added.

NOTE: A stable version (11.2.2) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.3.2
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoNLS: Sync with Translation Project
Sebastien GODARD [Sun, 13 Mar 2016 09:59:05 +0000 (10:59 +0100)]
NLS: Sync with Translation Project

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update sadf manual page
Sebastien GODARD [Sun, 13 Mar 2016 09:30:38 +0000 (10:30 +0100)]
SVG: Update sadf manual page

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agosar: Fix possible compatibility issues between sysstat versions
Sebastien GODARD [Sat, 12 Mar 2016 10:27:30 +0000 (11:27 +0100)]
sar: Fix possible compatibility issues between sysstat versions

Fix an issue that made sar unable to read statistics for network
and disk devices from a datafile created by a more recent version of
sysstat when the size of the structures used to save those statistics
was greater than that of the current version.
This may be the case when eg. new fields are appended to network or disk
structures.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Remove decimals in Y graduations for bar graphs
Sebastien GODARD [Sat, 12 Mar 2016 09:54:22 +0000 (10:54 +0100)]
SVG: Remove decimals in Y graduations for bar graphs

Bar graphs are used to display metrics expressed as percentage values.
Graduations on the Y axis are fixed values (0, 25, 50, 75 and 100) that
don't need to be decimal numbers (0.00, 25.00, ...)

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Handle dynamically (un)registered network interfaces (2)
Sebastien GODARD [Fri, 11 Mar 2016 17:05:50 +0000 (18:05 +0100)]
SVG: Handle dynamically (un)registered network interfaces (2)

Commit f5d9bce dealt with network interfaces that can be dynamically
registered or unregistered in /proc/net/dev. But it assumed that network
interfaces appear always at the same position in the /proc/net/dev file.
As this is not necessarily the case, this patch makes sure that we
update the right graph corresponding to the same network interface.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoFix possible confusion among network interfaces
Sebastien GODARD [Fri, 11 Mar 2016 16:54:57 +0000 (17:54 +0100)]
Fix possible confusion among network interfaces

Some wrong statistics could have been displayed when a new network
interface was dynamically registered and appeared in the middle of
the list of existing interfaces in /proc/net/dev.
This patch fixes this problem (that hardly ever happens), and
removes some redundant lines of code.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update SVG output for swap statistics
Sebastien GODARD [Fri, 11 Mar 2016 10:11:37 +0000 (11:11 +0100)]
SVG: Update SVG output for swap statistics

This patch updates SVG code used to draw graphs for swap statistics to
keep in sync with current SVG core functions.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoMerge branch 'stevekay-master'
Sebastien GODARD [Fri, 11 Mar 2016 09:58:31 +0000 (10:58 +0100)]
Merge branch 'stevekay-master'

8 years agoMerge branch 'master' of https://github.com/stevekay/sysstat into stevekay-master
Sebastien GODARD [Fri, 11 Mar 2016 09:56:04 +0000 (10:56 +0100)]
Merge branch 'master' of https://github.com/stevekay/sysstat into stevekay-master

8 years agoSVG: Cosmetic fixes
Sebastien GODARD [Fri, 11 Mar 2016 09:44:34 +0000 (10:44 +0100)]
SVG: Cosmetic fixes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add graph for %ifutil metrics
Sebastien GODARD [Fri, 11 Mar 2016 09:34:22 +0000 (10:34 +0100)]
SVG: Add graph for %ifutil metrics

Add a graph for the last metrics from network activity (%ifutil).
This a new type of graph (bar graph, whereas previous graphs were line
graphs) which will be used for all metrics expressed as percentage
values.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for swap statistics - single in/out graph
Steve Kay [Thu, 10 Mar 2016 23:08:05 +0000 (15:08 -0800)]
SVG: Add SVG output for swap statistics - single in/out graph

8 years agoSVG: Add SVG output for swap statistics
Steve Kay [Thu, 10 Mar 2016 23:02:44 +0000 (15:02 -0800)]
SVG: Add SVG output for swap statistics

8 years agoSVG: Beautify code a bit in svg_stats.c
Sebastien GODARD [Wed, 9 Mar 2016 17:44:56 +0000 (18:44 +0100)]
SVG: Beautify code a bit in svg_stats.c

Use item_name variable to make things easier to read.
Remove unneeded scrap.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoMerge branch 'pschiffe-master'
Sebastien GODARD [Mon, 7 Mar 2016 17:49:54 +0000 (18:49 +0100)]
Merge branch 'pschiffe-master'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoIntroduce new SP_VALUE_100() macro and use it in pidstat
Peter Schiffer [Mon, 7 Mar 2016 12:25:24 +0000 (13:25 +0100)]
Introduce new SP_VALUE_100() macro and use it in pidstat

Under specific loads, pidstat can output values bigger than 100% in CPU
statistics caused by inaccurate read of statistics provided by kernel.

This patch adds new SP_VALUE_100() macro which limits value to 100 for these
statistics, so the output can be correctly interpreted.

8 years agoSVG: Fix invalid use of attribute vector-effect
Sebastien GODARD [Sun, 6 Mar 2016 15:31:13 +0000 (16:31 +0100)]
SVG: Fix invalid use of attribute vector-effect

Attribute vector-effect="non-scaling-stroke" was not compliant with SVG
1.1 standards. Use CSS attributes instead.

Fix errors from W3 validator.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update sadf manual page
Sebastien GODARD [Sun, 6 Mar 2016 15:10:28 +0000 (16:10 +0100)]
SVG: Update sadf manual page

Indicate that the output of sadf -g should be an SVG file instead of an
HTML one.
Fix a warning from W3 validator.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Specify encoding in SVG header
Sebastien GODARD [Sun, 6 Mar 2016 15:04:56 +0000 (16:04 +0100)]
SVG: Specify encoding in SVG header

Charset encoding must be specified in SVG header.
Fix a warning from W3 validator.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoUpdate manual pages
Sebastien GODARD [Sun, 6 Mar 2016 14:26:49 +0000 (15:26 +0100)]
Update manual pages

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agompstat/pidstat: Print time in the ISO format is S_TIME_FORMAT=ISO
Sebastien GODARD [Sun, 6 Mar 2016 14:20:32 +0000 (15:20 +0100)]
mpstat/pidstat: Print time in the ISO format is S_TIME_FORMAT=ISO

Make mpstat and pidstat consistent with sar (cf. commit 00c44f0).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Handle dynamically (un)registered network interfaces
Sebastien GODARD [Sat, 5 Mar 2016 16:32:06 +0000 (17:32 +0100)]
SVG: Handle dynamically (un)registered network interfaces

Network interfaces may be dynamically registered or unregistered.
That is to say they can appear in the /proc/net/dev file when
the corresponding device is connected, and also disappear when
the device is removed.

This patch tries to handle this so that graphs are drawn for
the interfaces which are connected on the fly. Graphs are drawn only
when the device is actually connected, which means that they may be
discontinuous if the device is connected, then disconnected, then
reconnected again, just like when a system restart occurrs.

At the present time, this patch assumes that the devices are always at
the same position in /proc/net/dev, which is not necessarily the case.
This will be fixed later.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoMerge branch 'svg2' of https://github.com/stevekay/sysstat
Sebastien GODARD [Sat, 5 Mar 2016 14:10:28 +0000 (15:10 +0100)]
Merge branch 'svg2' of https://github.com/stevekay/sysstat

8 years agoMerge branch 'svg1' of https://github.com/stevekay/sysstat
Sebastien GODARD [Sat, 5 Mar 2016 14:07:13 +0000 (15:07 +0100)]
Merge branch 'svg1' of https://github.com/stevekay/sysstat

8 years agominor typo where attribute value was not surrounded by quotes
Steve Kay [Sat, 5 Mar 2016 05:54:53 +0000 (21:54 -0800)]
minor typo where attribute value was not surrounded by quotes

8 years agotypo text-anchror -> text-anchor
Steve Kay [Sat, 5 Mar 2016 05:47:57 +0000 (21:47 -0800)]
typo text-anchror -> text-anchor

8 years agofix tapestat man page typos
Steve Kay [Fri, 4 Mar 2016 19:48:21 +0000 (11:48 -0800)]
fix tapestat man page typos

8 years agoSVG: Draw txkB/s and rxkB/s network metrics to scale
Sebastien GODARD [Fri, 4 Mar 2016 14:43:02 +0000 (15:43 +0100)]
SVG: Draw txkB/s and rxkB/s network metrics to scale

The metrics are expressed in kB/s whereas the corresponding counters are
saved in B/s. So recalculate min and max values in kB/s before drawing
graphs.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoMerge branch 'stevekay-master'
Sebastien GODARD [Fri, 4 Mar 2016 14:04:39 +0000 (15:04 +0100)]
Merge branch 'stevekay-master'

Disable NLS if one of xgettext, msgmerge or msgfmt commands is
unavailable.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoFixes #97 - disable NLS if any gettext components are unavailable
Steve Kay [Sat, 27 Feb 2016 20:06:51 +0000 (15:06 -0500)]
Fixes #97 - disable NLS if any gettext components are unavailable

8 years agoMerge branch 'iso-time-fmt' of https://github.com/ynamiki/sysstat
Sebastien GODARD [Wed, 24 Feb 2016 15:11:50 +0000 (16:11 +0100)]
Merge branch 'iso-time-fmt' of https://github.com/ynamiki/sysstat

8 years agoSVG: Add SVG output for network statistics
Sebastien GODARD [Wed, 24 Feb 2016 11:47:36 +0000 (12:47 +0100)]
SVG: Add SVG output for network statistics

Add 3 new sets of graphs.
They will be displayed for each network interfaces installed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Free graphs structures only when all graphs have been drawn
Sebastien GODARD [Wed, 24 Feb 2016 11:40:45 +0000 (12:40 +0100)]
SVG: Free graphs structures only when all graphs have been drawn

Create a separate function to free structures.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add item name in graph title
Sebastien GODARD [Wed, 24 Feb 2016 11:14:08 +0000 (12:14 +0100)]
SVG: Add item name in graph title

Each item (network interface, etc.) will have its distinct set of
graphs. So add item name in the title of their graphs.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Explicitly pass structures to be compared
Sebastien GODARD [Wed, 24 Feb 2016 10:47:07 +0000 (11:47 +0100)]
SVG: Explicitly pass structures to be compared

The structures which will be scanned to check for min/max values need to
be explicitly passed to save_extrema() function. Indeed, for activities
with several items (eg. network statistics), we will need to scan each
item structure independently.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoPrint time in the ISO format if S_TIME_FORMAT=ISO in sar
ynamiki [Tue, 23 Feb 2016 05:55:56 +0000 (14:55 +0900)]
Print time in the ISO format if S_TIME_FORMAT=ISO in sar

8 years agoSVG: Check index in svg_colors[] array
Sebastien GODARD [Mon, 22 Feb 2016 17:49:47 +0000 (18:49 +0100)]
SVG: Check index in svg_colors[] array

Make sure that index used to get colors from svg_colors[] array
doesn't exceed array size.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Init newly allocated strings
Sebastien GODARD [Mon, 22 Feb 2016 17:26:34 +0000 (18:26 +0100)]
SVG: Init newly allocated strings

Graph definition is made of successive SVG "path" commands concatenated
together. Make sure that the strings allocated to receive these definitions
are initialized before being used.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for paging statistics
Sebastien GODARD [Sun, 21 Feb 2016 16:38:19 +0000 (17:38 +0100)]
SVG: Add SVG output for paging statistics

Add 3 new sets of SVG graphs:
1) pgpgin/S, pgpgout/s
2) fault/s, majflt/s
3) pgfree/s, pgscank/s, pgscand/s, pgsteal/s

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoFix comment
Sebastien GODARD [Sun, 21 Feb 2016 16:36:14 +0000 (17:36 +0100)]
Fix comment

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Create common functions
Sebastien GODARD [Sun, 21 Feb 2016 16:33:10 +0000 (17:33 +0100)]
SVG: Create common functions

These functions will be used to draw graphs for other acitivities.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Change colors order
Sebastien GODARD [Sun, 21 Feb 2016 16:26:14 +0000 (17:26 +0100)]
SVG: Change colors order

This is purely cosmetic...

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoStarting sysstat 11.3.2
Sebastien GODARD [Sat, 20 Feb 2016 15:32:43 +0000 (16:32 +0100)]
Starting sysstat 11.3.2

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agosysstat-11.3.1 v11.3.1
Sebastien GODARD [Sat, 20 Feb 2016 15:27:35 +0000 (16:27 +0100)]
sysstat-11.3.1

sysstat version 11.3.1 final packaging.
lsm and spec files updated.
Changelog added.

NOTE: A stable version (11.2.1.1) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.3.1
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoMakefile: Update README file name
Sebastien GODARD [Sat, 20 Feb 2016 15:25:22 +0000 (16:25 +0100)]
Makefile: Update README file name

README file name is now README.md.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoNLS: Sync with Translation Project
Sebastien GODARD [Sat, 20 Feb 2016 15:06:17 +0000 (16:06 +0100)]
NLS: Sync with Translation Project

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoFAQ updated
Sebastien GODARD [Sat, 20 Feb 2016 14:28:11 +0000 (15:28 +0100)]
FAQ updated

Update the FAQ and tell about the new SVG output format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoUpdate sadf manual page
Sebastien GODARD [Sat, 20 Feb 2016 14:26:58 +0000 (15:26 +0100)]
Update sadf manual page

Describe sadf's option -g in manual page.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Handle files with orphan samples properly
Sebastien GODARD [Fri, 19 Feb 2016 13:38:36 +0000 (14:38 +0100)]
SVG: Handle files with orphan samples properly

If a file has only orphan samples then display "No data" indicating that
the graph cannot be drawn.
An orphan sample is something like:

sadc data        <-- LINUX RESTART
sadc data 1 1    <-- Create an orphan sample
sadc data        <-- LINUX RESTART

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix background H lines when all values are zero
Sebastien GODARD [Fri, 19 Feb 2016 12:48:22 +0000 (13:48 +0100)]
SVG: Fix background H lines when all values are zero

The default Y scale max value is 1 when all the values are zero.
Yet in this case we still want 3 horizontal lines for the background
grid.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix Y axis scale graduations for small values
Sebastien GODARD [Fri, 19 Feb 2016 12:13:41 +0000 (13:13 +0100)]
SVG: Fix Y axis scale graduations for small values

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for task creation and system switching activity.
Sebastien GODARD [Fri, 19 Feb 2016 09:37:05 +0000 (10:37 +0100)]
SVG: Add SVG output for task creation and system switching activity.

Update sadf's SVG ouptput to create graphs for task creation and system
switching activity (this corresponds to the output of sar -w).
This is just a proof of concept.
Try it with "sadf -g /your/sa/datafile -- -w > out.html" and open
the resulting HTML file in your web browser.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>