]> granicus.if.org Git - sysstat/log
sysstat
2 years agosysstat-12.5.6 v12.5.6
Sebastien GODARD [Mon, 28 Feb 2022 08:20:23 +0000 (09:20 +0100)]
sysstat-12.5.6

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

This version includes a complete rewriting of the code used to collect
and display interrupts statistics. These are now collected from the
/proc/interrupts file instead of the /proc/stat one, and are displayed
for each CPU.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUpdate NLS translations
Sebastien GODARD [Mon, 28 Feb 2022 07:53:23 +0000 (08:53 +0100)]
Update NLS translations

Sync with The Translation Project.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoCopyright year: Switch to 2022
Sebastien GODARD [Mon, 28 Feb 2022 07:19:15 +0000 (08:19 +0100)]
Copyright year: Switch to 2022

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUpdate non regression tests
Sebastien GODARD [Thu, 24 Feb 2022 08:54:28 +0000 (09:54 +0100)]
Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosar: Make sure that all the buffers are copied in copy_structures()
Sebastien GODARD [Thu, 24 Feb 2022 08:51:38 +0000 (09:51 +0100)]
sar: Make sure that all the buffers are copied in copy_structures()

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Also optimize get_global_int_statistics() function
Sebastien GODARD [Thu, 24 Feb 2022 08:38:26 +0000 (09:38 +0100)]
A_IRQ: Also optimize get_global_int_statistics() function

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Fix pretty printing
Sebastien GODARD [Sun, 20 Feb 2022 16:33:02 +0000 (17:33 +0100)]
A_IRQ: Fix pretty printing

Make sure interrupt name is printed after all per-CPU interrupt values
in pretty mode.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_NET_SOFT: Slight optimization in get_global_soft_statistics() function
Sebastien GODARD [Sun, 20 Feb 2022 08:02:10 +0000 (09:02 +0100)]
A_NET_SOFT: Slight optimization in get_global_soft_statistics() function

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosadf: JSON: Don't display interrupt nr when all selected CPU are offline
Sebastien GODARD [Sat, 19 Feb 2022 15:53:01 +0000 (16:53 +0100)]
sadf: JSON: Don't display interrupt nr when all selected CPU are offline

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoAdd new non regression tests
Sebastien GODARD [Sat, 19 Feb 2022 15:52:28 +0000 (16:52 +0100)]
Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoXML: Update DTD and XSD documents
Sebastien GODARD [Sat, 19 Feb 2022 11:44:44 +0000 (12:44 +0100)]
XML: Update DTD and XSD documents

If the user selects only a CPU which happens to be offline then the XML
output generated by sadf -x will contain no cpu element.
Update DTD and XSD documents so that the XML output won't be considered
as invalid.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoPCP: A_NET_NFS(D): Fix instance names for getattr call
Sebastien GODARD [Sun, 13 Feb 2022 07:57:04 +0000 (08:57 +0100)]
PCP: A_NET_NFS(D): Fix instance names for getattr call

RPC call is getattr and not lookup.
The instance definition in pcp_stats.c was wrong for getattr call for
NFS and NFSD activities. Yet pcp_stats.c used the expected name getattr,
resulting in a name mismatch and no values being displayed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoPCP: A_NET_SOFT: Fix flow_limit_count metric's unit
Sebastien GODARD [Sun, 13 Feb 2022 07:47:38 +0000 (08:47 +0100)]
PCP: A_NET_SOFT: Fix flow_limit_count metric's unit

