]> granicus.if.org Git - sysstat/log
sysstat
5 years agosadf: Update again sadf -H output
Sebastien GODARD [Sat, 21 Sep 2019 09:50:37 +0000 (11:50 +0200)]
sadf: Update again sadf -H output

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar/sadc: Add support for several types of extra records
Sebastien GODARD [Sun, 15 Sep 2019 07:45:00 +0000 (09:45 +0200)]
sar/sadc: Add support for several types of extra records

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Update sadf -H output in tests results
Sebastien GODARD [Sat, 14 Sep 2019 08:07:40 +0000 (10:07 +0200)]
simtest: Update sadf -H output in tests results

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Update sadf -H output
Sebastien GODARD [Sat, 14 Sep 2019 08:06:36 +0000 (10:06 +0200)]
sadf: Update sadf -H output

Also display now if extra structures are present in file or not.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar/sadf: Add extra flexibility in case of a change of file format
Sebastien GODARD [Sat, 14 Sep 2019 08:00:58 +0000 (10:00 +0200)]
sar/sadf: Add extra flexibility in case of a change of file format

Add some extra code to sar and sadf so that they can read new
structures saved in daily binary data files. No changes in binary data
files are planned at the present time, but should a change happen in a
(hopefully) distant future, current sar and sadf commands will be able
to read this new format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosa_conv.c: Make sure all structures are init'ed before use
Sebastien GODARD [Sat, 14 Sep 2019 07:36:40 +0000 (09:36 +0200)]
sa_conv.c: Make sure all structures are init'ed before use

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Make tests independant from current locale
Sebastien GODARD [Sat, 14 Sep 2019 06:01:07 +0000 (08:01 +0200)]
simtest: Make tests independant from current locale

Depending on the locale used, decimal values might use a comma instead
of a decimal point. Make sure that a decimal point is always used.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadc: Make sure all structures are init'ed before use
Sebastien GODARD [Mon, 9 Sep 2019 05:58:28 +0000 (07:58 +0200)]
sadc: Make sure all structures are init'ed before use

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoFix #232: Memory corruption bug due to Integer Overflow in remap_struct()
Sebastien GODARD [Mon, 2 Sep 2019 13:34:27 +0000 (15:34 +0200)]
Fix #232: Memory corruption bug due to Integer Overflow in remap_struct()

Try to avoid integer overflow when reading a corrupted binary datafile
with sadf.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Update manual page
Sebastien GODARD [Mon, 2 Sep 2019 12:57:27 +0000 (14:57 +0200)]
sar: Update manual page

Explain new option "-j SID".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Update usage message
Sebastien GODARD [Mon, 2 Sep 2019 12:56:50 +0000 (14:56 +0200)]
sar: Update usage message

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Fix comment
Sebastien GODARD [Mon, 2 Sep 2019 12:40:29 +0000 (14:40 +0200)]
sar: Fix comment

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add non regression tests for stable identifier support
Sebastien GODARD [Mon, 2 Sep 2019 12:22:52 +0000 (14:22 +0200)]
simtest: Add non regression tests for stable identifier support

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Stable Id support: Update non regression test
Sebastien GODARD [Mon, 2 Sep 2019 09:50:33 +0000 (11:50 +0200)]
sar: Stable Id support: Update non regression test

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar/sadc: Add stable identifier support for disks statistics
Sebastien GODARD [Mon, 2 Sep 2019 09:40:35 +0000 (11:40 +0200)]
sar/sadc: Add stable identifier support for disks statistics

