]> granicus.if.org Git - sysstat/log
sysstat
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>
5 years agosar: Cosmetic fix in manual page
Sebastien GODARD [Fri, 26 Apr 2019 09:11:40 +0000 (11:11 +0200)]
sar: Cosmetic fix in manual page

Option -u appears twice when describing -A option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadc: Fix bad number of CPU displayed in a LINUX RESTART message
Sebastien GODARD [Fri, 26 Apr 2019 08:20:43 +0000 (10:20 +0200)]
sadc: Fix bad number of CPU displayed in a LINUX RESTART message

sadc didn't take into account properly a different number of CPU
When appending data to an existing file. This was because the number of
CPU recorded with the restart message was overwritten with that
originally saved in the file.
This patch fixes the problem.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Better detect if a disk has been unregistered then registered again
Sebastien GODARD [Fri, 19 Apr 2019 14:32:53 +0000 (16:32 +0200)]
sar: Better detect if a disk has been unregistered then registered again

If a disk was mounted read-only then sar might not detect that a disk
had been unregistered then registered again. This is because detection
is based on counters (like number of written sectors) going down. Yet
with a read-only device, the number of written sectors is always 0 and
is never decremented.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar: Add missing %gnice CPU value for tickless CPU
Sebastien GODARD [Fri, 19 Apr 2019 13:20:45 +0000 (15:20 +0200)]
sar: Add missing %gnice CPU value for tickless CPU

A field (which should be displayed as 0.00) was missing in CPU
statistics displayed by "sar -u ALL" for tickless CPUs.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoStarting sysstat-12.1.5
Sebastien GODARD [Thu, 18 Apr 2019 07:49:21 +0000 (09:49 +0200)]
Starting sysstat-12.1.5

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosysstat-12.1.4 v12.1.4
Sebastien GODARD [Thu, 18 Apr 2019 07:39:17 +0000 (09:39 +0200)]
sysstat-12.1.4

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

This version adds initial support for PCP (Performance Co-Pilot) output
format. sadf can now export part of its data to a PCP archive file.
This support is still experimental and will be completed in next sysstat
version.

This version also fixes several bugs. The major ones are:
* autofs entries in /etc/mtab are now ignored so that sar/sadf don't
mount the corresponding filesystems when reading their statistics.
* JSON output for iostat and mpstat has been improved so that the
commands can be interrupted with ^C (SIGINT signal) and we still get a
valid JSON output.

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

Sync with the Translation Project.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoUpdate sadf manual page
Sebastien GODARD [Sun, 14 Apr 2019 15:33:56 +0000 (17:33 +0200)]
Update sadf manual page

Explain new PCP-related options.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Fix seg fault on empty data files
Sebastien GODARD [Sat, 13 Apr 2019 16:44:29 +0000 (18:44 +0200)]
sadf: Fix seg fault on empty data files

Trying to display XML or JSON data (with sadf -x/-j) from a data file
containing only RESTART records created a core dump.
This patch fixes that.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Remove some debug code
Sebastien GODARD [Sat, 13 Apr 2019 10:23:44 +0000 (12:23 +0200)]
sadf: PCP: Remove some debug code

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Save COMMENT records in PCP archive
Sebastien GODARD [Sat, 13 Apr 2019 10:21:27 +0000 (12:21 +0200)]
sadf: PCP: Save COMMENT records in PCP archive

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Save RESTART records in PCP archive
Sebastien GODARD [Sat, 13 Apr 2019 09:28:35 +0000 (11:28 +0200)]
sadf: PCP: Save RESTART records in PCP archive

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Add new flag FO_ITEM_LIST
Sebastien GODARD [Fri, 12 Apr 2019 16:29:50 +0000 (18:29 +0200)]
sadf: Add new flag FO_ITEM_LIST

This flag indicates that the linked list containing items names should
be created.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Add new flag FO_LC_NUMERIC_C
Sebastien GODARD [Fri, 12 Apr 2019 15:47:43 +0000 (17:47 +0200)]
sadf: Add new flag FO_LC_NUMERIC_C