Unit for flow_limit_count metric is that of a counter.
Problem exists only for CPU "all". Unit is correct for per-CPU metric.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUse strings definition whenever possible
Sebastien GODARD [Sat, 12 Feb 2022 17:07:10 +0000 (18:07 +0100)]
Use strings definition whenever possible

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoFix typos in comments
Sebastien GODARD [Sat, 12 Feb 2022 16:49:56 +0000 (17:49 +0100)]
Fix typos in comments

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUse sizeof() instead of hard-coded values with snprintf() function
Sebastien GODARD [Sat, 12 Feb 2022 16:40:57 +0000 (17:40 +0100)]
Use sizeof() instead of hard-coded values with snprintf() function

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agorndr_stats.c: Use NOVAL instead of NULL as last arg for cons() function
Sebastien GODARD [Sat, 12 Feb 2022 16:30:00 +0000 (17:30 +0100)]
rndr_stats.c: Use NOVAL instead of NULL as last arg for cons() function

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosa_common.c: Move search_list_item() and add_list_item() upwards
Sebastien GODARD [Sat, 12 Feb 2022 16:20:02 +0000 (17:20 +0100)]
sa_common.c: Move search_list_item() and add_list_item() upwards

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Update non regression tests results
Sebastien GODARD [Sat, 12 Feb 2022 14:59:46 +0000 (15:59 +0100)]
A_IRQ: Update non regression tests results

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoPCP: Make sure instances for per-CPU interrupts are created for all CPU
Sebastien GODARD [Sat, 12 Feb 2022 14:55:36 +0000 (15:55 +0100)]
PCP: Make sure instances for per-CPU interrupts are created for all CPU

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: sadf: Update conversion function
Sebastien GODARD [Fri, 11 Feb 2022 14:40:15 +0000 (15:40 +0100)]
A_IRQ: sadf: Update conversion function

Update sadf so that it can convert datafiles using old A_IRQ activity
structure to current up-to-date format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: sadf: Display 0.00 when number of interrupts decreases
Sebastien GODARD [Fri, 11 Feb 2022 10:21:30 +0000 (11:21 +0100)]
A_IRQ: sadf: Display 0.00 when number of interrupts decreases

See commit 5c15058.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoMerge branch 'natoscott-pcp-percpu-intr'
Sebastien GODARD [Wed, 9 Feb 2022 15:56:06 +0000 (16:56 +0100)]
Merge branch 'natoscott-pcp-percpu-intr'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoMerge branch 'pcp-percpu-intr' of https://github.com/natoscott/sysstat into natoscott...
Sebastien GODARD [Wed, 9 Feb 2022 15:30:05 +0000 (16:30 +0100)]
Merge branch 'pcp-percpu-intr' of https://github.com/natoscott/sysstat into natoscott-pcp-percpu-intr

2 years agoA_IRQ: sadf: Update PCP interface for per-CPU interrupts statistics
Nathan Scott [Wed, 9 Feb 2022 00:36:32 +0000 (11:36 +1100)]
A_IRQ: sadf: Update PCP interface for per-CPU interrupts statistics

Use the PCP instance domain convention with kernel.percpu.interrupts
where the interrupt line and cpu ID are combined.  This provides the
same metric as PCP and also a single stable metric identifier (pmID).

Signed-off-by: Nathan Scott <nathans@redhat.com>
2 years agoA_IRQ: Update DTD and XSD documents
Sebastien GODARD [Tue, 8 Feb 2022 13:53:12 +0000 (14:53 +0100)]
A_IRQ: Update DTD and XSD documents

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Update cpu attribute in XML output
Sebastien GODARD [Tue, 8 Feb 2022 13:50:31 +0000 (14:50 +0100)]
A_IRQ: Update cpu attribute in XML output

cpu attribute's possible values are "all" or a value like "0", "1", etc.
to be consistent with other activities XML output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosadf: DB/PPC: Make sure value associated with pt_newlin flag is printed
Sebastien GODARD [Tue, 8 Feb 2022 13:46:23 +0000 (14:46 +0100)]
sadf: DB/PPC: Make sure value associated with pt_newlin flag is printed

PT_NOFLAG must now be explicitly specified for the value to be printed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoFix commit 3ab10c8
Sebastien GODARD [Sun, 6 Feb 2022 17:01:12 +0000 (18:01 +0100)]
Fix commit 3ab10c8

I shouldn't have deleted this line :-(

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosar/sadf: Don't reallocate buffers for activities not present in file
Sebastien GODARD [Sun, 6 Feb 2022 16:51:30 +0000 (17:51 +0100)]
sar/sadf: Don't reallocate buffers for activities not present in file

Buffer reallocation would fail for activities which are not in the file
being read. This is because @nr2 = -1 and @nr2 is used to compute the
memory to allocate in reallocate_all_buffers():

