]>
granicus.if.org Git - sysstat/log
Sebastien GODARD [Sun, 10 Jul 2016 09:59:35 +0000 (11:59 +0200)]
SVG: Reorder metrics to be consistent with the output of sar
Try, whenever possible, to have the same metrics order for graphs as for
sar's output.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 8 Jul 2016 15:47:13 +0000 (17:47 +0200)]
SVG: Code refactoring
Add a new array (g_fields[]) used to determine the order in which the
metrics will be drawn. Used by save_extrema() function to save the min
and max values at the right position in spmin[]/spmax[] arrays.
Add a new array (g_type[]) giving the type of graphs that will be drawn
in each view (SVG_LINE_GRAPH, SVG_BAR_GRAPH). It makes it possible now
to call draw_activity_graphs() function only once even if there are
several types of graphs to draw.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 2 Jul 2016 12:53:13 +0000 (14:53 +0200)]
SVG: Apply workaround for I/O and transfer rates statistics
See commit
5d3efa1 .
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 2 Jul 2016 12:41:25 +0000 (14:41 +0200)]
SVG: Assume max values for graphs cannot be negative
Assume maximum values cannot be negative.
Is a negative value is found, then replace it with zero.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Jul 2016 13:30:34 +0000 (15:30 +0200)]
Workaround for I/O and transfer rates statistics
Values displayed for I/O and transfer rates statistics (sar -b) may be
wrong if a filesystem / a device is unmounted, eg:
16:45:08 tps rtps wtps bread/s bwrtn/s
16:50:00 46.57 40.12 6.45 648.67 573.12
16:55:08
59853160524690272 .00
59853160524690272 .00 6.29
59853160524689824 .00 135.44
This is because the total number of I/O operations is calculated as the sum
of operations for each filesystem/device mounted by the system. But if a
filesystem is unmounted, the total number of I/O operations may be lower
than its previous value, resulting in a negative number displayed by
sar. Display 0.0 in this case.
A note warning the user should probably go into the manual page too.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Jul 2016 12:56:57 +0000 (14:56 +0200)]
SVG: Add separate functions to display background grid
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Jul 2016 12:04:10 +0000 (14:04 +0200)]
SVG: Add separate function for graphs autoscaling
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Jul 2016 10:55:22 +0000 (12:55 +0200)]
SVG: Fix how bar graphs are displayed for fs statistics
Comment in code stating that "bar graphs should not extend over previous
interval because %values are not calculated over a time interval but are
instantaneous values" is wrong. Doing this implies loosing the first
value and is not consistent with how bar graphs are displayed for other
activities.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Jul 2016 10:38:38 +0000 (12:38 +0200)]
Fix unsigned compared against 0
file_magic->header_size is an unsigned int value and so cannot be
strictly less than 0 [CID#127473].
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 24 Jun 2016 12:37:04 +0000 (14:37 +0200)]
Starting sysstat 11.4.0
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 24 Jun 2016 12:06:42 +0000 (14:06 +0200)]
sysstat-11.3.5
sysstat version 11.3.5 final packaging.
lsm and spec files updated.
Changelog added.
Cosmetic fixes.
NOTE: A stable version (11.2.5) 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.5
but not the new features.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 24 Jun 2016 11:38:39 +0000 (13:38 +0200)]
NLS: Sync with translation project
Various translations updated.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 20 Jun 2016 16:08:59 +0000 (18:08 +0200)]
SVG: Check for zero time interval
Don't draw a bar if its width (time interval) is zero.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 20 Jun 2016 16:04:18 +0000 (18:04 +0200)]
SVG: Check for unmounted filesystems
Make graphs (displayed for filesystems statistics) discontinuous if the
filesystem has been unmounted then mounted again.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 19 Jun 2016 08:55:05 +0000 (10:55 +0200)]
Use itv instead of g_itv for interval variable name
This is mainly cosmetic...
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 19 Jun 2016 08:33:30 +0000 (10:33 +0200)]
SVG: Add SVG output for FC HBA statistics
These graphs correspond to the output of "sar -n FC".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 18 Jun 2016 15:59:24 +0000 (17:59 +0200)]
SVG: Fix "skipempty" option
When an activity is depicted by several views and option "skipempty" is
used, views with non zero values following a view which has been skipped
were also not displayed. Fix this here.
Also free memory for views which have been skipped.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 17 Jun 2016 16:46:52 +0000 (18:46 +0200)]
SVG: Add SVG output for filesystems statistics
These graphs correspond to the output of "sar -F".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 17 Jun 2016 13:13:27 +0000 (15:13 +0200)]
SVG: Add SVG output for disk statistics
These graphs correspond to the output of "sar -d".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 17 Jun 2016 08:45:36 +0000 (10:45 +0200)]
SVG: Add SVG output for NFS server statistics
These graphs correspond to the output of "sar -n NFSD".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 17 Jun 2016 08:29:33 +0000 (10:29 +0200)]
SVG: Add SVG output for NFS client statistics
These graphs correspond to the output of "sar -n NFS".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 17 Jun 2016 08:13:49 +0000 (10:13 +0200)]
SVG: Add SVG output for network interface errors statistics
These graphs correspond to the output of "sar -n EDEV".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Jun 2016 10:10:01 +0000 (12:10 +0200)]
SVG: Add SVG output for voltage inputs statistics
These graphs correspond to the output of "sar -m IN".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Jun 2016 08:07:24 +0000 (10:07 +0200)]
SVG: Make sure graduations are properly aligned with grid
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 11 Jun 2016 12:11:00 +0000 (14:11 +0200)]
SVG: Add SVG output for ICMP network errors statistics
These graphs correspond to the output of "sar -n EICMP6".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
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>