]> granicus.if.org Git - sysstat/log
sysstat
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>
7 years agoMake sar's -I option work again with sadf
Sebastien GODARD [Sun, 18 Dec 2016 13:40:22 +0000 (14:40 +0100)]
Make sar's -I option work again with sadf

Because of commit e530472, sar's -I option could no longer be used with
sadf (e.g., sadf -- -I SUM). This patch fixes the problem.

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

Add a new output format to sadf to display statistics saved in a binary
data file in raw format. Counters values are displayed "as is", without
trying to calculate an average value over the elapsed time interval.
This is something I have selfishly wanted to have for a long time now,
mainly for debugging purpose.
This first patch adds all the necessary global functions, and implements
the raw format only for CPU and task creation/system switching
statistics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix comments in sadf_misc.c
Sebastien GODARD [Wed, 14 Dec 2016 10:02:06 +0000 (11:02 +0100)]
Fix comments in sadf_misc.c

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #137: Fix incorrect gcc warning in svg_stats.c
Sebastien GODARD [Mon, 12 Dec 2016 16:45:30 +0000 (17:45 +0100)]
Fix #137: Fix incorrect gcc warning in svg_stats.c

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Better handle dynamically registered devices (SVG graphs)
Sebastien GODARD [Fri, 9 Dec 2016 10:52:18 +0000 (11:52 +0100)]
sar: Better handle dynamically registered devices (SVG graphs)

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Better handle dynamically registered devices
Sebastien GODARD [Fri, 9 Dec 2016 10:44:42 +0000 (11:44 +0100)]
sar: Better handle dynamically registered devices

When a newly registered device (network interface or disk) was
supernumerary (i.e. there was no slot left in the list to store it), it
would take the place of another device in the list. This other device
would also appear as new and its counters would jump as if starting from
zero. This patch fixes that.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate sadf manual page
Sebastien GODARD [Tue, 6 Dec 2016 10:39:19 +0000 (11:39 +0100)]
Update sadf manual page

Indicate that a range of CPU can be selected with option -P.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoAdd Coverity badge to README file
Sebastien GODARD [Tue, 6 Dec 2016 09:06:24 +0000 (10:06 +0100)]
Add Coverity badge to README file

Add a link to Coverity Scan results.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoStarting sysstat 11.5.4
Sebastien GODARD [Tue, 6 Dec 2016 08:33:28 +0000 (09:33 +0100)]
Starting sysstat 11.5.4

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosysstat-11.5.3 v11.5.3
Sebastien GODARD [Tue, 6 Dec 2016 08:23:29 +0000 (09:23 +0100)]
sysstat-11.5.3

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

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate NLS translations
Sebastien GODARD [Tue, 6 Dec 2016 08:02:52 +0000 (09:02 +0100)]
Update NLS translations

Sync with The Translation Project.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSort keywords definition in mpstat and sadc manual pages
Sebastien GODARD [Mon, 5 Dec 2016 16:51:57 +0000 (17:51 +0100)]
Sort keywords definition in mpstat and sadc manual pages

Sort keywords associated with mpstat's option -I and sadc's option -S.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSort keywords in sar manual page
Sebastien GODARD [Mon, 5 Dec 2016 16:50:54 +0000 (17:50 +0100)]
Sort keywords in sar manual page

Sort keywords associated with option -n of sar.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #134: Include <locale.h> to define setlocale() function
Sebastien GODARD [Mon, 28 Nov 2016 16:49:27 +0000 (17:49 +0100)]
Fix #134: Include <locale.h> to define setlocale() function

iostat and mpstat needs to include locale.h file to define setlocale()
function and LC_NUMERIC variable name.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar/mpstat: Update help and usage messages
Sebastien GODARD [Wed, 23 Nov 2016 10:24:12 +0000 (11:24 +0100)]
sar/mpstat: Update help and usage messages

Tell that a cpu or interrupts list can be entered with options -I and
-P.
Keyword XALL no longer exists with sar's option -I.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar/mpstat: Update manual pages
Sebastien GODARD [Wed, 23 Nov 2016 10:20:52 +0000 (11:20 +0100)]
sar/mpstat: Update manual pages

Tell that a cpu or interrupts list (individual values separated with a
comma, or range of values) can be entered with options -I and -P.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar/mpstat: Allow selection of a range of IRQ/CPU
Sebastien GODARD [Sun, 20 Nov 2016 18:06:54 +0000 (19:06 +0100)]
sar/mpstat: Allow selection of a range of IRQ/CPU

Update sar so that the user can now select a range of interrupts with
option -I (in addition to selecting individual interrupts).
E.g. "sar -I 2,5,10-16,400- (...)"
Keyword XALL is removed with option -I.
Keyword ALL selects all possible interrupts, including the sum of them.

Also update mpstat so that the user can select a range of processors
with option -P (in addition to selecting individual processors).
E.g. "mpstat -P all,0,5-7 (...)"

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Rework option -P parsing
Sebastien GODARD [Sun, 20 Nov 2016 09:31:41 +0000 (10:31 +0100)]
sar: Rework option -P parsing

