]> granicus.if.org Git - sysstat/log
sysstat
7 years agoAdd BUG_REPORT template file
Sebastien GODARD [Fri, 14 Jul 2017 15:42:59 +0000 (17:42 +0200)]
Add BUG_REPORT template file

This file contains the data that should be provided to report a bug.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRevert "Fix #148: ARM: sadc crashes because of unaligned memory accesses"
Sebastien GODARD [Mon, 10 Jul 2017 14:59:09 +0000 (16:59 +0200)]
Revert "Fix #148: ARM: sadc crashes because of unaligned memory accesses"

This reverts commit 569378eb1a3be23cdb45ac5d39e354683a7748f8.
Proposed fix for #148 "sadc crashes because of unaligned memory access"
doesn't work properly:
Copying old pointer contents to new pointer destination uses the size of
the memory pointed to by the newly allocated pointer... which is not the
size of the memory the old pointer was pointing to. The result is you
may get a segmentation fault in some cases.
So for now, revert the corresponding patch, awaiting a better solution.

7 years agoRevert "Fix CID 144609: Ressource leak"
Sebastien GODARD [Mon, 10 Jul 2017 14:58:25 +0000 (16:58 +0200)]
Revert "Fix CID 144609: Ressource leak"

This reverts commit 3c553ec126fa32f126ad1526da8a6e733f2bfd7d.

7 years agoUpdate README file
Sebastien GODARD [Mon, 10 Jul 2017 06:14:25 +0000 (08:14 +0200)]
Update README file

iostat doesn't display stats for network filesystems.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate lsm file
Sebastien GODARD [Mon, 10 Jul 2017 06:13:27 +0000 (08:13 +0200)]
Update lsm file

tapestat command was declared twice.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoStarting sysstat 11.6.0
Sebastien GODARD [Wed, 5 Jul 2017 08:54:05 +0000 (10:54 +0200)]
Starting sysstat 11.6.0

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosysstat-11.5.7 v11.5.7
Sebastien GODARD [Wed, 5 Jul 2017 08:45:01 +0000 (10:45 +0200)]
sysstat-11.5.7

sysstat version 11.5.7 final packaging.
CREDITS, lsm and spec files updated.
Changelog added.

NOTE: Stable versions (11.2.11 and 11.4.5) also exist and will be
available for download from my web site:

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

The stable versions include only the bug fixes added in sysstat 11.5.7
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate NLS translations
Sebastien GODARD [Wed, 5 Jul 2017 08:36:37 +0000 (10:36 +0200)]
Update NLS translations

Sync with The Translation Project: Various translation updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Fix graphs for swap space utilization statistics
Sebastien GODARD [Sun, 25 Jun 2017 07:31:35 +0000 (09:31 +0200)]
SVG: Fix graphs for swap space utilization statistics

Commit 8b71682 added a new metric to sar's memory report (available free
memory). This new metric caused a shift in the array containing data to
be drawn that wasn't properly taken into account (see commit f90adb6).
As a consequence graphs for swap space utilisation statistics (those
corresponding to sar -S output) were wrong.
This patch fixes the problem by using the right position in data array.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosvg_stats.c: Fix typo in comment
Sebastien GODARD [Sun, 25 Jun 2017 07:10:06 +0000 (09:10 +0200)]
svg_stats.c: Fix typo in comment

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #154: pidstat: Don't stop if /proc/#/schedstat files not found
Sebastien GODARD [Fri, 23 Jun 2017 10:00:01 +0000 (12:00 +0200)]
Fix #154: pidstat: Don't stop if /proc/#/schedstat files not found

Commit a41b24a added %wait field to pidstat CPU statistics. This field
is calculated for each task using the contents of /proc/#/schedstat
file. Yet pidstat should not stop if this file cannot be found: It
should display the other CPU statistics as usual and display 0.00 for
this particular field. This is what this patch does.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoStart collect and summary systemd services after sysstat.service
Sebastien GODARD [Fri, 16 Jun 2017 13:17:33 +0000 (15:17 +0200)]
Start collect and summary systemd services after sysstat.service

When booting a system, systemd could start sysstat.service and
sysstat-collect.service at the exact same time, causing sysstat.service
to fail with the "flock: Resource temporarily unavailable" error
message.