This flag indicates that corresponding output format shall use a decimal
point, e.g. to be locale independant (SVG output) or compliant with
RFC7159 (JSON output).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Add a function prototype to each output format
Sebastien GODARD [Fri, 12 Apr 2019 15:45:29 +0000 (17:45 +0200)]
sadf: Add a function prototype to each output format

Each outpout format now defines the function used to display its
statistics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoMerge pull request #218 from danny-smit/217-add-umask-sysconfig-variable
GODARD Sebastien [Mon, 8 Apr 2019 15:57:21 +0000 (17:57 +0200)]
Merge pull request #218 from danny-smit/217-add-umask-sysconfig-variable

#217: add umask sysconfig variable for sa1 and sa2

5 years ago#217: add umask sysconfig variable for sa1 and sa2
Danny Smit [Mon, 8 Apr 2019 14:28:00 +0000 (16:28 +0200)]
#217: add umask sysconfig variable for sa1 and sa2

5 years agosadf: PCP: Add support for A_NET_SOFT activity
Sebastien GODARD [Sun, 7 Apr 2019 16:45:35 +0000 (18:45 +0200)]
sadf: PCP: Add support for A_NET_SOFT activity

Add metrics displayed by "sar -n SOFT" (network softnet statistics) to
PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Fix illegal result timestamp error
Sebastien GODARD [Sun, 7 Apr 2019 06:36:38 +0000 (08:36 +0200)]
sadf: PCP: Fix illegal result timestamp error

pmiWrite() function (from the PCP API) has a very nasty impact on
mktime().
Once pmiWrite has been called, subsequent mktime() calls will no longer
give the same result using the same input data, resulting in timestamps
that can be wrong because associated with a different timezone.
This patch tries to fix that.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_PWR_CPU activity
Sebastien GODARD [Sat, 6 Apr 2019 15:14:31 +0000 (17:14 +0200)]
sadf: PCP: Add support for A_PWR_CPU activity