It is no longer possibe to specify individual CPUs and also to use
keyword ALL together (e.g. sar -P ALL,0,2) which is meaningless.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Rework option -P parsing
Sebastien GODARD [Sun, 20 Nov 2016 09:28:35 +0000 (10:28 +0100)]
mpstat: Rework option -P parsing

It is no longer possibe to specify individual CPUs and also to use
keyword ALL together (e.g. mpstat -P ALL,0,2) which is meaningless.
Also separate options "-P ALL" from "-P ON".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Remove set_bitmap() function
Sebastien GODARD [Sun, 20 Nov 2016 08:57:43 +0000 (09:57 +0100)]
sar: Remove set_bitmap() function

No need for a specific function since we can use memset() statement.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Allow selection of a range of CPU
Sebastien GODARD [Sat, 19 Nov 2016 16:53:47 +0000 (17:53 +0100)]
sar: Allow selection of a range of CPU

Update sar so that the user can now select a range of CPUs with option -P
(in addition to selecting an individual CPU). It is also possible to
select CPU "all" which is the global average among all CPUs (not to be
confused with the "ALL" keyword which selects all the CPUs of the
machine).

E.g.:

sar -P 0,3-5,12- Selects CPUs #0, #3, #4, #5, and all the CPUs
from #12 and following.

sar -P all,1 Select CPU #1 and the global average CPU value
among all processors.

This patch will be reworked to cover mpstat.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRework code used to display sizes in human readable format
Sebastien GODARD [Fri, 18 Nov 2016 14:17:09 +0000 (15:17 +0100)]
Rework code used to display sizes in human readable format

Move common code from cprintf_u64() and cprintf_f() functions into a
separate function.
Optimize output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar, iostat, pidstat, tapestat, cifsiostat: Update manual pages
Sebastien GODARD [Thu, 17 Nov 2016 13:46:44 +0000 (14:46 +0100)]
sar, iostat, pidstat, tapestat, cifsiostat: Update manual pages

Document new "--human" option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Small fix in manual page
Sebastien GODARD [Thu, 17 Nov 2016 13:29:23 +0000 (14:29 +0100)]
iostat: Small fix in manual page

Option -H doesn't enable option -h by default.
Also put option -H at the right place.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Option -h also imply --human
Sebastien GODARD [Thu, 17 Nov 2016 11:28:55 +0000 (12:28 +0100)]
iostat: Option -h also imply --human

Using option -h with iostat will also display sizes in human readable
format.
Option -h is already intended to make a report easier to read by a human
(especially when devices names are very long).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agocifsiostat: Display values in human readable format
Sebastien GODARD [Thu, 17 Nov 2016 11:26:41 +0000 (12:26 +0100)]
cifsiostat: Display values in human readable format

Add new "--human" option to display sizes in human readable format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agotapestat: Display values in human readable format.
Sebastien GODARD [Thu, 17 Nov 2016 11:17:26 +0000 (12:17 +0100)]
tapestat: Display values in human readable format.

Add new "--human" option used to display sizes in human redable format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Display values in human readable format
Sebastien GODARD [Thu, 17 Nov 2016 11:07:14 +0000 (12:07 +0100)]
iostat: Display values in human readable format

Add new "--human" option.
Used to display sizes in human readable format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agopidstat: Display values in human readable format
Sebastien GODARD [Thu, 17 Nov 2016 10:43:26 +0000 (11:43 +0100)]
pidstat: Display values in human readable format

Add new "--human" option.
Used to display sizes in human readable format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoCosmetic fix
Sebastien GODARD [Thu, 17 Nov 2016 10:07:27 +0000 (11:07 +0100)]
Cosmetic fix

Fix comments in common.c and rename variable to be consistent
(width -> wi).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Display values in human readable format
Sebastien GODARD [Thu, 17 Nov 2016 09:58:03 +0000 (10:58 +0100)]
sar: Display values in human readable format

Take into account new "--human" option to display values in human
readable format.
Functions cprintf_f() cprintf_u64() are modified to add the unit after
the value if requested.
Only a few options are concerned for sar.
Other commands are updated too, but the option will be activated in
separate patches.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoRFE #112: sar: Add --human option
Sebastien GODARD [Thu, 17 Nov 2016 09:54:33 +0000 (10:54 +0100)]
RFE #112: sar: Add --human option

This option will enable the user to display values (sizes) in human
readable format (e.g. 12k, 1.23M, 2.84G, etc.)

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate sadf manual page
Sebastien GODARD [Tue, 15 Nov 2016 15:35:49 +0000 (16:35 +0100)]
Update sadf manual page

Explain new "showidle" option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Add new option: "showidle"
Sebastien GODARD [Tue, 15 Nov 2016 14:44:07 +0000 (15:44 +0100)]
SVG: Add new option: "showidle"

Add a new option ("showidle", which can be selected with sadf's switch
-O) that tells sadf to also display idle values in CPU SVG graphs.

Eg.: sadf -g -O showidle -P ALL /var/log/sa/saDD -- -u ALL > graph.svg

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