]> granicus.if.org Git - sysstat/log
sysstat
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>
7 years agoCosmetic change in pr_stat.c
Sebastien GODARD [Tue, 15 Nov 2016 14:26:41 +0000 (15:26 +0100)]
Cosmetic change in pr_stat.c

Remove one indentation.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUpdate lsm file
Sebastien GODARD [Mon, 14 Nov 2016 13:41:22 +0000 (14:41 +0100)]
Update lsm file

Make sure that LSM file is compliant with what is expected by the Linux
Software Map database.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Change some colors to make graphs easier to distinguish
Sebastien GODARD [Mon, 14 Nov 2016 13:34:39 +0000 (14:34 +0100)]
SVG: Change some colors to make graphs easier to distinguish

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoSVG: Fix comments in svg_stats.c file
Sebastien GODARD [Mon, 14 Nov 2016 13:14:27 +0000 (14:14 +0100)]
SVG: Fix comments in svg_stats.c file

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Update DTD and XSD documents
Sebastien GODARD [Mon, 14 Nov 2016 13:02:57 +0000 (14:02 +0100)]
sadf: Update DTD and XSD documents

Update DTD and XSD documents to take into account new sar metric "free
available memory".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Update manual page
Sebastien GODARD [Sat, 12 Nov 2016 17:33:38 +0000 (18:33 +0100)]
sar: Update manual page

Explain new "available free memory" metric in sar's manual page.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMove available free memory metric into default -r output
Sebastien GODARD [Sat, 12 Nov 2016 17:21:33 +0000 (18:21 +0100)]
Move available free memory metric into default -r output

Move new "available free memory" metric into the default "sar -r"
output. (It was previously displayed with "sar -r ALL").
Update sar and sadf commands accordingly.
See comments in issue #133.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Take into account new sar metric (available free memory)
Sebastien GODARD [Fri, 11 Nov 2016 15:01:29 +0000 (16:01 +0100)]
sadf: Take into account new sar metric (available free memory)

Available free memory metric is added to the various output formats
displayed by sadf.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoClose #133: sar: Provide available free memory
Sebastien GODARD [Fri, 11 Nov 2016 14:09:46 +0000 (15:09 +0100)]
Close #133: sar: Provide available free memory

This patch adds a new metric to sar: Available free memory.
It can be displayed with "sar -r ALL".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoStarting sysstat 11.5.3
Sebastien GODARD [Fri, 4 Nov 2016 09:05:45 +0000 (10:05 +0100)]
Starting sysstat 11.5.3

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosysstat-11.5.2 v11.5.2
Sebastien GODARD [Fri, 4 Nov 2016 08:59:57 +0000 (09:59 +0100)]
sysstat-11.5.2

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

NOTE: Stable versions (11.2.8 and 11.4.2) 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.2
but not the new features.

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

Sync with The Translation Project.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMerge branch 'leitao-master'
Sebastien GODARD [Mon, 31 Oct 2016 17:18:57 +0000 (18:18 +0100)]
Merge branch 'leitao-master'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Improve cpuinfo read for POWER architecture
Breno Leitao [Mon, 31 Oct 2016 13:23:59 +0000 (09:23 -0400)]
sar: Improve cpuinfo read for POWER architecture

Currently CPU frequency is not being read properly on POWER archicture.
It shows the frequency as:
  # sar -m CPU 1 5
...
  06:30:28 AM     CPU       MHz
  06:30:36 AM     all      0.00

This is caused because /proc/cpuinfo is differently between Intel and
POWER.
This patch simply fix the parsing function (read_cpuinfo).

Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
7 years agosar: Add softnet statistics (part 9): SVG format
Sebastien GODARD [Mon, 31 Oct 2016 07:46:32 +0000 (08:46 +0100)]
sar: Add softnet statistics (part 9): SVG format

This patch adds SVG output format for softnet statistics.
This format can be displayed with sadf's option -g.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Add softnet statistics (part 8): Update documentation
Sebastien GODARD [Sat, 29 Oct 2016 15:06:12 +0000 (17:06 +0200)]
sar: Add softnet statistics (part 8): Update documentation

Update sar's manual page to document softnet metrics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Add softnet statistics (part 7): Update XSD and DTD documents
Sebastien GODARD [Sat, 29 Oct 2016 14:30:08 +0000 (16:30 +0200)]
sar: Add softnet statistics (part 7): Update XSD and DTD documents

Update XSD and DTD documents to take into account new softnet
statistics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Add softnet statistics (part 6): XML output
Sebastien GODARD [Sat, 29 Oct 2016 14:04:02 +0000 (16:04 +0200)]
sar: Add softnet statistics (part 6): XML output