To avoid the failure, ensure that sysstat.service is started before the
collect and summary services and timers, by adding
"After=sysstat.service" ordering dependencies.

Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Acked-by: Tomasz Torcz <tomek@pipebreaker.pl>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoDisplay a percent sign after the value when --human option used
Sebastien GODARD [Wed, 7 Jun 2017 13:16:49 +0000 (15:16 +0200)]
Display a percent sign after the value when --human option used

When option --human has been entered, display a percent sign (%)
following every percentage value.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoAdd unit to areq-sz values when --human option has been used
Sebastien GODARD [Wed, 7 Jun 2017 12:01:28 +0000 (14:01 +0200)]
Add unit to areq-sz values when --human option has been used

When iostat and sar display areq-sz, rareq-sz and wareq-sz fields, they
also display the unit if the user has entered option --human.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoDefine constants for metrics units
Sebastien GODARD [Wed, 7 Jun 2017 11:47:04 +0000 (13:47 +0200)]
Define constants for metrics units

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Remove trailing colon following "Device" field name
Sebastien GODARD [Wed, 7 Jun 2017 09:38:41 +0000 (11:38 +0200)]
iostat: Remove trailing colon following "Device" field name

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Update DTD/XSD documents
Sebastien GODARD [Wed, 7 Jun 2017 09:29:44 +0000 (11:29 +0200)]
sadf: Update DTD/XSD documents

Take into account new fields names for "sar -d".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Update manual page
Sebastien GODARD [Wed, 7 Jun 2017 09:13:54 +0000 (11:13 +0200)]
sar: Update manual page

Update fields names and new units used.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoApply "sar -d" changes to sadf
Sebastien GODARD [Wed, 7 Jun 2017 09:02:22 +0000 (11:02 +0200)]
Apply "sar -d" changes to sadf

Replace "rd_sec/s" and "wr_sec/s" fields  (expressed in sectors) with
"rkB/s" and "wkB/s" (expressed in kilobytes).
Replace "avgrq-sz" field (expressed in sectors) with "areq-sz" (expressed
in kilobytes).

Rename "avgqu-sz" field to "aqu-sz".

Original field names are still present in sadf's XML and JSON output to
keep backward compatibility.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Update "sar -d" output contents
Sebastien GODARD [Wed, 7 Jun 2017 08:12:42 +0000 (10:12 +0200)]
sar: Update "sar -d" output contents

Replace "rd_sec/s" and "wr_sec/s" fields with "rkB/s" and "wkB/s". These
fields are now expressed in kilobytes instead of sectors. This also make
them consistent with iostat's output.

Replace "avgrq-sz" field with "areq-sz". This field is now expressed in
kilobytes instead of sectors and make it consistent with iostat's output.

Rename "avgqu-sz" field to "aqu-sz" to make it consistent with iostat's
output.

Notes:
1) All those changes don't break the format of sar's binary data files.
The values for rkB/s, wkB/s and areq-sz fields are still saved as a
number of sectors. Only the output displayed onto the screen changes.
2) I plan to keep the original field names (in addition to the new ones)
in sadf's XML and JSON output to keep backward compatibility. This means
you will still get fields named rd_sec, wr_sec and avgrq-sz (expressed
in sectors) in XML and JSON output in addition to the new fields rkB,
wkB and areq-sz expressed in kB.
Field avgqu-sz will still exist too.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: JSON output now depends on options used
Sebastien GODARD [Mon, 5 Jun 2017 19:08:17 +0000 (21:08 +0200)]
iostat: JSON output now depends on options used

Make JSON output take into account the options used with iostat.

This fixes a problem where some fields had a name like rkB/s or wkB/s
even when data were expressed in MB. In this example, the name will now
be rMB/s or wMB/s when data are expressed in MB.

This patch renames several fields, breaking backward compatibility that
I first hoped to keep. However all fields are now consistent with
iostat's standard report.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Update manual page
Sebastien GODARD [Sun, 4 Jun 2017 13:50:28 +0000 (15:50 +0200)]
iostat: Update manual page

