]>
granicus.if.org Git - sysstat/log
Sebastien GODARD [Mon, 6 Jun 2016 06:32:07 +0000 (08:32 +0200)]
SVG: Fix title for IPv6 network statistics graphs
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 6 Jun 2016 06:29:40 +0000 (08:29 +0200)]
SVG: Add SVG output for IPv6 network errors statistics
These graphs correspond to the output of "sar -n EIP6".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 3 Jun 2016 12:31:31 +0000 (14:31 +0200)]
SVG: Add SVG output for TCPv4 network errors statistics
These graphs correspond to the output of "sar -n ETCP".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 3 Jun 2016 12:19:24 +0000 (14:19 +0200)]
SVG: Add SCG output for ICMPv4 network errors statistics
These graphs correspond to the output of "sar -n EICMP".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 3 Jun 2016 11:50:12 +0000 (13:50 +0200)]
SVG: Add SVG output for IPv4 network errors statistics
These graphs correspond to the output of "sar -n EIP".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 3 Jun 2016 11:35:03 +0000 (13:35 +0200)]
SVG: Add SVG output for UDPv6 network statistics
These graphs correspond to the output of "sar -n UDP6".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 3 Jun 2016 09:02:36 +0000 (11:02 +0200)]
SVG: Add SVG output for ICMPv6 network statistics
These graphs correspond to the output of "sar -n ICMP6".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 3 Jun 2016 08:31:57 +0000 (10:31 +0200)]
SVG: Add SVG output for IPv6 network statistics
These graphs correspond to the output of "sar -n IP6".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 3 Jun 2016 08:11:39 +0000 (10:11 +0200)]
SVG: Add SVG output for ICMPv4 network statistics
These graphs correspond to the output of "sar -n ICMP".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 3 Jun 2016 07:10:57 +0000 (09:10 +0200)]
Merge branch 'clang' of https://github.com/pschiffe/sysstat
Sebastien GODARD [Fri, 3 Jun 2016 06:46:52 +0000 (08:46 +0200)]
Update sar manual page
Unify the description of the tps value for -b and -d flags.
Fixes #120.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Peter Schiffer [Wed, 1 Jun 2016 11:41:39 +0000 (13:41 +0200)]
tapestat: prevent reallocing to 0 bytes
Ensure that realloc is not using 0 as new size in
tape_check_tapes_and_realloc() function.
Peter Schiffer [Wed, 1 Jun 2016 11:38:36 +0000 (13:38 +0200)]
tapestat: avoid double free
Avoid possibility of double free in tape_check_tapes_and_realloc() function.
Peter Schiffer [Wed, 1 Jun 2016 11:34:51 +0000 (13:34 +0200)]
tapestat: more fixes for realloc
Of course I forgot to assign new pointers from realloc to original variables.
This patch fixes that.
Sebastien GODARD [Sat, 28 May 2016 08:46:33 +0000 (10:46 +0200)]
Merge branch 'clang' of https://github.com/pschiffe/sysstat
Sebastien GODARD [Sat, 28 May 2016 08:21:23 +0000 (10:21 +0200)]
Merge branch 'coverity' of https://github.com/pschiffe/sysstat
Sebastien GODARD [Sat, 28 May 2016 08:10:04 +0000 (10:10 +0200)]
Check for undefined UID variable in sysstat script
In some rare cases, UID variable (which should expand to current user's
ID with bash) happens to be undefined:
$ sudo /etc/init.d/sysstat start
/etc/init.d/sysstat: 31: [: -eq: unexpected operator
This patch checks for that.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 28 May 2016 08:08:42 +0000 (10:08 +0200)]
Update sadf manual page
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Peter Schiffer [Wed, 25 May 2016 12:15:19 +0000 (14:15 +0200)]
tapestat: do a proper realloc
Store the output of a realloc in a temp var, so the original variable can be
freed upon failure.
Peter Schiffer [Wed, 25 May 2016 11:36:51 +0000 (13:36 +0200)]
tapestat: simplify tape_check_tapes_and_realloc()
Simplify check deciding when to realloc tape_stats. Realloc only if there is
more new tape drives than before.
Peter Schiffer [Wed, 25 May 2016 11:26:48 +0000 (13:26 +0200)]
tapestat: exit if there is not enough memory
Peter Schiffer [Wed, 25 May 2016 11:03:25 +0000 (13:03 +0200)]
Stricter check for file_magic->header_size
The file_magic->header_size should never be outside of the boundary set by
MIN_FILE_HEADER_SIZE and MAX_FILE_HEADER_SIZE.
Should resolve coverity CID 29717 and CID 29719.
Sebastien GODARD [Sun, 22 May 2016 09:10:53 +0000 (11:10 +0200)]
Update sadf manual page
Explain option "oneday".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 May 2016 08:53:07 +0000 (10:53 +0200)]
SVG: Add "oneday" option
This option (to be used with sadf's switch -O) tells sadf to display
graph data over a period of 24 hours.
Hours are still printed in UTC by default, use switch -T to print them
in local time and get a time window going from 00H to 00H, eg.:
sadf -g -T -O oneday -- -A > out.svg
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 20 May 2016 09:01:30 +0000 (11:01 +0200)]
SVG: Pass only needed parameter instead of whole record_header
ust_time is the only needed parameter, used to determine the origin on
the X axis. So don't pass the pointer on the whole record_header
structure in svg_parm structure.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 15 May 2016 08:35:17 +0000 (10:35 +0200)]
Fix typo in sadf manual page
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 14 May 2016 08:43:53 +0000 (10:43 +0200)]
Starting sysstat 11.3.5
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 14 May 2016 08:39:21 +0000 (10:39 +0200)]
sysstat-11.3.4
sysstat version 11.3.4 final packaging.
lsm and spec files updated.
Changelog added.
NOTE: A stable version (11.2.4) also exists and will be available for
download from my web site:
http://pagesperso-orange.fr/sebastien.godard/
The stable version includes only the bug fixes added in sysstat 11.3.4
but not the new features.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 14 May 2016 08:30:14 +0000 (10:30 +0200)]
NLS: Sync with translation project
Croatian translation updated.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 13 May 2016 13:37:14 +0000 (15:37 +0200)]
Add a reference to sysstat(5) in sadf and sar manual pages
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 13 May 2016 13:26:16 +0000 (15:26 +0200)]
Some more cosmetic changes
Update code to get one indentation less.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 13 May 2016 13:25:10 +0000 (15:25 +0200)]
Cosmetic changes
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 13 May 2016 12:56:36 +0000 (14:56 +0200)]
SVG: Differentiate graphs titles for temperature sensors
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 13 May 2016 12:46:33 +0000 (14:46 +0200)]
SVG: Update sadf manual page
Update sadf manual page to explain option -O.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 13 May 2016 12:45:02 +0000 (14:45 +0200)]
SVG: Update sadf usage message
Include option -O in sadf usage message.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 7 May 2016 13:37:24 +0000 (15:37 +0200)]
SVG: Fix graph's min and max values test
sadf should check for a min and a max value for the first graph of each
view.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 7 May 2016 13:17:53 +0000 (15:17 +0200)]
SVG: Really skip empty views when option "skipempty" is used
Even when option "skipempty" was used with sadf, some views were still
displayed because some of their graphs had very low (but not equal to
zero) values.
As the resulting views appeared empty anyway, make sadf skip them
anyway.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 6 May 2016 13:52:29 +0000 (15:52 +0200)]
SVG: Add "autoscale" option
This new option (to be used with sadf's switch -O) tells sadf to draw
all the graphs of a given view as large as possible based on current
view's scale. To do this, a factor (10, 100, 1000...) is used to
enlarge the graph drawing.
This option may be intesting when several graphs are drawn on the same
view, some with only very small values, and others with high ones,
the latter making the former difficult to see.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 1 May 2016 08:54:51 +0000 (10:54 +0200)]
SVG: Add "skipempty" option
Add a new switch (-O) to sadf to enable the user to pass additional
options to control SVG output.
This first option is "skipempty" which tells sadf to not display views
where all graphs have only zero values.
Example: sadf -g -O skipempty -- -A > out.svg
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 30 Apr 2016 14:43:13 +0000 (16:43 +0200)]
SVG: Add SVG output for UDPv4 network statistics
These graphs correspond to the output of "sar -n UDP".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 30 Apr 2016 14:27:04 +0000 (16:27 +0200)]
SVG: Add SVG output for TCPv4 network statistics
These graphs correspond to the output of "sar -n TCP".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 30 Apr 2016 14:16:14 +0000 (16:16 +0200)]
SVG: Add SVG output for IPv4 network statistics
These graphs correspond to the output of "sar -n IP".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 30 Apr 2016 13:48:20 +0000 (15:48 +0200)]
SVG: Add SVG output for IPv6 netwok socket statistics
This graph corresponds to the output of "sar -n SOCK6".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 30 Apr 2016 13:36:21 +0000 (15:36 +0200)]
SVG: Add SVG output for network socket statistics
These graphs correspond to the outpu of "sar -n SOCK".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 30 Apr 2016 13:15:42 +0000 (15:15 +0200)]
Cosmetic fixes
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 16 Apr 2016 13:44:06 +0000 (15:44 +0200)]
SVG: Add SVG output for hugepages utilization statistics
These graphs correspond to the output of "sar -H".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 16 Apr 2016 13:02:28 +0000 (15:02 +0200)]
SVG: Add SVG output for kernel tables statistics
These graphs correspond to the output of "sar -v".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 16 Apr 2016 06:43:52 +0000 (08:43 +0200)]
SVG: Add SVG output for I/O and transfer rate statistics
These graphs correspond to the output of "sar -b".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 15 Apr 2016 12:50:48 +0000 (14:50 +0200)]
SVG: Add SVG output for temperature sensors statistics
These graphs correspond to the output of "sar -m TEMP".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 15 Apr 2016 12:03:26 +0000 (14:03 +0200)]
SVG: Add SVG output for fan speed statistics
This graph corresponds to the output of "sar -m FAN".
The graph type is "rectangular" (just like that for CPU frequency
statistics).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 9 Apr 2016 12:47:42 +0000 (14:47 +0200)]
Starting sysstat 11.3.4
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 9 Apr 2016 12:42:39 +0000 (14:42 +0200)]
sysstat-11.3.3
sysstat version 11.3.3 final packaging.
lsm and spec files updated.
Changelog added.
NOTE: A stable version (11.2.3) also exists and will be available for
download from my web site:
http://pagesperso-orange.fr/sebastien.godard/
The stable version includes only the bug fixes added in sysstat 11.3.3
but not the new features.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 9 Apr 2016 12:25:32 +0000 (14:25 +0200)]
NLS: Sync with Translation Project
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 9 Apr 2016 08:15:59 +0000 (10:15 +0200)]
SVG: Fix how min and max values are calculated for some memory metrics
Be more accurate when calculating the min and max values for memused,
swpused, %memused, %commit, %swpused and %swpcad.
Previously these values could have been wrong if the total amount of
memory or swap had changed.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Thu, 7 Apr 2016 14:32:13 +0000 (16:32 +0200)]
SVG: Add graphs for %memused, %commit, %swpused and %swpcad metrics
Add a bar graph for each of the remaining memory metrics that didn't
have one.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 3 Apr 2016 08:39:51 +0000 (10:39 +0200)]
SVG: Add SVG output for queue length and load average statistics
Graph corresponding to the output of sar -q.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Apr 2016 15:40:41 +0000 (17:40 +0200)]
SVG: Convert memory metrics to MB
Using values expressed in kB to draw graphs for memory metrics made sadf
reach some (Firefox?) limits: Values bigger than 10,000,000 made the
graph to disappear on screen unless we clicked on the view.
Using smaller values (ie. values expressed in MB) fixes the problem. And
they are easier to read for a human BTW :-)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Apr 2016 14:52:42 +0000 (16:52 +0200)]
SVG: Set a min value of 1s for X graduations
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Apr 2016 14:19:07 +0000 (16:19 +0200)]
SVG: Add SVG output for memory and swap statistics
These graphs correspond to the output of sar -r [ALL] and sar -S.
%memused, %commit, %swapused and %swapcad will be added later.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Apr 2016 12:45:03 +0000 (14:45 +0200)]
SVG: Update core functions to handle integer metrics
Update save_extrema() functions for metrics which are not calculated
over a time interval.
Add lniappend() function to create graphs for metrics with integer
values.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Apr 2016 12:33:22 +0000 (14:33 +0200)]
SVG: Handle integer values in graph caption
Some metrics are integer values: Their min/max values should then be
displayed as integer values (xxxx and not xxxx.00).
Such a metric will be identified by a leading ~ character in its name.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Apr 2016 12:26:59 +0000 (14:26 +0200)]
SVG: Remove unused argument from lnappend() function
Remove a relic of the past...
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Apr 2016 12:17:49 +0000 (14:17 +0200)]
SVG: Enlarge graph view
Make graph view a bit wider to deal with large numbers that sometimes
are used on Y axis.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 25 Mar 2016 13:33:59 +0000 (14:33 +0100)]
SVG: Add SVG output for CPU frequency statistics
This graph corresponds to the output of "sar -m CPU".
This is a new kind of graph ("rectangular").
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 25 Mar 2016 12:05:47 +0000 (13:05 +0100)]
SVG: Set a min value on Y axis
Set a min value on Y axis so that graduations remain meaningful.
For instance, if the max value for a graph was 0.01 then the graduations
on the Y axis were 0.01, 0.01 and 0.01 (for 3 horizontal lines). In this
case, this patch will set the max value to 0.03 to get some meaningful
graduations values: 0.01, 0.02 and 0.03.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 25 Mar 2016 09:39:02 +0000 (10:39 +0100)]
Merge branch 'portante-master'
The cprintf_u64() function always reads passed parameters as unsigned
long long, even if the actual parameter is unsigned long or unsigned
int.
This does not work correctly on 32-bit systems, where sizeof(unsigned
long long) != sizeof(unsigned int). For example sar -q displays:
/tmp> sar -q 1 4
Linux 4.4.0-1-686-pae (vox) 22.03.2016 _i686_ (1 CPU)
23:50:00 runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15 blocked
23:50:01
1408749273091 4294967297 0,73 0,67 0,60
1408749273088
23:50:02
1408749273090 73 0,75 0,67 0,60
1408749273088
23:50:03
1408749273090 75 0,75 0,67 0,60
1408749273088
23:50:04
1408749273090 75 0,75 0,67 0,60
1408749273088
Patch fixes the problem.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Peter Portante [Wed, 23 Mar 2016 01:42:14 +0000 (21:42 -0400)]
Quick fix for cprintf_u64 non-uintv64_t
Sebastien GODARD [Mon, 21 Mar 2016 16:50:27 +0000 (17:50 +0100)]
SVG: Make SVG code locale independent
Graphs could not be displayed if corresponding SVG code had been
generated on machines with specific locales.
Eg: If you set your locale to, say, fr_FR then here is a sample SVG
code you could get:
...
<path id="g9p0" d=" M311,2663,54 L613,1446,20 L913,423,75 (...)
...
To avoid the confusion, this patch sets the LC_NUMERIC to "C" so that a
decimal point is used instead of a comma:
...
<path id="g9p0" d=" M311,2663.54 L613,1446.20 L913,423.75 (...)
...
Resulting SVG output can now be displayed whatever locale is used.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 19 Mar 2016 15:16:06 +0000 (16:16 +0100)]
SVG: Fix "SVG graphs report 'No data' for dynamically added CPUs"
Fix #107.
Offline CPU were not properly taken into account when creating SVG
graphs for CPU statistics.
This was because min and max values were not updated for the metrics
(%user, %nice, etc.) This should be done even for offline (and also
tickless) CPUs.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Mar 2016 13:41:07 +0000 (14:41 +0100)]
SVG: Add SVG output for CPU statistics
Each CPU (including CPU "all") has a bar graph, with each metric being
cumulative.
At the present time, %idle is not displayed because I think the graph is
much more readable without it. But an SVG option to display it will
possibly be added in the future.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Mar 2016 13:31:21 +0000 (14:31 +0100)]
SVG: Update core functions
Create separate functions for line graphs and bar graphs.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Mar 2016 13:21:56 +0000 (14:21 +0100)]
SVG: Fix truncated SVG code
SVG graph definition may be truncated when the array which contains
SVG code needs to be resized. Fix this.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Mar 2016 13:18:09 +0000 (14:18 +0100)]
SVG: Update graph colors
This is necessary to tell the difference between several graphs which
may be drawn on the same view.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Mar 2016 10:17:13 +0000 (11:17 +0100)]
Starting sysstat 11.3.3
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Mar 2016 10:11:02 +0000 (11:11 +0100)]
sysstat-11.3.2
sysstat version 11.3.2 final packaging.
lsm and spec files updated.
Changelog added.
NOTE: A stable version (11.2.2) also exists and will be available for
download from my web site:
http://pagesperso-orange.fr/sebastien.godard/
The stable version includes only the bug fixes added in sysstat 11.3.2
but not the new features.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Mar 2016 09:59:05 +0000 (10:59 +0100)]
NLS: Sync with Translation Project
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Mar 2016 09:30:38 +0000 (10:30 +0100)]
SVG: Update sadf manual page
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Mar 2016 10:27:30 +0000 (11:27 +0100)]
sar: Fix possible compatibility issues between sysstat versions
Fix an issue that made sar unable to read statistics for network
and disk devices from a datafile created by a more recent version of
sysstat when the size of the structures used to save those statistics
was greater than that of the current version.
This may be the case when eg. new fields are appended to network or disk
structures.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Mar 2016 09:54:22 +0000 (10:54 +0100)]
SVG: Remove decimals in Y graduations for bar graphs
Bar graphs are used to display metrics expressed as percentage values.
Graduations on the Y axis are fixed values (0, 25, 50, 75 and 100) that
don't need to be decimal numbers (0.00, 25.00, ...)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 17:05:50 +0000 (18:05 +0100)]
SVG: Handle dynamically (un)registered network interfaces (2)
Commit
f5d9bce dealt with network interfaces that can be dynamically
registered or unregistered in /proc/net/dev. But it assumed that network
interfaces appear always at the same position in the /proc/net/dev file.
As this is not necessarily the case, this patch makes sure that we
update the right graph corresponding to the same network interface.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 16:54:57 +0000 (17:54 +0100)]
Fix possible confusion among network interfaces
Some wrong statistics could have been displayed when a new network
interface was dynamically registered and appeared in the middle of
the list of existing interfaces in /proc/net/dev.
This patch fixes this problem (that hardly ever happens), and
removes some redundant lines of code.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 10:11:37 +0000 (11:11 +0100)]
SVG: Update SVG output for swap statistics
This patch updates SVG code used to draw graphs for swap statistics to
keep in sync with current SVG core functions.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 09:58:31 +0000 (10:58 +0100)]
Merge branch 'stevekay-master'
Sebastien GODARD [Fri, 11 Mar 2016 09:56:04 +0000 (10:56 +0100)]
Merge branch 'master' of https://github.com/stevekay/sysstat into stevekay-master
Sebastien GODARD [Fri, 11 Mar 2016 09:44:34 +0000 (10:44 +0100)]
SVG: Cosmetic fixes
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 09:34:22 +0000 (10:34 +0100)]
SVG: Add graph for %ifutil metrics
Add a graph for the last metrics from network activity (%ifutil).
This a new type of graph (bar graph, whereas previous graphs were line
graphs) which will be used for all metrics expressed as percentage
values.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Steve Kay [Thu, 10 Mar 2016 23:08:05 +0000 (15:08 -0800)]
SVG: Add SVG output for swap statistics - single in/out graph
Steve Kay [Thu, 10 Mar 2016 23:02:44 +0000 (15:02 -0800)]
SVG: Add SVG output for swap statistics
Sebastien GODARD [Wed, 9 Mar 2016 17:44:56 +0000 (18:44 +0100)]
SVG: Beautify code a bit in svg_stats.c
Use item_name variable to make things easier to read.
Remove unneeded scrap.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 7 Mar 2016 17:49:54 +0000 (18:49 +0100)]
Merge branch 'pschiffe-master'
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Peter Schiffer [Mon, 7 Mar 2016 12:25:24 +0000 (13:25 +0100)]
Introduce new SP_VALUE_100() macro and use it in pidstat
Under specific loads, pidstat can output values bigger than 100% in CPU
statistics caused by inaccurate read of statistics provided by kernel.
This patch adds new SP_VALUE_100() macro which limits value to 100 for these
statistics, so the output can be correctly interpreted.
Sebastien GODARD [Sun, 6 Mar 2016 15:31:13 +0000 (16:31 +0100)]
SVG: Fix invalid use of attribute vector-effect
Attribute vector-effect="non-scaling-stroke" was not compliant with SVG
1.1 standards. Use CSS attributes instead.
Fix errors from W3 validator.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Mar 2016 15:10:28 +0000 (16:10 +0100)]
SVG: Update sadf manual page
Indicate that the output of sadf -g should be an SVG file instead of an
HTML one.
Fix a warning from W3 validator.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Mar 2016 15:04:56 +0000 (16:04 +0100)]
SVG: Specify encoding in SVG header
Charset encoding must be specified in SVG header.
Fix a warning from W3 validator.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Mar 2016 14:26:49 +0000 (15:26 +0100)]
Update manual pages
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Mar 2016 14:20:32 +0000 (15:20 +0100)]
mpstat/pidstat: Print time in the ISO format is S_TIME_FORMAT=ISO
Make mpstat and pidstat consistent with sar (cf. commit
00c44f0 ).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 5 Mar 2016 16:32:06 +0000 (17:32 +0100)]
SVG: Handle dynamically (un)registered network interfaces
Network interfaces may be dynamically registered or unregistered.
That is to say they can appear in the /proc/net/dev file when
the corresponding device is connected, and also disappear when
the device is removed.
This patch tries to handle this so that graphs are drawn for
the interfaces which are connected on the fly. Graphs are drawn only
when the device is actually connected, which means that they may be
discontinuous if the device is connected, then disconnected, then
reconnected again, just like when a system restart occurrs.
At the present time, this patch assumes that the devices are always at
the same position in /proc/net/dev, which is not necessarily the case.
This will be fixed later.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 5 Mar 2016 14:10:28 +0000 (15:10 +0100)]
Merge branch 'svg2' of https://github.com/stevekay/sysstat
Sebastien GODARD [Sat, 5 Mar 2016 14:07:13 +0000 (15:07 +0100)]
Merge branch 'svg1' of https://github.com/stevekay/sysstat
Steve Kay [Sat, 5 Mar 2016 05:54:53 +0000 (21:54 -0800)]
minor typo where attribute value was not surrounded by quotes