SREALLOC(a->buf[j], void,
 (size_t) a->msize * nr_realloc * (size_t) a->nr2);

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: sar: Display 0.00 when number of interrupts decreases
Sebastien GODARD [Sun, 6 Feb 2022 16:47:58 +0000 (17:47 +0100)]
A_IRQ: sar: Display 0.00 when number of interrupts decreases

When a CPU goes offline, the number of interrupts among all CPU can
decrease. In this case, display a value of 0.00 instead of the huge
number that would appear otherwise.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: sar: Always display a header line for each sample
Sebastien GODARD [Sun, 6 Feb 2022 16:41:46 +0000 (17:41 +0100)]
A_IRQ: sar: Always display a header line for each sample

Make sure that the header line gets printed with each sample.
This is because CPU can go offline or come back online, and so the
header line needs to be updated accordingly.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: sadf: Update PCP interface for interrupts statistics
Sebastien GODARD [Sun, 6 Feb 2022 07:09:42 +0000 (08:09 +0100)]
A_IRQ: sadf: Update PCP interface for interrupts statistics

Update/create new PCP metrics for interrupts statistics:

kernel.all.intr: This is the total number of all interrupts among
all processors

kernel.all.interrupts.total: This is the total number of each interrupt
among all processors. A domain instance is created for each interrupt
("0", "1", "LOC", "CAL", etc.)

kernel.percpu.interrupts.XXX: This is the number of interrupts XXX for a
given processor. A domain instance is created for each processor (cpu0,
cpu1, etc.)
E.g.:
kernel.percpu.interrupts.sum is the total number of all interrupts for a
given processor.
kernel.percpu.interrupts.LOC is the number of LOC interrupts for a given
processor.
Metric names cannot contain digits. As a consequence,
kernel.percpu.interrupts.0 is replaced with kernel.percpu.interrupts.a
kernel.percpu.interrupts.1 is replaced with kernel.percpu.interrupts.b
kernel.percpu.interrupts.30 is replaced with kernel.percpu.interrupts.da
etc.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Add new method to create the list of interrupts names
Sebastien GODARD [Sun, 6 Feb 2022 07:02:43 +0000 (08:02 +0100)]
A_IRQ: Add new method to create the list of interrupts names

Add count_new_int() method to A_IRQ activity structure.
This method will be used to create the list of all the interrupts names
present in file (unless a list has been explicitly entered by the user
on the command line with option "--int=").

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Update sadf RAW output report
Sebastien GODARD [Sun, 30 Jan 2022 14:27:41 +0000 (15:27 +0100)]
A_IRQ: Update sadf RAW output report

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Check if CPU "all" should be displayed
Sebastien GODARD [Sun, 30 Jan 2022 14:16:51 +0000 (15:16 +0100)]
A_IRQ: Check if CPU "all" should be displayed

Don't forget CPU "all" when checking which CPU have been selected and
should be displayed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Update sadf XML output report
Sebastien GODARD [Sat, 29 Jan 2022 15:20:43 +0000 (16:20 +0100)]
A_IRQ: Update sadf XML output report

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Update sadf JSON output report
Sebastien GODARD [Sat, 29 Jan 2022 15:03:31 +0000 (16:03 +0100)]
A_IRQ: Update sadf JSON output report

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Don't set name for "sum" interrupt
Sebastien GODARD [Sat, 29 Jan 2022 14:32:16 +0000 (15:32 +0100)]
A_IRQ: Don't set name for "sum" interrupt

The name "sum" is already saved as the interrupt name for the total
number of interrupts. So use that name.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Update sadf PPC/DB output report
Sebastien GODARD [Sat, 29 Jan 2022 14:26:50 +0000 (15:26 +0100)]
A_IRQ: Update sadf PPC/DB output report

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Update sar and sadf manual pages
Sebastien GODARD [Sat, 29 Jan 2022 08:49:18 +0000 (09:49 +0100)]
A_IRQ: Update sar and sadf manual pages

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: sar: Update report output
Sebastien GODARD [Sat, 29 Jan 2022 08:45:30 +0000 (09:45 +0100)]
A_IRQ: sar: Update report output