Explain new metrics that have been added.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Express requests average size in kB, not sectors
Sebastien GODARD [Sun, 4 Jun 2017 13:36:55 +0000 (15:36 +0200)]
iostat: Express requests average size in kB, not sectors

Since field "avgrq-sz" was renamed to "areq-sz", also change its unit:
This is now a number of kilobytes, and not sectors.
JSON output keeps both fields for backward compatibility: "avgrq-sz"
expressed in sectors, and "areq-sz" expressed in kilobytes.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate iostat manual page (option -s)
Sebastien GODARD [Sat, 3 Jun 2017 14:22:31 +0000 (16:22 +0200)]
Update iostat manual page (option -s)

Explain iostat's new option "-s".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Add new metrics in extended statistics output
Sebastien GODARD [Sat, 3 Jun 2017 13:35:36 +0000 (15:35 +0200)]
iostat: Add new metrics in extended statistics output

Add the following metrics to iostat -x output:

%rrqm: percentage of read requests merged
%wrqm: percentage of write requests merged
rareq-sz: average size (in sectors) of the read requests
wareq-sz: average size (in sectors) of the write requests

The metric previously known as "avgqu-sz" has been renamed to "aqu-sz"
(except in the JSON output where the name remains unchanged).
The metric previously known as "avgrq-sz" has been renamed to "areq-sz"
(except in the JSON output where the name remains unchanged).

The "await" metric is no longer displayed in the default output (you
have separate values for reads and writes: "r_await", "w_await"),
except in the short output version where it replaces "r_await" and
"w_await".

Sample output for "iostat -xd":

Device:           r/s     w/s     rkB/s     wkB/s   rrqm/s   wrqm/s
%rrqm  %wrqm r_await w_await aqu-sz rareq-sz wareq-sz  svctm  %util
sda              4.52    1.46    122.57     21.55     1.16     0.96
20.39  39.75   12.42   56.40   0.14    54.22    29.52   2.60   1.55

The short output version (using switch -s) merges data for reads and
writes (when relevant).
Sample output for "iostat -xds":

Device:            tps      kB/s    rqm/s   await aqu-sz  areq-sz  %util
sda               5.89    141.65     2.09   23.12   0.14    48.14   1.53

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Add new "-s" switch
Sebastien GODARD [Sat, 3 Jun 2017 08:53:13 +0000 (10:53 +0200)]
iostat: Add new "-s" switch

This switch will tell iostat to display a short version of its output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate year in (C) message
Sebastien GODARD [Sat, 3 Jun 2017 08:39:38 +0000 (10:39 +0200)]
Update year in (C) message

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoCast variables to target type before use
Sebastien GODARD [Fri, 2 Jun 2017 07:38:40 +0000 (09:38 +0200)]
Cast variables to target type before use

This patch casts some variables to target type before they are used.
Without this patch, problems may happen (like issue #150) notably on 32
bit architectures where sizeof(long) is different from sizeof(long
long).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Define a max number of horizontal lines for the background grid
Sebastien GODARD [Sat, 27 May 2017 13:58:54 +0000 (15:58 +0200)]
SVG: Define a max number of horizontal lines for the background grid

When a graph for percentage values is displayed, a background grid with
horizontal lines for 25%, 50%, 75% and 100% is drawn.
This works well except when sadf gets a bogus value for the maximum
value reached by the metric. For example, if sadf thinks that the max
value is 123456789% then a high number of horizontal lines will be
drawn, resulting in a huge SVG file that can weigh hundreds of megabytes
or more (NB: There are metrics which are percentage values that can go
above 100%, e.g., %commit).
This patch fixes that by setting a limit for the number of horizontal
lines that can be drawn.

See issue #150.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate sysstat's manual pages
Sebastien GODARD [Wed, 24 May 2017 13:21:49 +0000 (15:21 +0200)]
Update sysstat's manual pages

Update default colors used by sysstat commands in manual pages.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #151: sar: Default colors are suboptimal for light backgrounds
Sebastien GODARD [Wed, 24 May 2017 12:03:10 +0000 (14:03 +0200)]
Fix #151: sar: Default colors are suboptimal for light backgrounds

Default colors are suboptimal for terminals with light backgrounds.
Change them so that they can usable on both dark and light terminal
backgrounds.

Reported-by: Peter Schiffer
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #153: sar program buffer overflow when options -s or -e specified
Sebastien GODARD [Wed, 24 May 2017 09:23:03 +0000 (11:23 +0200)]
Fix #153: sar program buffer overflow when options -s or -e specified

When a short time format is used with sar's options -s or -e (e.g.,
sar -s 04:00), 5 characters are copied by strncpy in parse_timestamp
to timestamp variable. Unfortunately these 5 characters do not contain
the termination, therefore the following strcat appends after the
next "random" null byte. Therefore writing beyond the end of timestamp.