This patch adds XML output format for softnet statistics.
This format can be displayed with sadf's option -x.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Add softnet statistics (part 5): JSON output
Sebastien GODARD [Sat, 29 Oct 2016 13:38:58 +0000 (15:38 +0200)]
sar: Add softnet statistics (part 5): JSON output

This patch adds JSON output format for softnet statistics.
This format can be displayed with sadf's option -j.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: softnet stats: Remove unneeded variables initialization
Sebastien GODARD [Sat, 29 Oct 2016 13:09:05 +0000 (15:09 +0200)]
sadf: softnet stats: Remove unneeded variables initialization

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Add softnet statistics (part 4): ppc and CSV output formats
Sebastien GODARD [Fri, 28 Oct 2016 16:27:00 +0000 (18:27 +0200)]
sar: Add softnet statistics (part 4): ppc and CSV output formats

This patch adds ppc and database (CSV) output formats for softnet
statistics. These formats are displayed using sadf's options -p and -d.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Add softnet statistics (part 3): Display statistics
Sebastien GODARD [Fri, 28 Oct 2016 15:31:14 +0000 (17:31 +0200)]
sar: Add softnet statistics (part 3): Display statistics

Update sar to display softnet statistics collected by sadc.
Also compute global statistics among all CPU (though these data are not
part of /proc/net/softnet_stat file).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years ago/proc/vmstat fix for Linux 4.8
Sebastien GODARD [Fri, 28 Oct 2016 14:48:07 +0000 (16:48 +0200)]
/proc/vmstat fix for Linux 4.8

The 4.8 kernel has some changes in /proc/vmstat which cause sysstat to
report zero values for {pgscank,pgscand}/s in sar -B.  The attached
patch fixes this for 4.8 while retaining compatibility with older
kernels.

Signed-off-by: Shantanu Goel <sgoel01@yahoo.com>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMerge branch 'dnarc-increase_procname_size'
Sebastien GODARD [Fri, 21 Oct 2016 14:22:10 +0000 (16:22 +0200)]
Merge branch 'dnarc-increase_procname_size'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMerge branch 'increase_procname_size' of https://github.com/dnarc/sysstat into dnarc...
Sebastien GODARD [Fri, 21 Oct 2016 14:16:15 +0000 (16:16 +0200)]
Merge branch 'increase_procname_size' of https://github.com/dnarc/sysstat into dnarc-increase_procname_size

7 years agompstat, iostat: Use decimal point for FP values in JSON output
Sebastien GODARD [Fri, 21 Oct 2016 13:46:44 +0000 (15:46 +0200)]
mpstat, iostat: Use decimal point for FP values in JSON output

This patch sets LC_NUMERIC variable to "C" to make sure JSON output (as
displayed by mpstat and iostat commads) is locale-independent and
floating-point values use a decimal point.
This should make JSON output compliant with RFC7159.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #128: Use decimal point for FP values in JSON output
Sebastien GODARD [Fri, 21 Oct 2016 12:52:04 +0000 (14:52 +0200)]
Fix #128: Use decimal point for FP values in JSON output

This patch sets LC_NUMERIC variable to "C" to make sure JSON output (as
displayed by sadf -j) is locale-independent and floating-point values
use a decimal point.
This should make JSON output compliant with RFC7159.

Reported-by: @andy-maier
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoCheck for existence of sys/param.h before using Posix constants.
Mike Winter [Wed, 19 Oct 2016 19:01:23 +0000 (13:01 -0600)]
Check for existence of sys/param.h before using Posix constants.

Modify tapestat to use the same checks as pidstat.

7 years agoUse system constants for process name length and username length.
Mike Winter [Tue, 18 Oct 2016 17:24:45 +0000 (11:24 -0600)]
Use system constants for process name length and username length.

7 years agosar: Add softnet statistics (part 2): Read statistics
Sebastien GODARD [Sun, 16 Oct 2016 09:54:10 +0000 (11:54 +0200)]
sar: Add softnet statistics (part 2): Read statistics

This patch read softnet statistics from the /proc/net/softnet_stat file.
Softnet stats will be collected by default by sadc: So set AO_COLLECTED
flag in corresponding activity structure.
Also metrics' type is unsigned int (%x) and not unsigned long long.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Add softnet statistics (part 1): Basic definitions and structures
Sebastien GODARD [Fri, 14 Oct 2016 13:35:18 +0000 (15:35 +0200)]
sar: Add softnet statistics (part 1): Basic definitions and structures