sar now displays interrupts for each CPU, and the global value among all
CPU.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Read interrupts stats from /proc/interrupts
Sebastien GODARD [Sat, 29 Jan 2022 08:20:59 +0000 (09:20 +0100)]
A_IRQ: Read interrupts stats from /proc/interrupts

Update function used to read interrupts statistics.
They are no longer read from /proc/stat but from /proc/interrupts.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Add new "--int=" option to sar and sadf
Sebastien GODARD [Fri, 28 Jan 2022 16:04:31 +0000 (17:04 +0100)]
A_IRQ: Add new "--int=" option to sar and sadf

The option "--int=" can be used with sar and sadf to enter a list of
comma-separated interrupts values, ranges of interrupts values, or even
interrupts names.
These interrupts will then be displayed using option -I.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Change syntax for option -I
Sebastien GODARD [Sun, 23 Jan 2022 14:54:07 +0000 (15:54 +0100)]
A_IRQ: Change syntax for option -I

Option -I was followed by a list of interrupts or the SUM/ALL keywords.
Now option -I doesn't need to be followed par additional parameters.
Keywords SUM and ALL may still be used (but the ALL keyword will be
ignored).
The list of interrupts will be entered using a new option: --int=

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Move to new structure
Sebastien GODARD [Sun, 23 Jan 2022 14:48:52 +0000 (15:48 +0100)]
A_IRQ: Move to new structure

Interrupts activity structure is modified.
The interrupt name will now be saved together with the number of
interrupts.
The number of interrupts is saved as an unsigned int to be consistent
with the type used by the kernel.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoMerge branch 'sar_interrupts_stats'
Sebastien GODARD [Sun, 23 Jan 2022 14:14:19 +0000 (15:14 +0100)]
Merge branch 'sar_interrupts_stats'

2 years agoUpdate non regression tests
Sebastien GODARD [Sun, 23 Jan 2022 13:45:45 +0000 (14:45 +0100)]
Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoMake sure that datafiles with unknown activities can be read by sar
Sebastien GODARD [Sun, 23 Jan 2022 09:57:16 +0000 (10:57 +0100)]
Make sure that datafiles with unknown activities can be read by sar

When the structure containing statistics for an activity is modified
(with the number of fields of type A increased and of type B decreased),
sar and sadf might not be able to read the corresponding datafile.
Make sure that they can read the other activities in file, even if the
unknown activity is ignored.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agompstat: Don't use read_stat_irq() function
Sebastien GODARD [Wed, 12 Jan 2022 16:48:44 +0000 (17:48 +0100)]
mpstat: Don't use read_stat_irq() function

mpstat used read_stat_irq() function from rd_stats.c to get the total
number of interrupts among all processors.
This function is to be heavily modified to deal with sar's new
interrupts statistics report. So create a new function which will be
used only by mpstat and include it in its code.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agompstat.h: Remove unneeded 'aligned' attribute
Sebastien GODARD [Mon, 10 Jan 2022 17:40:47 +0000 (18:40 +0100)]
mpstat.h: Remove unneeded 'aligned' attribute

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agocount.c: Move SOURCE_SADC macro definition
Sebastien GODARD [Mon, 10 Jan 2022 17:35:11 +0000 (18:35 +0100)]
count.c: Move SOURCE_SADC macro definition

Function get_diskstats_dev_nr() is used only by sadc.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoAdd comments in files and cosmetic fix
Sebastien GODARD [Mon, 10 Jan 2022 17:19:18 +0000 (18:19 +0100)]
Add comments in files and cosmetic fix

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoFix index value used in online_cpu_bitmap array
Sebastien GODARD [Mon, 10 Jan 2022 16:57:25 +0000 (17:57 +0100)]
Fix index value used in online_cpu_bitmap array

The online_cpu_bitmap[] array size is based on the number of CPU
allocated (see sa_wrap.c:wrap_read_softnet()). The size is calculated as
BITMAP_SIZE(a->nr_allocated).
So the index used in read_softnet() function (rd_stats.c) shall not
exceed the size of the array, and so cannot reach NR_CPUS.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Display each item in report's header line
Sebastien GODARD [Wed, 29 Dec 2021 10:54:02 +0000 (11:54 +0100)]
A_IRQ: Display each item in report's header line