This patch tries to prevent this by explicitly terminating.

Debian bug #863197.

Reported-by: Robert Luberda
Signed-off-by: Bernhard Ubelacker <bernhardu@mailbox.org>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix CID 144609: Ressource leak
Sebastien GODARD [Sun, 14 May 2017 16:52:06 +0000 (18:52 +0200)]
Fix CID 144609: Ressource leak

In SREALLOC() macro: Old pointer was not freed when a realloc() had
happened.
Bug introduced by commit 569378e.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoStarting sysstat 11.5.7
Sebastien GODARD [Wed, 10 May 2017 14:12:01 +0000 (16:12 +0200)]
Starting sysstat 11.5.7

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosysstat-11.5.6 v11.5.6
Sebastien GODARD [Wed, 10 May 2017 14:04:42 +0000 (16:04 +0200)]
sysstat-11.5.6

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

NOTE: Stable versions (11.2.10 and 11.4.4) also exist and will be
available for download from my web site:

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

The stable versions include only the bug fixes added in sysstat 11.5.6
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate NLS translations
Sebastien GODARD [Wed, 10 May 2017 13:55:15 +0000 (15:55 +0200)]
Update NLS translations

Sync with The Translation Project: Hungarian translation updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #148: ARM: sadc crashes because of unaligned memory accesses
Sebastien GODARD [Mon, 8 May 2017 08:10:22 +0000 (10:10 +0200)]
Fix #148: ARM: sadc crashes because of unaligned memory accesses

Use posix_memalign() with 16 bytes alignment request instead of
realloc() to guarantee 16 byte alignment requested by several
sysstat's structures.