This patch adds new fields to stats_disk structure to save a stable
identifier for each block device (see issue #195).
A stable identifier is a name that should not change across reboots for
the same physical device.
At the present time this stable identifier is the WWN (World Wide Name)
id that is read from /dev/disk/by-id if it exists for the device.
If it doesn't exist then we fall back on using the pretty name (sda,
sda1, etc.).
The stable identifier is always collected by sadc when disks statistics
are collected (sadc option "-S DISK | XDISK").
It can be printed by sar (or sadf) with the option "-j SID" (SID stands
for Stable IDentifier).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoFix #231: Make iostat tests independent from the timezone value
Sebastien GODARD [Wed, 21 Aug 2019 06:40:58 +0000 (08:40 +0200)]
Fix #231: Make iostat tests independent from the timezone value

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Fix test for sar forward compatibility
Sebastien GODARD [Sat, 17 Aug 2019 08:22:49 +0000 (10:22 +0200)]
simtest: Fix test for sar forward compatibility

version.h and sysconfig.h files are ignored by default (cf. .gitignore
file). So rename them so that they can be taken into account.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add non regression test for sar forward compatibility
Sebastien GODARD [Sat, 17 Aug 2019 08:07:47 +0000 (10:07 +0200)]
simtest: Add non regression test for sar forward compatibility

This test makes sure that an old sar version (here, 12.0.1) can still
read a binary data file created by latest up-to-date sar version.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoStarting sysstat-12.1.7
Sebastien GODARD [Wed, 14 Aug 2019 16:45:03 +0000 (18:45 +0200)]
Starting sysstat-12.1.7

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosysstat-12.1.6 v12.1.6
Sebastien GODARD [Wed, 14 Aug 2019 16:35:09 +0000 (18:35 +0200)]
sysstat-12.1.6

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

In this version, the iostat command has been heavily modified for better
performance. In particular devices structures are now dynamically allocated
to make sure you won't miss a device if many of them are added to the
system while iostat is running. Also sysstat test environment now
includes a large set of non regression tests for iostat.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoUpdate NLS translations
Sebastien GODARD [Wed, 14 Aug 2019 16:09:19 +0000 (18:09 +0200)]
Update NLS translations

Sync with the Translation Project.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoFix #230: Memory corruption bug due to Integer Overflow in remap_struct()
Sebastien GODARD [Tue, 13 Aug 2019 12:53:29 +0000 (14:53 +0200)]
Fix #230: Memory corruption bug due to Integer Overflow in remap_struct()