Update function used to display the name of the columns in sar's
reports. A string like "CPU*" will be replaced with "all", "CPU0",
"CPU1", etc.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoA_IRQ: Count number of interrupts using /proc/interrupts
Sebastien GODARD [Wed, 29 Dec 2021 09:12:42 +0000 (10:12 +0100)]
A_IRQ: Count number of interrupts using /proc/interrupts

sar/sadc will no longer use /proc/stat file to calculate interrupts
statistics. They will use /proc/interrupts and will display per-CPU
statistics.
This first patch updates the function used to count the number of
interrupts.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoStarting sysstat-12.5.6
Sebastien GODARD [Sun, 5 Dec 2021 08:35:11 +0000 (09:35 +0100)]
Starting sysstat-12.5.6

configure script updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosysstat-12.5.5 v12.5.5
Sebastien GODARD [Sun, 5 Dec 2021 08:30:25 +0000 (09:30 +0100)]
sysstat-12.5.5

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

This is mainly a bugfix version (iostat, mpstat).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUpdate NLS translations
Sebastien GODARD [Sun, 5 Dec 2021 08:19:00 +0000 (09:19 +0100)]
Update NLS translations

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agompstat: Fix untrusted loop bound
Sebastien GODARD [Wed, 24 Nov 2021 17:33:08 +0000 (18:33 +0100)]
mpstat: Fix untrusted loop bound