Note: 16 byte alignment is no longer needed by sysstat's
structures. Yet removing the corresponding attributes
(__attribute__ ((aligned (16)))) for example in rd_stats.h
would imply a format change for sar/sadc binary data files.
These attributes will be removed when work is done to make sa binary
datafiles portable (see #135).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #145: Tests failures on big endian archs
Sebastien GODARD [Sun, 30 Apr 2017 14:39:43 +0000 (16:39 +0200)]
Fix #145: Tests failures on big endian archs

This is really a nasty point here. The fix should be to make sar and sadf
able to read both big and little-endian binary data files.
For now we just remove the problematic test cases.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Fix typo in manual page
Sebastien GODARD [Sun, 30 Apr 2017 13:55:56 +0000 (15:55 +0200)]
sadf: Fix typo in manual page

Debian patch: 14-spelling-typo.patch

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agorndr_stats.c: Cosmetic fix
Sebastien GODARD [Sun, 30 Apr 2017 13:43:56 +0000 (15:43 +0200)]
rndr_stats.c: Cosmetic fix

Simplify fix for the warning given by gcc -Werror=format-security.

Debian patch: 09-format-warning.patch

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRename isag.in to isag and include a few cosmetic fixes.
Sebastien GODARD [Sun, 30 Apr 2017 13:18:45 +0000 (15:18 +0200)]
Rename isag.in to isag and include a few cosmetic fixes.

NOTE: isag is no longer maintained. This patch has been provided by
Debian team (see #146).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoisag: Support xz compression format
Sebastien GODARD [Sat, 29 Apr 2017 07:29:27 +0000 (09:29 +0200)]
isag: Support xz compression format

Add support for the .xz files.

NOTE: isag is no longer maintained. This patch has been provided by
Debian team (see #146).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoisag: Add support for saYYYYMMDD log files format
Sebastien GODARD [Sat, 29 Apr 2017 07:25:06 +0000 (09:25 +0200)]
isag: Add support for saYYYYMMDD log files format

The fill_file_menu() function was rewritten and tries to handle
all three possible formats (`saYYYYMMDD, `saDD', `YYYYMM/saDD')
by collecting existing log files into a temporary list of strings,
which is then used after being sorted to generate the menu.

NOTE: isag is no longer maintained. This patch has been provided by
Debian team (see #146).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoisag: Add Refresh button
Sebastien GODARD [Sat, 29 Apr 2017 07:13:31 +0000 (09:13 +0200)]
isag: Add Refresh button

Add Refresh button to file menu to make it possible to re-read contents
of sysstat directory in case isag is running over midnight, and new
file is created (LP: #924197).

NOTE: isag is no longer maintained. This patch has been provided by
Debian team (see #146).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Update manual page
Sebastien GODARD [Sun, 26 Mar 2017 09:52:59 +0000 (11:52 +0200)]
sadf: Update manual page

Explain new option "showinfo".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Add new option: "showinfo"
Sebastien GODARD [Sun, 26 Mar 2017 09:46:25 +0000 (11:46 +0200)]
SVG: Add new option: "showinfo"

This option tells sadf to display additional information (for now, these
are the date and the hostname) on each chart.

E.g.: sadf -g -O showinfo -- -A > graph.svg

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoCreate a separate function to get report's date
Sebastien GODARD [Sun, 26 Mar 2017 09:44:31 +0000 (11:44 +0200)]
Create a separate function to get report's date

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Update manual page
Sebastien GODARD [Wed, 15 Mar 2017 08:58:49 +0000 (09:58 +0100)]
mpstat: Update manual page

Explain new options: -N and -n.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Remove unneeded parameter from JSON functions
Sebastien GODARD [Sat, 11 Mar 2017 08:43:34 +0000 (09:43 +0100)]
mpstat: Remove unneeded parameter from JSON functions

When displaying stats in JSON format, we don't need the timestamp
string. So remove it from corresponding functions.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Small additional check
Sebastien GODARD [Sat, 11 Mar 2017 08:38:51 +0000 (09:38 +0100)]
mpstat: Small additional check

Make sure node number is not negative.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRFE #140: mpstat: Provide CPU statistics based on NUMA node placement
Sebastien GODARD [Wed, 8 Mar 2017 14:06:25 +0000 (15:06 +0100)]
RFE #140: mpstat: Provide CPU statistics based on NUMA node placement

This patch for mpstat provides CPU load statistics for NUMA nodes.

It uses CPU statistics read from /proc/stat file then split them among
all nodes based on node placement.
Node placement is determined using /sys/devices/system/cpu/cpu#/node#
file indicating which node the CPU is bound to. The node the CPU belongs
to is saved in an array of integers named cpu2node (e.g. cpu2node[3]
gives the node number for CPU#3).
The number of CPU per node is saved in another array of integers named
cpu_per_node (e.g. cpu_per_node[0] gives the number of CPU bound to
node#0).
The statistics for node N is calculated as the sum of statistics for
each CPU bound to node N divided by the number of CPU bound to that
node.
The patch assumes that statistics for node "all" are the same as
statistics for CPU "all".

Node statistics can be displayed using the new mpstat's option "-n"
(e.g. "mpstat -n 2 5"). Nodes to be displayed can be selected using
option "-N" the same way processors can be selected using option "-P"
(e.g. "mpstat -n -N 0,3 2 5").

PLEASE TEST THIS PATCH as my own machine offers limited possibilities.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoStarting sysstat 11.5.6
Sebastien GODARD [Mon, 27 Feb 2017 07:35:02 +0000 (08:35 +0100)]
Starting sysstat 11.5.6

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosysstat-11.5.5 v11.5.5
Sebastien GODARD [Mon, 27 Feb 2017 07:33:20 +0000 (08:33 +0100)]
sysstat-11.5.5

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

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate Makefile
Sebastien GODARD [Mon, 27 Feb 2017 07:24:32 +0000 (08:24 +0100)]
Update Makefile

Take into account new FAQ.md filename.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate NLS translations
Sebastien GODARD [Mon, 27 Feb 2017 07:07:25 +0000 (08:07 +0100)]
Update NLS translations

Sync with The Translation Project. Various translations updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate README file
Sebastien GODARD [Sat, 25 Feb 2017 16:51:45 +0000 (17:51 +0100)]
Update README file

Tell that the FAQ file also is available from the Wiki page on Github.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoConvert FAQ file to MarkDown format
Sebastien GODARD [Sat, 25 Feb 2017 16:49:10 +0000 (17:49 +0100)]
Convert FAQ file to MarkDown format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Small code cleanup
Sebastien GODARD [Sat, 25 Feb 2017 15:50:17 +0000 (16:50 +0100)]
sadf: Small code cleanup

Remove unneeded tests in sadf code.
sadf uses default datafile when no filename has been entered on the
command line.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoAdd %wait field to "pidstat -h" output
Sebastien GODARD [Sat, 18 Feb 2017 10:26:33 +0000 (11:26 +0100)]
Add %wait field to "pidstat -h" output

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMerge branch 'geekben-master'
Sebastien GODARD [Sat, 18 Feb 2017 10:20:14 +0000 (11:20 +0100)]
Merge branch 'geekben-master'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMerge branch 'master' of https://github.com/geekben/sysstat into geekben-master
Sebastien GODARD [Sat, 18 Feb 2017 10:05:41 +0000 (11:05 +0100)]
Merge branch 'master' of https://github.com/geekben/sysstat into geekben-master

7 years agoMake should immediately stop whenever a test failed
Sebastien GODARD [Sat, 11 Feb 2017 16:56:01 +0000 (17:56 +0100)]
Make should immediately stop whenever a test failed

Make should stop and exit with a non zero status code whenever a test
(in the target "test") fails.
Without this patch, make executed all the tests (even when one of them
failed) and exited with a status code of 0, which is not what we want.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Don't extend X axis beyond time end
Sebastien GODARD [Fri, 10 Feb 2017 17:27:14 +0000 (18:27 +0100)]
SVG: Don't extend X axis beyond time end

When a time end has been entered (with option "-e hh:mm:ss"), don't
draw X axis beyond this limit even if some Linux Restart messages
exist after this time limit.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoAdd %wait to pidstat
geekben [Mon, 6 Feb 2017 07:11:13 +0000 (15:11 +0800)]
Add %wait to pidstat

%wait: percentage of CPU spent by the task while waiting to run

7 years agoSVG: Properly terminate SVG file when no data have been found
Sebastien GODARD [Sun, 5 Feb 2017 09:52:09 +0000 (10:52 +0100)]
SVG: Properly terminate SVG file when no data have been found

When a data file contains only a Linux Restart message with no
statistics, trying to create SVG graphs with sadf -g resulted in an
error ("XML Parsing Error: no element found").
This patch fixes that and display "No data!" instead.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate sadf manual page
Sebastien GODARD [Sun, 5 Feb 2017 09:24:35 +0000 (10:24 +0100)]
Update sadf manual page

Explain new "packed" option in sadf manual page.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoClose #138: SVG: Allow multiple charts on a row
Sebastien GODARD [Sun, 5 Feb 2017 09:07:10 +0000 (10:07 +0100)]
Close #138: SVG: Allow multiple charts on a row

Add a new option ("packed") to tell sadf to put multiple charts on a row
when generating SVG graphs.
In fact, with this option, all charts from the same activity (and for
the same device) will appear on the same row.

E.g.: sadf -g -O packed sa01 -- -A > sa01.svg

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate sadf manual page
Sebastien GODARD [Sun, 22 Jan 2017 11:00:10 +0000 (12:00 +0100)]
Update sadf manual page

Explain new "height=" option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Add new option: "height="
Sebastien GODARD [Sun, 22 Jan 2017 10:44:25 +0000 (11:44 +0100)]
SVG: Add new option: "height="

The user can now explicitly specify canvas height using sadf's switch -O
and option "height=" when creating SVG graphs with sadf -g.

E.g.: sadf -g -O height=40000 -- -A > graph.svg

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoAdd new regression tests
Sebastien GODARD [Sat, 21 Jan 2017 08:30:37 +0000 (09:30 +0100)]
Add new regression tests

These tests make sure that sadf can convert a binary data file with an
old format to the up-to-date format, and also that sar can read old
datafiles (which may have been converted or not).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRemove other refs to nfsiostat from .gitignore file
Sebastien GODARD [Sat, 21 Jan 2017 07:54:34 +0000 (08:54 +0100)]
Remove other refs to nfsiostat from .gitignore file

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix comment in /etc/sysconfig/sysstat file
Sebastien GODARD [Sat, 21 Jan 2017 07:43:07 +0000 (08:43 +0100)]
Fix comment in /etc/sysconfig/sysstat file

When HISTORY is set to a value greater than 28, then logfiles are no
longer kept in multiple directories, but are named saYYYYMMDD providing
that sadc's option -D has been used.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate README.md file's contents.
Sebastien GODARD [Sat, 21 Jan 2017 07:42:05 +0000 (08:42 +0100)]
Update README.md file's contents.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoAdd Travis CI badge to README file
Sebastien GODARD [Wed, 18 Jan 2017 10:05:19 +0000 (11:05 +0100)]
Add Travis CI badge to README file

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRemove nfsiostat from .gitignore file
Sebastien GODARD [Wed, 18 Jan 2017 09:33:07 +0000 (10:33 +0100)]
Remove nfsiostat from .gitignore file

nfsiostat command is no longer a sysstat's command. So remove it from
.gitignore file.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoHook up to Travis CI
Sebastien GODARD [Wed, 18 Jan 2017 09:27:15 +0000 (10:27 +0100)]
Hook up to Travis CI

This is a very basic use of Travis CI for now...

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMakefile: Add 'test' target
Sebastien GODARD [Wed, 18 Jan 2017 09:22:00 +0000 (10:22 +0100)]
Makefile: Add 'test' target

Add basic regression tests.
These tests make sure that each command has been properly built and can
be executed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRemove isag support
Sebastien GODARD [Sun, 15 Jan 2017 13:24:47 +0000 (14:24 +0100)]
Remove isag support

isag (Interactive System Activity Grapher) is a script used to graph sar
data contributed by David Doubrava.
Though it is still included in sysstat package in the contrib directory,
it was no longer maintained and is now made deprecated by sadf and its
switch -g which can draw graphs in SVG format.
So remove all the options related to isag from Makefile and configure
scripts.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix typo in sadf manual page
Sebastien GODARD [Sun, 15 Jan 2017 08:19:44 +0000 (09:19 +0100)]
Fix typo in sadf manual page

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoReally fix insecure data handling (CID#140472)
Sebastien GODARD [Sun, 15 Jan 2017 08:16:29 +0000 (09:16 +0100)]
Really fix insecure data handling (CID#140472)

This is again a wrong alert but quieten Coverity by adding a 0 at the
end of field string.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix insecure data handling (Coverity CID#139643)
Sebastien GODARD [Sat, 14 Jan 2017 16:13:40 +0000 (17:13 +0100)]
Fix insecure data handling (Coverity  CID#139643)

Quieten Coverity (CID#139643):
Copying hl without checking the length might overrun the 512-character
fixed-size string field. So use strncpy() function instead of strcpy().

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRewrite README file
Sebastien GODARD [Sat, 14 Jan 2017 15:59:04 +0000 (16:59 +0100)]
Rewrite README file

Rewrite contents of README file.
Add some information on available commands, metrics that are collected,
how to install, plus some fancy images...

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoStarting sysstat 11.5.5
Sebastien GODARD [Wed, 11 Jan 2017 13:18:22 +0000 (14:18 +0100)]
Starting sysstat 11.5.5

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosysstat-11.5.4 v11.5.4
Sebastien GODARD [Wed, 11 Jan 2017 13:13:21 +0000 (14:13 +0100)]
sysstat-11.5.4

sysstat version 11.5.4 final packaging.
lsm and spec files updated.
CREDITS file updated.
Changelog added.

NOTE: Stable versions (11.2.9 and 11.4.3) also exist and will be
available for download from my web site:

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

The stable versions include only the bug fixes added in sysstat 11.5.4
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate NLS translations
Sebastien GODARD [Wed, 11 Jan 2017 13:03:06 +0000 (14:03 +0100)]
Update NLS translations

Sync with The Translation Project.
New Friulian translation added.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Give actual canvas height
Sebastien GODARD [Wed, 11 Jan 2017 12:23:12 +0000 (13:23 +0100)]
SVG: Give actual canvas height

Add a comment at the end of SVG output that indicates the actual canvas
height.
The actual height is frequently different (i.e. smaller) than that
indicated in the header of the SVG output. This is because some
activities have pre-allocated entries that don't result in graphs being
drawn, or because option 'skipempty' has been used.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Update manual page
Sebastien GODARD [Fri, 6 Jan 2017 15:28:53 +0000 (16:28 +0100)]
sar: Update manual page

Remove switch -R from manual page.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Remove memory statistics (-R switch)
Sebastien GODARD [Fri, 6 Jan 2017 15:09:02 +0000 (16:09 +0100)]
sar: Remove memory statistics (-R switch)

Remove memory statistics from sar (those displayed by sar -R, not
sar -r!) I have always considered those data displayed by sar as a
"mistake from my youth". They are not related to the speed of any
specific device (except maybe CPU, but there are other means to
measure CPU speed...), so displaying data per second is just irrelevant.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Update usage message
Sebastien GODARD [Fri, 6 Jan 2017 14:28:54 +0000 (15:28 +0100)]
sadf: Update usage message

Add new "-r" switch to sadf usage message.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Update manual page
Sebastien GODARD [Fri, 6 Jan 2017 14:28:00 +0000 (15:28 +0100)]
sadf: Update manual page

Document new "-r" switch (raw output format) and associated option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Init f_svg_print() function pointer to NULL
Sebastien GODARD [Fri, 6 Jan 2017 10:21:02 +0000 (11:21 +0100)]
SVG: Init f_svg_print() function pointer to NULL

For activities that don't have SVG output with sadf, init f_svg_print()
function pointer to NULL.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoCast values to (unsigned long long) before calling pval()
Sebastien GODARD [Fri, 6 Jan 2017 10:14:59 +0000 (11:14 +0100)]
Cast values to (unsigned long long) before calling pval()

pval() function, used by sadf for its raw output format, assumes values
type is unsigned long long. So cast the values to that type before
calling this function.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Add new output format: raw (part 8)
Sebastien GODARD [Fri, 6 Jan 2017 09:19:29 +0000 (10:19 +0100)]
sadf: Add new output format: raw (part 8)

Add raw output format for all remaining activities.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Add new output format: raw (part 7)
Sebastien GODARD [Mon, 2 Jan 2017 15:23:28 +0000 (16:23 +0100)]
sadf: Add new output format: raw (part 7)

Add raw output format for some power management activities.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Add new output format: raw (part 6)
Sebastien GODARD [Mon, 2 Jan 2017 14:37:19 +0000 (15:37 +0100)]
sadf: Add new output format: raw (part 6)

Add raw output format for 10 more activities.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Add new output format: raw (part 5)
Sebastien GODARD [Sun, 1 Jan 2017 17:28:33 +0000 (18:28 +0100)]
sadf: Add new output format: raw (part 5)

Implement raw output format for additional activities (NFS, NFSD,
sockets, IP, ICMP).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Add new output format: raw (part 4)
Sebastien GODARD [Sun, 1 Jan 2017 09:44:29 +0000 (10:44 +0100)]
sadf: Add new output format: raw (part 4)

Implement raw output format for additional activities.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoraw_stats.c: Use constant name instead of plain value
Sebastien GODARD [Sat, 31 Dec 2016 17:13:57 +0000 (18:13 +0100)]
raw_stats.c: Use constant name instead of plain value

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Add new output format: raw (part 3)
Sebastien GODARD [Sat, 31 Dec 2016 17:09:04 +0000 (18:09 +0100)]
sadf: Add new output format: raw (part 3)

Implement raw format output for memory statistics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Add new output format: raw (part 2)
Sebastien GODARD [Sun, 18 Dec 2016 14:34:47 +0000 (15:34 +0100)]
sadf: Add new output format: raw (part 2)

Implement raw format output for additional activities.

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