Sebastien GODARD [Wed, 7 Jun 2017 12:01:28 +0000 (14:01 +0200)]
Add unit to areq-sz values when --human option has been used
When iostat and sar display areq-sz, rareq-sz and wareq-sz fields, they
also display the unit if the user has entered option --human.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 7 Jun 2017 11:47:04 +0000 (13:47 +0200)]
Define constants for metrics units
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 7 Jun 2017 09:38:41 +0000 (11:38 +0200)]
iostat: Remove trailing colon following "Device" field name
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 7 Jun 2017 09:29:44 +0000 (11:29 +0200)]
sadf: Update DTD/XSD documents
Take into account new fields names for "sar -d".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 7 Jun 2017 09:13:54 +0000 (11:13 +0200)]
sar: Update manual page
Update fields names and new units used.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 7 Jun 2017 09:02:22 +0000 (11:02 +0200)]
Apply "sar -d" changes to sadf
Replace "rd_sec/s" and "wr_sec/s" fields (expressed in sectors) with
"rkB/s" and "wkB/s" (expressed in kilobytes).
Replace "avgrq-sz" field (expressed in sectors) with "areq-sz" (expressed
in kilobytes).
Rename "avgqu-sz" field to "aqu-sz".
Original field names are still present in sadf's XML and JSON output to
keep backward compatibility.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 7 Jun 2017 08:12:42 +0000 (10:12 +0200)]
sar: Update "sar -d" output contents
Replace "rd_sec/s" and "wr_sec/s" fields with "rkB/s" and "wkB/s". These
fields are now expressed in kilobytes instead of sectors. This also make
them consistent with iostat's output.
Replace "avgrq-sz" field with "areq-sz". This field is now expressed in
kilobytes instead of sectors and make it consistent with iostat's output.
Rename "avgqu-sz" field to "aqu-sz" to make it consistent with iostat's
output.
Notes:
1) All those changes don't break the format of sar's binary data files.
The values for rkB/s, wkB/s and areq-sz fields are still saved as a
number of sectors. Only the output displayed onto the screen changes.
2) I plan to keep the original field names (in addition to the new ones)
in sadf's XML and JSON output to keep backward compatibility. This means
you will still get fields named rd_sec, wr_sec and avgrq-sz (expressed
in sectors) in XML and JSON output in addition to the new fields rkB,
wkB and areq-sz expressed in kB.
Field avgqu-sz will still exist too.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 5 Jun 2017 19:08:17 +0000 (21:08 +0200)]
iostat: JSON output now depends on options used
Make JSON output take into account the options used with iostat.
This fixes a problem where some fields had a name like rkB/s or wkB/s
even when data were expressed in MB. In this example, the name will now
be rMB/s or wMB/s when data are expressed in MB.
This patch renames several fields, breaking backward compatibility that
I first hoped to keep. However all fields are now consistent with
iostat's standard report.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 4 Jun 2017 13:50:28 +0000 (15:50 +0200)]
iostat: Update manual page
Explain new metrics that have been added.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 4 Jun 2017 13:36:55 +0000 (15:36 +0200)]
iostat: Express requests average size in kB, not sectors
Since field "avgrq-sz" was renamed to "areq-sz", also change its unit:
This is now a number of kilobytes, and not sectors.
JSON output keeps both fields for backward compatibility: "avgrq-sz"
expressed in sectors, and "areq-sz" expressed in kilobytes.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 3 Jun 2017 14:22:31 +0000 (16:22 +0200)]
Update iostat manual page (option -s)
Explain iostat's new option "-s".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 3 Jun 2017 13:35:36 +0000 (15:35 +0200)]
iostat: Add new metrics in extended statistics output
Add the following metrics to iostat -x output:
%rrqm: percentage of read requests merged
%wrqm: percentage of write requests merged
rareq-sz: average size (in sectors) of the read requests
wareq-sz: average size (in sectors) of the write requests
The metric previously known as "avgqu-sz" has been renamed to "aqu-sz"
(except in the JSON output where the name remains unchanged).
The metric previously known as "avgrq-sz" has been renamed to "areq-sz"
(except in the JSON output where the name remains unchanged).
The "await" metric is no longer displayed in the default output (you
have separate values for reads and writes: "r_await", "w_await"),
except in the short output version where it replaces "r_await" and
"w_await".
Sample output for "iostat -xd":
Device: r/s w/s rkB/s wkB/s rrqm/s wrqm/s
%rrqm %wrqm r_await w_await aqu-sz rareq-sz wareq-sz svctm %util
sda 4.52 1.46 122.57 21.55 1.16 0.96
20.39 39.75 12.42 56.40 0.14 54.22 29.52 2.60 1.55
The short output version (using switch -s) merges data for reads and
writes (when relevant).
Sample output for "iostat -xds":
Device: tps kB/s rqm/s await aqu-sz areq-sz %util
sda 5.89 141.65 2.09 23.12 0.14 48.14 1.53
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 3 Jun 2017 08:53:13 +0000 (10:53 +0200)]
iostat: Add new "-s" switch
This switch will tell iostat to display a short version of its output.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 3 Jun 2017 08:39:38 +0000 (10:39 +0200)]
Update year in (C) message
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 2 Jun 2017 07:38:40 +0000 (09:38 +0200)]
Cast variables to target type before use
This patch casts some variables to target type before they are used.
Without this patch, problems may happen (like issue #150) notably on 32
bit architectures where sizeof(long) is different from sizeof(long
long).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 27 May 2017 13:58:54 +0000 (15:58 +0200)]
SVG: Define a max number of horizontal lines for the background grid
When a graph for percentage values is displayed, a background grid with
horizontal lines for 25%, 50%, 75% and 100% is drawn.
This works well except when sadf gets a bogus value for the maximum
value reached by the metric. For example, if sadf thinks that the max
value is
123456789% then a high number of horizontal lines will be
drawn, resulting in a huge SVG file that can weigh hundreds of megabytes
or more (NB: There are metrics which are percentage values that can go
above 100%, e.g., %commit).
This patch fixes that by setting a limit for the number of horizontal
lines that can be drawn.
See issue #150.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 24 May 2017 13:21:49 +0000 (15:21 +0200)]
Update sysstat's manual pages
Update default colors used by sysstat commands in manual pages.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 24 May 2017 12:03:10 +0000 (14:03 +0200)]
Fix #151: sar: Default colors are suboptimal for light backgrounds
Default colors are suboptimal for terminals with light backgrounds.
Change them so that they can usable on both dark and light terminal
backgrounds.
Reported-by: Peter Schiffer
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 24 May 2017 09:23:03 +0000 (11:23 +0200)]
Fix #153: sar program buffer overflow when options -s or -e specified
When a short time format is used with sar's options -s or -e (e.g.,
sar -s 04:00), 5 characters are copied by strncpy in parse_timestamp
to timestamp variable. Unfortunately these 5 characters do not contain
the termination, therefore the following strcat appends after the
next "random" null byte. Therefore writing beyond the end of timestamp.
This patch tries to prevent this by explicitly terminating.
Debian bug #863197.
Reported-by: Robert Luberda
Signed-off-by: Bernhard Ubelacker <bernhardu@mailbox.org>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 14 May 2017 16:52:06 +0000 (18:52 +0200)]
Fix CID 144609: Ressource leak
In SREALLOC() macro: Old pointer was not freed when a realloc() had
happened.
Bug introduced by commit
569378e.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 10 May 2017 14:12:01 +0000 (16:12 +0200)]
Starting sysstat 11.5.7
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>