Add metrics displayed by "sar -m CPU" (CPU frequency statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Fix CPU metrics definition
Sebastien GODARD [Sat, 6 Apr 2019 08:04:36 +0000 (10:04 +0200)]
sadf: PCP: Fix CPU metrics definition

CPU#1 is not necessarily selected by the user when PCP archive is
created. So don't use it to define per-cpu metrics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add all interrupts statistics to PCP archive
Sebastien GODARD [Sat, 6 Apr 2019 07:58:04 +0000 (09:58 +0200)]
sadf: PCP: Add all interrupts statistics to PCP archive

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Include pcp/impl.h file
Sebastien GODARD [Sat, 6 Apr 2019 07:11:19 +0000 (09:11 +0200)]
sadf: PCP: Include pcp/impl.h file

Fix "undefined reference to pmInDom_build() function" error that could
happen on some machines.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Save hostname in PCP archive
Sebastien GODARD [Sat, 6 Apr 2019 07:08:07 +0000 (09:08 +0200)]
sadf: PCP: Save hostname in PCP archive

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_SOCK6 activity
Sebastien GODARD [Sat, 6 Apr 2019 07:01:48 +0000 (09:01 +0200)]
sadf: PCP: Add support for A_NET_SOCK6 activity

Add metrics displayed by "sar -n SOCK6" (IPv6 network sockets
statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_SOCK activity
Sebastien GODARD [Sat, 6 Apr 2019 06:53:24 +0000 (08:53 +0200)]
sadf: PCP: Add support for A_NET_SOCK activity

Add metrics displayed by "sar -n SOCK" (network sockets statistics) to
PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_ICMP6 and A_NET_EICMP6 activities
Sebastien GODARD [Tue, 2 Apr 2019 16:40:30 +0000 (18:40 +0200)]
sadf: PCP: Add support for A_NET_ICMP6 and A_NET_EICMP6 activities

Add metrics displayed by "sar -n ICMP6" and "sar -n EICMP6" (ICMPv6
network statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_UDP6 activity
Sebastien GODARD [Sun, 31 Mar 2019 16:56:00 +0000 (18:56 +0200)]
sadf: PCP: Add support for A_NET_UDP6 activity

Add metrics displayed by "sar -n UDP6" (UDPv6 network statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_IP6 and A_NET_EIP6 activities
Sebastien GODARD [Sun, 31 Mar 2019 16:43:45 +0000 (18:43 +0200)]
sadf: PCP: Add support for A_NET_IP6 and A_NET_EIP6 activities

Add metrics displayed by "sar -n IP6" and "sar -n EIP6" (IPv6 network
statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_UDP activity
Sebastien GODARD [Sun, 31 Mar 2019 16:20:58 +0000 (18:20 +0200)]
sadf: PCP: Add support for A_NET_UDP activity

Add metrics displayed by "sar -n UDP" (UDP network statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_TCP and A_NET_ETCP activities
Sebastien GODARD [Sun, 31 Mar 2019 16:10:47 +0000 (18:10 +0200)]
sadf: PCP: Add support for A_NET_TCP and A_NET_ETCP activities

Add metrics displayed by "sar -n TCP" and "sar -n ETCP" (network TCP
statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_ICMP and A_NET_EICMP activities
Sebastien GODARD [Sun, 31 Mar 2019 15:56:05 +0000 (17:56 +0200)]
sadf: PCP: Add support for A_NET_ICMP and A_NET_EICMP activities

Add metrics displayed by "sar -n ICMP" and "sar -n EICMP" (network ICMP
statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Fix variable name
Sebastien GODARD [Sat, 30 Mar 2019 10:01:10 +0000 (11:01 +0100)]
sadf: Fix variable name

This is quite a silly error...

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Simplify code used to take into account timezone value
Sebastien GODARD [Sat, 30 Mar 2019 07:55:04 +0000 (08:55 +0100)]
sadf: PCP: Simplify code used to take into account timezone value

flags variable is already a global one. Don't need to pass it
explicitly.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Take into account timezone value
Sebastien GODARD [Fri, 29 Mar 2019 20:29:54 +0000 (21:29 +0100)]
sadf: PCP: Take into account timezone value

The user can choose to save data in PCP archive with timestamps in UTC
(by default) or in local time (when option -T is used).
Timezone value, which is saved in PCP archive, is set accordingly.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_IP and A_NET_EIP activities
Sebastien GODARD [Fri, 29 Mar 2019 06:34:30 +0000 (07:34 +0100)]
sadf: PCP: Add support for A_NET_IP and A_NET_EIP activities

Add metrics displayed by "sar -n IP" and "sar -n EIP" (network IP
statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: rename metric getatt -> getattr
Sebastien GODARD [Sun, 24 Mar 2019 14:16:50 +0000 (15:16 +0100)]
sadf: PCP: rename metric getatt -> getattr

This is the real name of this RPC call. Use it for NFS activity.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_NFSD activity
Sebastien GODARD [Sun, 24 Mar 2019 14:14:43 +0000 (15:14 +0100)]
sadf: PCP: Add support for A_NET_NFSD activity

Add metrics displayed by "sar -n NFSD" (NFS server statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_NFS activity
Sebastien GODARD [Sun, 24 Mar 2019 14:00:16 +0000 (15:00 +0100)]
sadf: PCP: Add support for A_NET_NFS activity

Add metrics displayed by "sar -n NFS" (NFS client statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_SERIAL activity
Sebastien GODARD [Sun, 24 Mar 2019 13:41:43 +0000 (14:41 +0100)]
sadf: PCP: Add support for A_SERIAL activity

Add metrics displayed by "sar -y" (serial lines statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Cosmetic fixes
Sebastien GODARD [Sat, 23 Mar 2019 17:48:18 +0000 (18:48 +0100)]
sadf: Cosmetic fixes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Define domain constants
Sebastien GODARD [Sat, 23 Mar 2019 11:13:08 +0000 (12:13 +0100)]
sadf: PCP: Define domain constants

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Simplify pcp_def_cpu_metrics() function
Sebastien GODARD [Sat, 23 Mar 2019 11:03:24 +0000 (12:03 +0100)]
sadf: PCP: Simplify pcp_def_cpu_metrics() function

Variable "first" not needed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_NET_DEV and A_NET_EDEV activities
Sebastien GODARD [Sat, 23 Mar 2019 10:58:25 +0000 (11:58 +0100)]
sadf: PCP: Add support for A_NET_DEV and A_NET_EDEV activities

Add metrics displayed by "sar -n DEV" and "sar -n EDEV" (network
interfaces statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_KTABLES activity
Sebastien GODARD [Wed, 20 Mar 2019 16:29:20 +0000 (17:29 +0100)]
sadf: PCP: Add support for A_KTABLES activity

Add metrics displayed by "sar -v" (kernel tables statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_PAGE activity
Sebastien GODARD [Wed, 20 Mar 2019 16:07:33 +0000 (17:07 +0100)]
sadf: PCP: Add support for A_PAGE activity

Add metrics displayed by "sar -B" (paging statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_IO activity
Sebastien GODARD [Wed, 20 Mar 2019 11:00:19 +0000 (12:00 +0100)]
sadf: PCP: Add support for A_IO activity

Add metrics displayed by "sar -b" (I/O and transfer rate statistics) to
PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_SWAP activity
Sebastien GODARD [Wed, 20 Mar 2019 10:28:10 +0000 (11:28 +0100)]
sadf: PCP: Add support for A_SWAP activity

Add metrics displayed by "sar -W" (swapping statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_IRQ activity
Sebastien GODARD [Wed, 20 Mar 2019 10:15:16 +0000 (11:15 +0100)]
sadf: PCP: Add support for A_IRQ activity

Add metric displayed by "sar -I SUM" (total number of interrupts per
second) to PCP archive.
Individual interrupts are not taken into account.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_MEMORY activity
Sebastien GODARD [Wed, 20 Mar 2019 09:47:23 +0000 (10:47 +0100)]
sadf: PCP: Add support for A_MEMORY activity

Add metrics displayed by "sar -r [ALL]" (memory statistics) to PCP
archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agopcp_def_metrics.c: Fix comment
Sebastien GODARD [Wed, 20 Mar 2019 09:44:57 +0000 (10:44 +0100)]
pcp_def_metrics.c: Fix comment

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar/sadc: Change variable name dis -> dish
Sebastien GODARD [Sun, 17 Mar 2019 14:56:24 +0000 (15:56 +0100)]
sar/sadc: Change variable name dis -> dish

Make it a bit longer to quiet LGTM.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf.c: Fix local variable hiding global one
Sebastien GODARD [Sun, 17 Mar 2019 14:54:49 +0000 (15:54 +0100)]
sadf.c: Fix local variable hiding global one

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadc.c: Remove unused global variable
Sebastien GODARD [Sun, 17 Mar 2019 14:54:10 +0000 (15:54 +0100)]
sadc.c: Remove unused global variable

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosar/sadf: Fix local variables hiding global ones.
Sebastien GODARD [Sat, 16 Mar 2019 13:51:07 +0000 (14:51 +0100)]
sar/sadf: Fix local variables hiding global ones.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agopidstat: Make pid_array_nr variable local
Sebastien GODARD [Sat, 16 Mar 2019 13:49:07 +0000 (14:49 +0100)]
pidstat: Make pid_array_nr variable local

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agompstat: Fix local variable hiding global one
Sebastien GODARD [Sat, 16 Mar 2019 13:47:06 +0000 (14:47 +0100)]
mpstat: Fix local variable hiding global one

cpu_nr and node_nr are global variable names. Don't use the same name
for local variables.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Change some variables scope
Sebastien GODARD [Sat, 16 Mar 2019 10:36:15 +0000 (11:36 +0100)]
iostat: Change some variables scope

Make iodev_nr and dlist_idx local variables (based on an LGTM alert).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoMerge branch 'odubaj-autofs-not-counting'
Sebastien GODARD [Sat, 16 Mar 2019 09:43:18 +0000 (10:43 +0100)]
Merge branch 'odubaj-autofs-not-counting'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoMerge branch 'autofs-not-counting' of https://github.com/odubaj/sysstat into odubaj...
Sebastien GODARD [Sat, 16 Mar 2019 09:14:57 +0000 (10:14 +0100)]
Merge branch 'autofs-not-counting' of https://github.com/odubaj/sysstat into odubaj-autofs-not-counting

5 years agoUpdate rd_stats.c
odubaj [Mon, 11 Mar 2019 09:17:24 +0000 (10:17 +0100)]
Update rd_stats.c

5 years agoUpdate count.c
odubaj [Mon, 11 Mar 2019 09:16:50 +0000 (10:16 +0100)]
Update count.c

removed memset() before sscanf() - not needed

5 years agosadc: Make sure nr of items are always counted for certain activities
Sebastien GODARD [Sat, 9 Mar 2019 07:47:04 +0000 (08:47 +0100)]
sadc: Make sure nr of items are always counted for certain activities

Commit f81fc24 modified sadc so that the number of items are counted
only for activities which are collected by sadc.
In fact certain activities need to be counted even if they are not
collected. This is the case for A_CPU: We need to know the number of CPU
for various reasons (from displaying the report header to saving it in
the header of a new saXX datafile).
So add a new flag (AO_ALWAYS_COUNTED) to indicate which activities
should always be counted, be they collected or not.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoMerge branch 'avoid-triggering-automounts' of https://github.com/odubaj/sysstat
Sebastien GODARD [Sat, 9 Mar 2019 07:25:45 +0000 (08:25 +0100)]
Merge branch 'avoid-triggering-automounts' of https://github.com/odubaj/sysstat

5 years agoFix #214: mpstat: JSON output should display "all" for global CPU use
Sebastien GODARD [Wed, 6 Mar 2019 17:55:52 +0000 (18:55 +0100)]
Fix #214: mpstat: JSON output should display "all" for global CPU use

Displaying "-1" for CPU number in mpstat's JSON output format is not
consistent with what mpstat uses for other options.
So display "all" instead.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat, mpstat: Fix JSON output when stopped by SIGINT
Sebastien GODARD [Sun, 3 Mar 2019 16:04:26 +0000 (17:04 +0100)]
iostat, mpstat: Fix JSON output when stopped by SIGINT

Remove extra comma in JSON output displayed by iostat and mpstat when
stopped by SIGINT.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoiostat: Fix missing "}" and "]" in JSON output when stopped by SIGINT
Sebastien GODARD [Sun, 3 Mar 2019 09:21:24 +0000 (10:21 +0100)]
iostat: Fix missing "}" and "]" in JSON output when stopped by SIGINT

Add a SIGINT handler to iostat so that JSON output can be ended properly
when the user presses Ctrl/C.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoMerge pull request #212 from hying-caritas/fix_mpstat_json_int
GODARD Sebastien [Sun, 3 Mar 2019 08:49:48 +0000 (09:49 +0100)]
Merge pull request #212 from hying-caritas/fix_mpstat_json_int

Fix missing "}" and "]" in JSON output when stopped by SIGINT

5 years agoFix missing "}" and "]" in JSON output when stopped by SIGINT
Huang Ying [Sun, 3 Mar 2019 06:11:29 +0000 (14:11 +0800)]
Fix missing "}" and "]" in JSON output when stopped by SIGINT

When mpstat is stopped by SIGINT, the JSON output will miss the
trailing "}" and "]" because SIGINT handler isn't called.  Fixed this
via setup SIGINT handler for JSON output too.

5 years agoignoring autofs as real filesystem by counting number of valid filesystems and gettin...
Ondrej Dubaj [Thu, 28 Feb 2019 14:29:08 +0000 (15:29 +0100)]
ignoring autofs as real filesystem by counting number of valid filesystems and getting all valid filesystems

5 years agosadf: PCP: Create a separate file for metrics definition
Sebastien GODARD [Wed, 27 Feb 2019 11:10:23 +0000 (12:10 +0100)]
sadf: PCP: Create a separate file for metrics definition

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_CPU activity
Sebastien GODARD [Wed, 27 Feb 2019 10:37:59 +0000 (11:37 +0100)]
sadf: PCP: Add support for A_CPU activity

Add metrics displayed by "sar -u [ALL]" (CPU statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoavoiding triggering automounts, bug #1670060
Ondrej Dubaj [Tue, 26 Feb 2019 07:36:14 +0000 (08:36 +0100)]
avoiding triggering automounts, bug #1670060

5 years agosadf: PCP: Add missing #ifdef statement
Sebastien GODARD [Sat, 23 Feb 2019 17:45:05 +0000 (18:45 +0100)]
sadf: PCP: Add missing #ifdef statement

pmiWrite() function only exists if PCP library exists.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add support for A_PCSW activity
Sebastien GODARD [Sat, 23 Feb 2019 17:38:34 +0000 (18:38 +0100)]
sadf: PCP: Add support for A_PCSW activity

Add metrics displayed by "sar -w" (task creation and context switch
statistics) to PCP archive.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: Don't test for activities available in file if only the header
Sebastien GODARD [Sat, 23 Feb 2019 16:13:23 +0000 (17:13 +0100)]
sadf: Don't test for activities available in file if only the header
needs to be displayed

When only the header needs to be displayed with an output format like
e.g. XML then don't test for activities available in file.
E.g.:
sadc -S A_NULL,A_QUEUE datafile 1 2
Then "sadf -Hx datafile" should not display error message "Requested
activities not available in file".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Initial support for A_QUEUE activity
Sebastien GODARD [Sat, 23 Feb 2019 10:15:25 +0000 (11:15 +0100)]
sadf: PCP: Initial support for A_QUEUE activity

This is the initial (and experimental) support for creating PCP archives
by sadf.
I used the work made by Steve Kay (@stevekay) to create this patch: See
issue #136.
At the present time, only A_QUEUE activity is supported (i.e. the
metrics displayed by "sar -q").

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoPCP: Update Makefile
Sebastien GODARD [Sat, 23 Feb 2019 10:06:23 +0000 (11:06 +0100)]
PCP: Update Makefile

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agosadf: PCP: Add new options "-l" and "pcparchive="
Sebastien GODARD [Sat, 23 Feb 2019 09:41:54 +0000 (10:41 +0100)]
sadf: PCP: Add new options "-l" and "pcparchive="

PCP (Performance CoPilot) will be a new output format for sadf.
Add new option "-l" to select this format. The keyword "pcparchive="
used with option -O will indicate the name of the PCP archive file to
create, e.g.:

$ sadf -l -O pcparchive=foo /var/log/sa/saXX (...)

If no archive file is specified then sadf will use the same name
as the sar data file.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoPCP: Add option --disable-pcp to configuration scripts
Sebastien GODARD [Sat, 23 Feb 2019 09:15:55 +0000 (10:15 +0100)]
PCP: Add option --disable-pcp to configuration scripts

PCP (Performance CoPilot) will be suported by default by sysstat if PCP
development libraries are available.
Add a new option (--disable-pcp) to 'configure' script to allow user to
disable PCP support even if PCP libraries are installed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agoconfigure: Don't check for sensors library if --disable-sensors used
Sebastien GODARD [Sat, 23 Feb 2019 09:01:34 +0000 (10:01 +0100)]
configure: Don't check for sensors library if --disable-sensors used

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
5 years agojson_stats.h: Replace XML -> JSON
Sebastien GODARD [Sat, 23 Feb 2019 08:59:54 +0000 (09:59 +0100)]
json_stats.h: Replace XML -> JSON

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