Add new switch (-n SOFT) to sar. This option will tell sar to parse
/proc/net/softnet_stat file and display corresponding software-based
network processing statistics.
This first patch defines the needed structures, constants and functions
prototypes.
sar's help message is also updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agopidstat: Use either short or full command line when looking for a pattern
Sebastien GODARD [Fri, 7 Oct 2016 12:41:23 +0000 (14:41 +0200)]
pidstat: Use either short or full command line when looking for a pattern

Use either the command name string or the full command line when looking
for a substring with options -C or -G.
The full command line is used if option -l has been entered, otherwise we
use the short command name string.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoUse TIMESTAMP_LEN constant for timestamp buffers
Sebastien GODARD [Mon, 3 Oct 2016 15:10:31 +0000 (17:10 +0200)]
Use TIMESTAMP_LEN constant for timestamp buffers

Several buffers were used to hold timestamps, with different sizes
(sometimes 16, 32 or 64 characters).
Now define and use a single size for all of them (TIMESTAMP_LEN).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMerge branch 'msekletar-korean-timestamp'
Sebastien GODARD [Sun, 2 Oct 2016 16:26:19 +0000 (18:26 +0200)]
Merge branch 'msekletar-korean-timestamp'

7 years agoMerge branch 'korean-timestamp' of https://github.com/msekletar/sysstat into msekleta...
Sebastien GODARD [Sun, 2 Oct 2016 16:12:49 +0000 (18:12 +0200)]
Merge branch 'korean-timestamp' of https://github.com/msekletar/sysstat into msekletar-korean-timestamp

7 years agosar: make buffers that hold timestamps bigger
Michal Sekletar [Fri, 30 Sep 2016 16:05:44 +0000 (18:05 +0200)]
sar: make buffers that hold timestamps bigger

On systems that use Korean UTF-8 locale sar will not print timestamp
because there is not enough space in the buffer.

I bumped buffer size to 64 bytes because I figured out that 32 bytes is
still not enough to print out timestamp when using some glibc supported
locales.

$ LC_TIME=ko_KR.UTF-8 ./sar 1 1

Before:
Linux 4.7.2-201.fc24.x86_64 (morgoth.usersys.redhat.com)        2016년 09월 30일   _x86_64_        (4 CPU)

                CPU     %user     %nice   %system   %iowait    %steal     %idle
                all      4.51      0.00      2.51      0.00      0.00     92.98
Average:        all      4.51      0.00      2.51      0.00      0.00     92.98

After:
Linux 4.7.2-201.fc24.x86_64 (morgoth.usersys.redhat.com)   2016년 09월 30일   _x86_64_        (4 CPU)

18시 18분 36초     CPU     %user     %nice   %system   %iowait    %steal     %idle
18시 18분 37초     all      3.76      0.00      2.26      0.00      0.00     93.98
Average:        all      3.76      0.00      2.26      0.00      0.00     93.98

7 years agoStarting sysstat 11.5.2
Sebastien GODARD [Fri, 23 Sep 2016 13:28:11 +0000 (15:28 +0200)]
Starting sysstat 11.5.2

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosysstat-11.5.1 v11.5.1
Sebastien GODARD [Fri, 23 Sep 2016 13:21:22 +0000 (15:21 +0200)]
sysstat-11.5.1

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

NOTE: Stable versions (11.2.7 and 11.4.1) 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.1
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoNLS: Sync with translation project
Sebastien GODARD [Fri, 23 Sep 2016 13:01:17 +0000 (15:01 +0200)]
NLS: Sync with translation project

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Update manual page
Sebastien GODARD [Wed, 14 Sep 2016 14:11:52 +0000 (16:11 +0200)]
mpstat: Update manual page

Explain new "-o JSON" option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoCosmetic fixes
Sebastien GODARD [Wed, 14 Sep 2016 14:05:41 +0000 (16:05 +0200)]
Cosmetic fixes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Display hard/soft interrupts in plain or JSON format
Sebastien GODARD [Wed, 14 Sep 2016 14:01:32 +0000 (16:01 +0200)]
mpstat: Display hard/soft interrupts in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Display total nr of interrupts in plain or JSON format
Sebastien GODARD [Wed, 14 Sep 2016 09:01:48 +0000 (11:01 +0200)]
mpstat: Display total nr of interrupts in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Display CPU statistics in plain or JSON format
Sebastien GODARD [Wed, 14 Sep 2016 08:31:39 +0000 (10:31 +0200)]
mpstat: Display CPU statistics in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Display report header in plain or JSON format
Sebastien GODARD [Wed, 14 Sep 2016 07:03:54 +0000 (09:03 +0200)]
mpstat: Display report header in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agompstat: Add "-o JSON" option
Sebastien GODARD [Wed, 14 Sep 2016 07:00:01 +0000 (09:00 +0200)]
mpstat: Add "-o JSON" option