(See problem description in issue #230.)
Check that the number of fields (long long integers, long integers or
integers) as read from a system activity binary datafile multiplied by
its alignment width doesn't overflow, i.e. the result must not be
smaller than the number of fields.

Reported-by: Ren Kimura
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Add a comment concerning CPU values displayed in RAW mode
Sebastien GODARD [Tue, 13 Aug 2019 07:50:43 +0000 (09:50 +0200)]
sadf: Add a comment concerning CPU values displayed in RAW mode

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Update data used for sar cross-day test
Sebastien GODARD [Tue, 13 Aug 2019 07:22:19 +0000 (09:22 +0200)]
simtest: Update data used for sar cross-day test

Previous data-cd data file had some bogus values leading to strange data
being displayed by sar (e.g. average values of 0.00 for CPU).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Fix sar -s/-e output on datafile spanning two days
Sebastien GODARD [Tue, 13 Aug 2019 07:14:45 +0000 (09:14 +0200)]
sar: Fix sar -s/-e output on datafile spanning two days

This patch fixes the output of the following command:

TZ=GMT ./sar -f tests/data-cd -s 23:59:58
Linux 1.2.3-TEST (SYSSTAT.TEST)  05/01/2019  _x86_64_ (8 CPU)

11:59:58 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
11:59:59 PM     all      2.28      0.00      1.93      0.50      0.00     95.29
12:00:00 AM     all      2.66     23.20      2.27      0.16      0.00     71.71
12:00:01 AM     all      6.53      9.63      4.42      0.54      0.00     78.89
Average:        all      4.01     13.45      3.02      0.39      0.00     79.13

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Fix comment
Sebastien GODARD [Tue, 13 Aug 2019 07:13:19 +0000 (09:13 +0200)]
iostat: Fix comment

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Add new non regression tests
Sebastien GODARD [Sun, 21 Jul 2019 14:10:53 +0000 (16:10 +0200)]
iostat: Add new non regression tests

These tests focus on devices with a slash in their name (e.g.
cciss/c0d0...).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Make sure that devices that have a slash in their name get
Sebastien GODARD [Sun, 21 Jul 2019 14:06:06 +0000 (16:06 +0200)]
iostat: Make sure that devices that have a slash in their name get
properly printed

Make sure that devices that have a slash in their name (e.g.
cciss/c0d0...) are displayed with their real name, not their name used
to save them in the linked list ('/' character is replaced with '!'
there).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Start tests on current root directory
Sebastien GODARD [Sun, 21 Jul 2019 14:04:20 +0000 (16:04 +0200)]
simtest: Start tests on current root directory

Don't assume that tests always start on tests/root1 directory.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Add new non regression tests
Sebastien GODARD [Sat, 20 Jul 2019 09:23:51 +0000 (11:23 +0200)]
iostat: Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Removed unused definitions from iostat.h
Sebastien GODARD [Sat, 20 Jul 2019 08:48:21 +0000 (10:48 +0200)]
iostat: Removed unused definitions from iostat.h

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Use the right major and minor numbers to read partitions stats
Sebastien GODARD [Sat, 20 Jul 2019 08:42:48 +0000 (10:42 +0200)]
iostat: Use the right major and minor numbers to read partitions stats

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Fix issue when a UUID is given on the command line
Sebastien GODARD [Sat, 20 Jul 2019 08:28:16 +0000 (10:28 +0200)]
iostat: Fix issue when a UUID is given on the command line

A command like "iostat -j UUID 2578463f-6947-48c7-8b09-876a4145cfb1 1 2"
didn't work because the UUID name was considered as the interval of time
to use. This patch fixes the problem.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoIncrease array size in get_devname_from_sysfs() function
Sebastien GODARD [Sat, 20 Jul 2019 08:22:01 +0000 (10:22 +0200)]
Increase array size in get_devname_from_sysfs() function

Array might be too small in test mode. So increase its size.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Update non regression tests
Sebastien GODARD [Sat, 20 Jul 2019 08:20:03 +0000 (10:20 +0200)]
iostat: Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Major code refactoring
Sebastien GODARD [Sat, 20 Jul 2019 08:13:23 +0000 (10:13 +0200)]
iostat: Major code refactoring

This patch adds the following features:
* Structures for devices statistics are now dynamically allocated. It is
no longer possible to miss a device if many of them are added into the
system while iostat is running.
* Check for devices which are removed then inserted again into the
system. iostat will no longer display abormally high numbers in these
cases.
* Better handle devices entered on the command line, which may be
partitions and/or whole devices.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoSmall update in sysstat.ioconf file
Sebastien GODARD [Fri, 19 Jul 2019 16:10:19 +0000 (18:10 +0200)]
Small update in sysstat.ioconf file

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add new sar/sadc non regression tests
Sebastien GODARD [Sun, 30 Jun 2019 07:18:03 +0000 (09:18 +0200)]
simtest: Add new sar/sadc non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Fix compilation warnings
Sebastien GODARD [Fri, 28 Jun 2019 12:29:36 +0000 (14:29 +0200)]
sadf: Fix compilation warnings

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: sar: Add non regression tests for sensors statistics
Sebastien GODARD [Fri, 28 Jun 2019 09:33:14 +0000 (11:33 +0200)]
simtest: sar: Add non regression tests for sensors statistics

Sensors statistics cannot be read in Travis CI environment because the
requested library is not available. But we can at least display sensors
statistics from a binary datafile already containing them.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Update do_test script
Sebastien GODARD [Fri, 28 Jun 2019 07:31:07 +0000 (09:31 +0200)]
simtest: Update do_test script

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Try to simulate the addition of a new FB host
Sebastien GODARD [Fri, 28 Jun 2019 07:23:51 +0000 (09:23 +0200)]
simtest: Try to simulate the addition of a new FB host

For this, we need to make sure that FB hosts will always be read in
the same order (and especially on Travis CI VM) though this may depend
on the underlying filesystem implementation.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: RAW: Fix the place where the NEW tag is printed for FB hosts
Sebastien GODARD [Fri, 28 Jun 2019 07:21:30 +0000 (09:21 +0200)]
sadf: RAW: Fix the place where the NEW tag is printed for FB hosts

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: XML: Fix bad transmission word statistics for FB hosts
Sebastien GODARD [Fri, 28 Jun 2019 07:01:51 +0000 (09:01 +0200)]
sadf: XML: Fix bad transmission word statistics for FB hosts

A wrong variable was used to calculate the transmission word statistics
for FB hosts. Fix this.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Better handle the case when FB hosts are added to the system
Sebastien GODARD [Fri, 28 Jun 2019 06:54:36 +0000 (08:54 +0200)]
sar: Better handle the case when FB hosts are added to the system

If a new Fibre Channel host is registered in the system, now display its
statistics even for the interval during which it has been registered. In
this case, its initial counters values are considered as 0.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Make sure we are in GMT timezone for iostat test 02430
Sebastien GODARD [Fri, 28 Jun 2019 06:09:54 +0000 (08:09 +0200)]
simtest: Make sure we are in GMT timezone for iostat test 02430

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Make it possible to use /dev/sdb in iostat test
Sebastien GODARD [Fri, 28 Jun 2019 06:00:05 +0000 (08:00 +0200)]
simtest: Make it possible to use /dev/sdb in iostat test

/dev/sdb probably doesn't exist on Travis CI virtual machine, making
iostat non regression test using it fail.
Make sure we stay in our simulation environment by providing a
replacement function for realpath() system call.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add debug code
Sebastien GODARD [Sun, 23 Jun 2019 16:41:34 +0000 (18:41 +0200)]
simtest: Add debug code

Display canonicalized absolute pathnames.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Improve iostat non regression tests
Sebastien GODARD [Sun, 23 Jun 2019 14:24:56 +0000 (16:24 +0200)]
simtest: Improve iostat non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add more iostat non regression tests
Sebastien GODARD [Sun, 23 Jun 2019 12:27:51 +0000 (14:27 +0200)]
simtest: Add more iostat non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoFix prototype definition in systest.h
Sebastien GODARD [Sun, 23 Jun 2019 09:09:21 +0000 (11:09 +0200)]
Fix prototype definition in systest.h

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Make sure all directories are created
Sebastien GODARD [Sat, 22 Jun 2019 13:18:20 +0000 (15:18 +0200)]
simtest: Make sure all directories are created

Empty directories are not taken into account but git. So create a file
in each of them.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoMerge branch 'akosiaris-master'
Sebastien GODARD [Fri, 21 Jun 2019 16:29:37 +0000 (18:29 +0200)]
Merge branch 'akosiaris-master'

5 years agoMerge branch 'master' of https://github.com/akosiaris/sysstat into akosiaris-master
Sebastien GODARD [Fri, 21 Jun 2019 16:19:11 +0000 (18:19 +0200)]
Merge branch 'master' of https://github.com/akosiaris/sysstat into akosiaris-master

5 years agosimtest: Add iostat non regression tests
Sebastien GODARD [Fri, 21 Jun 2019 16:07:29 +0000 (18:07 +0200)]
simtest: Add iostat non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Update sar/sadc/sadf non regression tests
Sebastien GODARD [Fri, 21 Jun 2019 16:06:09 +0000 (18:06 +0200)]
simtest: Update sar/sadc/sadf non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Remove real-time tests
Sebastien GODARD [Fri, 21 Jun 2019 16:02:14 +0000 (18:02 +0200)]
simtest: Remove real-time tests

Real-time tests are no longer useful since they are now simulated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Fix wrong CPU stats displayed with option -y
Sebastien GODARD [Fri, 21 Jun 2019 15:48:44 +0000 (17:48 +0200)]
iostat: Fix wrong CPU stats displayed with option -y

CPU statistics written for the first sample was wrong when option -y was
used. This was because the interval of time used was that since system
startup whereas it should have been the interval of time since last
sample (which is not displayed with option -y).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoAllow more space for persistent type directory names
Sebastien GODARD [Fri, 21 Jun 2019 15:47:40 +0000 (17:47 +0200)]
Allow more space for persistent type directory names

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoCheck for InCsumErrors for EICMP as well
Alexandros Kosiaris [Thu, 20 Jun 2019 22:13:16 +0000 (01:13 +0300)]
Check for InCsumErrors for EICMP as well

In 789cd86fb0, read_net_icmp() obtained code to differentiate between
the old and new format of /proc/net/snmp, which differ by the addition
of "InCsumErrors" in the 3rd position. Add the exact same handling logic
to read_net_eicmp() as well

Signed-off-by: Alexandros Kosiaris <akosiaris@gmail.com>
5 years agosimtest: Add new non regression tests
Sebastien GODARD [Fri, 7 Jun 2019 16:27:42 +0000 (18:27 +0200)]
simtest: Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Update manual page
Sebastien GODARD [Fri, 7 Jun 2019 15:01:55 +0000 (17:01 +0200)]
sar: Update manual page

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar/sadf: Allow to select individual CPU/interrupts with option -A
Sebastien GODARD [Fri, 7 Jun 2019 13:31:46 +0000 (15:31 +0200)]
sar/sadf: Allow to select individual CPU/interrupts with option -A

Previously, using option -A with sar or sadf would display statistics
for all CPU and interrupts (i.e. using -A would also imply -P ALL -I
ALL).
Now this will be true only if the user didn't specify explicitly a list
of CPU or interrupts using options -P or -I.
Example: "sar -A -P1,4" will display all possible statistics but only those
concerning CPU 1 and 4 for CPU-related metrics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Remove unused output file
Sebastien GODARD [Fri, 7 Jun 2019 06:19:50 +0000 (08:19 +0200)]
simtest: Remove unused output file

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Fix test 01405
Sebastien GODARD [Wed, 5 Jun 2019 08:15:50 +0000 (10:15 +0200)]
simtest: Fix test 01405

Make test independent from timezone value.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Update non regression tests
Sebastien GODARD [Wed, 5 Jun 2019 07:09:09 +0000 (09:09 +0200)]
simtest: Update non regression tests

Make sure that the result of the test (success/failure) is based on the
exit code of the sysstat command.

Also add a new non regression test: Check that sadf -g terminates
properly on a truncated input file.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoAdd/update non regression tests
Sebastien GODARD [Sun, 2 Jun 2019 14:04:32 +0000 (16:04 +0200)]
Add/update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Make tests results independent from sysstat version
Sebastien GODARD [Sat, 1 Jun 2019 07:51:18 +0000 (09:51 +0200)]
simtest: Make tests results independent from sysstat version

Set sysstat version to 99.9.9 in test mode.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoUpdate FAQ.
Sebastien GODARD [Fri, 31 May 2019 16:09:47 +0000 (18:09 +0200)]
Update FAQ.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoStarting sysstat-12.1.6
Sebastien GODARD [Fri, 31 May 2019 07:10:40 +0000 (09:10 +0200)]
Starting sysstat-12.1.6

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosysstat-12.1.5 v12.1.5
Sebastien GODARD [Fri, 31 May 2019 07:00:08 +0000 (09:00 +0200)]
sysstat-12.1.5

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

This version completes the support for PCP (Performance Co-Pilote)
output format with sadf: All statistics collected by sar/sadc can now
be exported to a PCP archive file.

This version also includes now a simulation test environment. This makes
it possible to run non regression tests with reproducible results. The
tests are run in a simulated environment composed of kernel files with
predefined values.
For now, only non regression tests have been added for sar, sadc and
sadf commands. Yet they have permitted to identify several bugs which
have been fixed here and also backported to version 12.0.5.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoUpdate NLS translations
Sebastien GODARD [Fri, 31 May 2019 06:50:37 +0000 (08:50 +0200)]
Update NLS translations

Sync with the Translation Project.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_PWR_IN activity
Sebastien GODARD [Sat, 25 May 2019 14:31:12 +0000 (16:31 +0200)]
sadf: PCP: Add support for A_PWR_IN activity

Add metrics displayed by "sar -m IN" (voltage inputs statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_PWR_TEMP activity
Sebastien GODARD [Sat, 25 May 2019 14:19:51 +0000 (16:19 +0200)]
sadf: PCP: Add support for A_PWR_TEMP activity

Add metrics displayed by "sar -m TEMP" (temperature statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_PWR_FAN activity
Sebastien GODARD [Sat, 25 May 2019 14:04:58 +0000 (16:04 +0200)]
sadf: PCP: Add support for A_PWR_FAN activity

Add metrics displayed by "sar -m FAN" (fan statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_DISK activity
Sebastien GODARD [Sun, 19 May 2019 07:44:10 +0000 (09:44 +0200)]
sadf: PCP: Add support for A_DISK activity

Add metrics displayed by "sar -d" (disks statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_PWR_USB activity
Sebastien GODARD [Fri, 17 May 2019 13:19:18 +0000 (15:19 +0200)]
sadf: PCP: Add support for A_PWR_USB activity

Add metrics displayed by "sar -m USB" (USB devices) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_FC activity
Sebastien GODARD [Sat, 11 May 2019 14:47:48 +0000 (16:47 +0200)]
sadf: PCP: Add support for A_NET_FC activity

Add metrics displayed by "sar -n FC" (Fibre Channel HBA statistics) to
PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_HUGE activity
Sebastien GODARD [Sat, 11 May 2019 14:21:22 +0000 (16:21 +0200)]
sadf: PCP: Add support for A_HUGE activity

Add metrics displayed by "sar -H" (huge pages statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Fix units for some metrics
Sebastien GODARD [Sat, 11 May 2019 06:21:14 +0000 (08:21 +0200)]
sadf: PCP: Fix units for some metrics

Units were wrongly specified for some metrics. Fix this.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add non regression tests
Sebastien GODARD [Sat, 11 May 2019 06:05:42 +0000 (08:05 +0200)]
simtest: Add non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Fix PCP and SVG output for filesystem statistics
Sebastien GODARD [Fri, 10 May 2019 16:23:00 +0000 (18:23 +0200)]
sadf: Fix PCP and SVG output for filesystem statistics

When the mount point had to be displayed instead of the filesystem name
with sar's option -F (i.e. the user entered "-F MOUNT" instead of just
"-F"), no data were found by sadf -g (SVG output) and sadf -l (PCP
output). This patch fixes the problem.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_FS activity
Sebastien GODARD [Fri, 10 May 2019 16:17:58 +0000 (18:17 +0200)]
sadf: PCP: Add support for A_FS activity

Add metrics displayed by "sar -F" (filesystem statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Fix iostat regression for groups of devices
Sebastien GODARD [Fri, 10 May 2019 06:09:02 +0000 (08:09 +0200)]
iostat: Fix iostat regression for groups of devices

Device groups specified with iostat's option -g were no longer
displayed in the device report because of a regression introduced by
commit ccda26c. Fix that.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add new non regression tests
Sebastien GODARD [Fri, 3 May 2019 16:03:02 +0000 (18:03 +0200)]
simtest: Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add new non regression tests
Sebastien GODARD [Wed, 1 May 2019 16:29:33 +0000 (18:29 +0200)]
simtest: Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoUpdate documentation
Sebastien GODARD [Wed, 1 May 2019 13:29:57 +0000 (15:29 +0200)]
Update documentation

Explain how options -s and -e are used with sadf.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Time used by options -s/-e no longer depends on the timezone value
Sebastien GODARD [Mon, 29 Apr 2019 13:58:21 +0000 (15:58 +0200)]
sadf: Time used by options -s/-e no longer depends on the timezone value

The time specified with options -s and -e used by sadf has no longer to
be expressed in local time. This time is now consistent with that
displayed by sadf, e.g.: If sadf displays its timestamps in local time
then the time specified with options -s/-e is considered as expressed in
local time. If sadf displays its timestamps in UTC then the time used
with options -s/-e is also considered as expressed in UTC.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Keep adding more non regression tests
Sebastien GODARD [Sun, 28 Apr 2019 10:07:15 +0000 (12:07 +0200)]
simtest: Keep adding more non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Use nanoseconds to distinguish between saDD and saYYYYMMDD
Sebastien GODARD [Sun, 28 Apr 2019 10:00:10 +0000 (12:00 +0200)]
sar: Use nanoseconds to distinguish between saDD and saYYYYMMDD

When no input datafile is specified, sar uses the most recent file
between saDD and saYYYYMMDD. The comparison had a precision of a second,
which is quite enough for normal use. Yet I needed more precision for
use in simulation tests. So use now a precision of the nanosecond.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add more non regression tests again
Sebastien GODARD [Sun, 28 Apr 2019 07:05:24 +0000 (09:05 +0200)]
simtest: Add more non regression tests again

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Add more non regression tests
Sebastien GODARD [Sat, 27 Apr 2019 14:13:33 +0000 (16:13 +0200)]
simtest: Add more non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Allow option -i when no input file is specified
Sebastien GODARD [Sat, 27 Apr 2019 12:46:53 +0000 (14:46 +0200)]
sar: Allow option -i when no input file is specified

Option -i can be used if no datafile is specified  by the user (e.g. a
syntax like "sar -i 600" should not display an error).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoFix #222: Invalid JSON output displayed by iostat
Sebastien GODARD [Sat, 27 Apr 2019 07:31:19 +0000 (09:31 +0200)]
Fix #222: Invalid JSON output displayed by iostat

Commit 5adec60 introduced a regression: JSON output was no longer valid
when option -y was used with iostat.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Don't collect sensors statistics
Sebastien GODARD [Fri, 26 Apr 2019 15:21:01 +0000 (17:21 +0200)]
simtest: Don't collect sensors statistics

The statistics will depend on the host where the tests are run. So
don't collect them.
They also should not appear in datafile header displayed by sadf -H.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Make also sadf SVG output independent from the timezone value
Sebastien GODARD [Fri, 26 Apr 2019 15:09:29 +0000 (17:09 +0200)]
simtest: Make also sadf SVG output independent from the timezone value

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosimtest: Don't add another FC host
Sebastien GODARD [Fri, 26 Apr 2019 14:42:13 +0000 (16:42 +0200)]
simtest: Don't add another FC host

Don't add another Fibre Channel host when running sysstat simulation
tests. The output displayed by sar and sadf will depend on the order in
which filenames are read, which is dependent on the underlying
filesystem implementation, thus making tests non reproducible.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoMake tests results independent from timezone value
Sebastien GODARD [Fri, 26 Apr 2019 14:00:53 +0000 (16:00 +0200)]
Make tests results independent from timezone value

Set TZ variable to GMT to make sure that all the data read by sar won't
depend on the local timezone value.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoAdd sysstat simulation test environment
Sebastien GODARD [Fri, 26 Apr 2019 11:48:12 +0000 (13:48 +0200)]
Add sysstat simulation test environment

This patch adds all the necessary files to be able to run non regression
tests with reproducible results. The tests run in a simulated
environment composed of kernel files with predefined values.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoCosmetic changes in code
Sebastien GODARD [Fri, 26 Apr 2019 10:15:10 +0000 (12:15 +0200)]
Cosmetic changes in code

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