Check that CPU value read from /proc/interrupts (or
/proc/softirqs) is within permissible range (CID#374284).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUpdate non regression tests files
Sebastien GODARD [Sun, 21 Nov 2021 16:38:16 +0000 (17:38 +0100)]
Update non regression tests files

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoMerge branch 'mpstat-fixes'
Sebastien GODARD [Sat, 20 Nov 2021 15:10:28 +0000 (16:10 +0100)]
Merge branch 'mpstat-fixes'

2 years agompstat: Update non regression tests
Sebastien GODARD [Sat, 20 Nov 2021 15:07:35 +0000 (16:07 +0100)]
mpstat: Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agompstat: Fix values displayed when an offline CPU goes back online
Sebastien GODARD [Sat, 20 Nov 2021 15:06:07 +0000 (16:06 +0100)]
mpstat: Fix values displayed when an offline CPU goes back online

Try to avoid values jumping from zero when an offline CPU goes back
online.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoMerge branch 'scop-grep-E'
Sebastien GODARD [Sun, 14 Nov 2021 10:47:34 +0000 (11:47 +0100)]
Merge branch 'scop-grep-E'

2 years agoMerge branch 'grep-E' of https://github.com/scop/sysstat into scop-grep-E
Sebastien GODARD [Sun, 14 Nov 2021 10:46:16 +0000 (11:46 +0100)]
Merge branch 'grep-E' of https://github.com/scop/sysstat into scop-grep-E

2 years agoMerge branch 'scop-spelling'
Sebastien GODARD [Sun, 14 Nov 2021 10:45:00 +0000 (11:45 +0100)]
Merge branch 'scop-spelling'

2 years agoMerge branch 'spelling' of https://github.com/scop/sysstat into scop-spelling
Sebastien GODARD [Sun, 14 Nov 2021 10:41:57 +0000 (11:41 +0100)]
Merge branch 'spelling' of https://github.com/scop/sysstat into scop-spelling

2 years agompstat: Update simulation tests results
Sebastien GODARD [Sun, 14 Nov 2021 10:30:43 +0000 (11:30 +0100)]
mpstat: Update simulation tests results

Offline CPU are no longer displayed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agompstat: Don't display offline CPU
Sebastien GODARD [Sun, 14 Nov 2021 10:28:11 +0000 (11:28 +0100)]
mpstat: Don't display offline CPU

Offline CPU are no longer displayed with options -I {SUM, CPU, SCPU}.
This was already the case with option -u. So this should make display
consistent for all options.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years ago*: use `grep -E` instead of `egrep`
Ville Skyttä [Sat, 13 Nov 2021 21:30:39 +0000 (23:30 +0200)]
*: use `grep -E` instead of `egrep`

`egrep` has been deprecated in GNU grep since 2007, and in current post
3.7 Git it has been made to emit obsolescence warnings:
https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1

2 years ago*: spelling and grammar fixes
Ville Skyttä [Sat, 13 Nov 2021 21:27:54 +0000 (23:27 +0200)]
*: spelling and grammar fixes

2 years agosadc: Reuse count results for sub-items
Sebastien GODARD [Sat, 13 Nov 2021 14:47:43 +0000 (15:47 +0100)]
sadc: Reuse count results for sub-items

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosysstest: Add more comments
Sebastien GODARD [Sat, 13 Nov 2021 14:42:08 +0000 (15:42 +0100)]
sysstest: Add more comments

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoMerge branch 'nanaze-javascript'
Sebastien GODARD [Thu, 4 Nov 2021 17:13:59 +0000 (18:13 +0100)]
Merge branch 'nanaze-javascript'

2 years agoUpdate man page with correct spelling of "JavaScript"
Nathan Naze [Fri, 29 Oct 2021 19:08:42 +0000 (12:08 -0700)]
Update man page with correct spelling of "JavaScript"

2 years agoiostat: Update non regression tests
Sebastien GODARD [Mon, 27 Sep 2021 05:43:41 +0000 (07:43 +0200)]
iostat: Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoiostat: Update manual page
Sebastien GODARD [Sun, 26 Sep 2021 08:39:42 +0000 (10:39 +0200)]
iostat: Update manual page

Explain --compact option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoiostat: Add --compact option (#303)
Sebastien GODARD [Sun, 26 Sep 2021 08:36:59 +0000 (10:36 +0200)]
iostat: Add --compact option (#303)

This option tells iostat to not break a report into sub-reports, as
--pretty option may do when there are many metrics to display.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUpdate FAQ
Sebastien GODARD [Sat, 11 Sep 2021 06:45:19 +0000 (08:45 +0200)]
Update FAQ

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosimtest: Add non regression tests for device mapper names used by iostat
Sebastien GODARD [Sat, 17 Jul 2021 06:31:43 +0000 (08:31 +0200)]
simtest: Add non regression tests for device mapper names used by iostat

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoiostat: Fix how device mapper names are taken into account
Sebastien GODARD [Sat, 17 Jul 2021 06:26:23 +0000 (08:26 +0200)]
iostat: Fix how device mapper names are taken into account

Make sure iostat takes into account registered device mapper names when
they are entered on the command line.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosimtest: Add new iostat non-regression test
Sebastien GODARD [Wed, 14 Jul 2021 09:49:52 +0000 (11:49 +0200)]
simtest: Add new iostat non-regression test

Add a test using a whole device's UUID on iostat command line.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoiostat: Always display persistent names with option -j
Sebastien GODARD [Wed, 14 Jul 2021 09:29:53 +0000 (11:29 +0200)]
iostat: Always display persistent names with option -j

When a persistent name (e.g. UUID) is entered on the command line,
iostat displayed the real name of the device instead of its persistent
name, e.g.:

$ iostat -d -j UUID 65ccf2b5-50de-4f89-bf8e-e3e88eae4c63
Linux 5.12.14-200.fc33.x86_64 (linux-1.home)  07/14/2021  _x86_64_ (8 CPU)

      tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscd Device
     1.89         6.73         0.00     31799.48      58452         12  276250680 sda

Fix this so that the persistent name appears in the report:

$ iostat -d -j UUID 65ccf2b5-50de-4f89-bf8e-e3e88eae4c63
Linux 5.12.14-200.fc33.x86_64 (linux-1.home)  07/14/2021  _x86_64_ (8 CPU)

      tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscd Device
     1.88         6.66         0.00     31489.67      58452         12  276250680 65ccf2b5-50de-4f89-bf8e-e3e88eae4c63

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosimtest: Add UUID name for /dev/sda
Sebastien GODARD [Wed, 14 Jul 2021 08:36:55 +0000 (10:36 +0200)]
simtest: Add UUID name for /dev/sda

Add a UUID name for a whole device (/dev/sda).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUpdate non regression tests
Sebastien GODARD [Thu, 10 Jun 2021 13:10:00 +0000 (15:10 +0200)]
Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosar: Tell the user to convert its file when needed
Sebastien GODARD [Thu, 10 Jun 2021 13:06:19 +0000 (15:06 +0200)]
sar: Tell the user to convert its file when needed

When sar or sadf tries to read a datafile with an old format, tell the
user that he can convert it to current format to be able to read it.
This message is displayed only for datafiles created by sysstat versions
9.1.6 and later. Datafiles older than 9.1.6 cannot be converted.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoStarting sysstat-12.5.5
Sebastien GODARD [Mon, 7 Jun 2021 12:30:29 +0000 (14:30 +0200)]
Starting sysstat-12.5.5

configure script updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosysstat-12.5.4 v12.5.4
Sebastien GODARD [Mon, 7 Jun 2021 12:21:29 +0000 (14:21 +0200)]
sysstat-12.5.4

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

This version brings better integration with PCP (thanks go to Nathan
Scott).
It also adds a small improvement to the pidstat command: Using option -e
and not specifying an interval nor a count value on the command line
will make pidstat show global task statistics when the task terminates.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agoUpdate NLS translations
Sebastien GODARD [Mon, 7 Jun 2021 12:05:56 +0000 (14:05 +0200)]
Update NLS translations

Sync with The Translation Project (Finish translation updated).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
2 years agosadf: PCP: Don't check for newly registered network interfaces
Sebastien GODARD [Mon, 7 Jun 2021 09:51:13 +0000 (11:51 +0200)]
sadf: PCP: Don't check for newly registered network interfaces

It is useless to check if current network interface has just been
registered or not before displaying its PCP statistics.
This is because PCP displays the raw counter values, not their variation
over the interval. Moreover the whole list of network interfaces present
in file has been created with each one having already its instance.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
3 years agoMerge branch 'pidstat-updates'
Sebastien GODARD [Tue, 11 May 2021 16:37:09 +0000 (18:37 +0200)]
Merge branch 'pidstat-updates'

3 years agoMerge branch 'non-reg-tests'
Sebastien GODARD [Tue, 11 May 2021 16:36:15 +0000 (18:36 +0200)]
Merge branch 'non-reg-tests'

3 years agopidstat: Simplify use of P_D_PID flag
Sebastien GODARD [Tue, 27 Apr 2021 06:58:47 +0000 (08:58 +0200)]
pidstat: Simplify use of P_D_PID flag

P_D_PID flag is set only when option -p is used on the command line.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
3 years agoAdd new non regression tests
Sebastien GODARD [Sat, 24 Apr 2021 14:09:30 +0000 (16:09 +0200)]
Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
3 years agoJanitorial fixes Part 1
Sebastien GODARD [Mon, 19 Apr 2021 08:19:34 +0000 (10:19 +0200)]
Janitorial fixes Part 1

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
3 years agoPCP: Update non regression test results
Sebastien GODARD [Sun, 11 Apr 2021 06:55:34 +0000 (08:55 +0200)]
PCP: Update non regression test results

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
3 years agoMerge pull request #287 from natoscott/pcp-metrics
GODARD Sebastien [Fri, 9 Apr 2021 12:35:55 +0000 (14:35 +0200)]
Merge pull request #287 from natoscott/pcp-metrics

Update sadf to use metadata matching the same metrics from PCP

3 years agoFix PCP issues found by Sebastien during code review
Nathan Scott [Thu, 8 Apr 2021 03:39:44 +0000 (13:39 +1000)]
Fix PCP issues found by Sebastien during code review

- Resolve duplication of kernel.all.nprocs by switching
  one over to kernel.all.sysfork to match Linux PCP
- Add total physical memory metrics
- Fix units metadata for the kernel.all.nptys metric
- Drop not-yet-used network interface metric defitions
  (speed, baudrate, duplex)
- Correct the spelling of "celsius"
- Resolve confusion with rq_ticks/rd_ticks disk fields

Relates to https://github.com/sysstat/sysstat/pull/287

3 years agoMerge branch 'parthsl-master'
Sebastien GODARD [Fri, 2 Apr 2021 14:31:22 +0000 (16:31 +0200)]
Merge branch 'parthsl-master'