This option will enable the user to display mpstat statistics in JSON
format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #125: pidstat omits kernel threads when using -l option
Sebastien GODARD [Mon, 5 Sep 2016 15:37:53 +0000 (17:37 +0200)]
Fix #125: pidstat omits kernel threads when using -l option

When option -l is used with pidstat, kernel threads don't appear
in output. This is because the kernel thread's command line (as
read from /proc/#/cmdline) is empty and pidstat wrongly considered that
the thread had terminated. This patch fixes this.

Reported-by: Andrew Theurer
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix fields list displayed by sadf -d for filesystem activity
Sebastien GODARD [Mon, 29 Aug 2016 14:13:37 +0000 (16:13 +0200)]
Fix fields list displayed by sadf -d for filesystem activity

sadf -d (which displays the contents of a datafile in CSV) always
displayed the following line

FILESYSTEM;MBfsfree;MBfsused;%fsused;%ufsused;Ifree;Iused;%Iused

for filesystems statistics, even when the mountpoint name was requested
by the user (with "-F MOUNT").
With this patch, sadf will now print

MOUNTPOINT;MBfsfree;MBfsused;%fsused;%ufsused;Ifree;Iused;%Iused

when the mountpoint name has been selected.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Remove sysdata-version from JSON output
Sebastien GODARD [Mon, 29 Aug 2016 06:27:36 +0000 (08:27 +0200)]
sadf: Remove sysdata-version from JSON output

Remove sysdata-version field from JSON output. This field is relevant
only for XML output (it's the version of the DTD/XSD documents).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoReuse hdr_line string for activities title line
Sebastien GODARD [Sun, 28 Aug 2016 14:04:32 +0000 (16:04 +0200)]
Reuse hdr_line string for activities title line

Struct activity has a field named hdr_line which was used to display the
list of fields displayed by sadf -d.
Reuse it to display the periodic activity header line in sar's output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Align some columns contents on the left
Sebastien GODARD [Fri, 26 Aug 2016 08:21:31 +0000 (10:21 +0200)]
sar: Align some columns contents on the left

Display sensors device name (fan, temp, voltage) and USB data (product
and manufacturer names) aligned on the left to make output a bit less
wide.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #124: Conversion from older formats is broken
Sebastien GODARD [Fri, 26 Aug 2016 07:30:05 +0000 (09:30 +0200)]
Fix #124: Conversion from older formats is broken

Commit 3c6fffd introduced a stricter check on file_magic->header_size
field. Yet this field exists only for files created with sysstat
versions 10.3.1 and later and so, should not be checked for older
versions. Trying to check it with older versions breaks the possibility
to convert (using sadf -c) a datafile created by such an old version.

Reported-by: @almosthuman
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Update manual page
Sebastien GODARD [Sun, 21 Aug 2016 06:00:50 +0000 (08:00 +0200)]
iostat: Update manual page

Explain new "-o JSON" option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Fix conversion factor for JSON output
Sebastien GODARD [Sun, 21 Aug 2016 05:46:17 +0000 (07:46 +0200)]
iostat: Fix conversion factor for JSON output

Conversion factor was always set to 1 for JSON output, regardless of the
unit chosen to display values (kB or MB). This patch fixes this.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat.c: Display extended disk stats in plain or JSON format
Sebastien GODARD [Fri, 19 Aug 2016 20:00:30 +0000 (22:00 +0200)]
iostat.c: Display extended disk stats in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat.c: Display basic disk stats in plain or JSON format
Sebastien GODARD [Fri, 19 Aug 2016 15:21:21 +0000 (17:21 +0200)]
iostat.c: Display basic disk stats in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat.c: Display CPU statistics in plain or JSON format
Sebastien GODARD [Fri, 19 Aug 2016 14:32:14 +0000 (16:32 +0200)]
iostat.c: Display CPU statistics in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat.c: Display timestamp in plain or JSON format
Sebastien GODARD [Fri, 19 Aug 2016 13:54:12 +0000 (15:54 +0200)]
iostat.c: Display timestamp in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoAdd JSON output for reports header
Sebastien GODARD [Fri, 19 Aug 2016 13:38:41 +0000 (15:38 +0200)]
Add JSON output for reports header

Update print_gal_header() function so that its output can be displayed
in JSON format.

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