Bug 2027350

Summary: vmstat should have a -y option like iostat or ignore the first sample line
Product: Red Hat Enterprise Linux 8 Reporter: Paulo Andrade <pandrade>
Component: procps-ngAssignee: Jan Rybar <jrybar>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.4CC: kvolny
Target Milestone: rcKeywords: Patch, Triaged, Upstream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: procps-ng-3.3.15-8.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 10:43:42 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paulo Andrade 2021-11-29 13:13:52 UTC
When running something like:

vmstat 1 5

The first line should be ignore as it did not measure it from
a previous sample, but from zero or boot time values.

The iostat command has the -y command line option to workaround
this problem, what could be a good similar option.

From iostat manual page:

       -y     Omit first report with statistics since system boot, if displaying multiple records at given interval.

Comment 5 errata-xmlrpc 2022-11-08 10:43:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (procps-ng bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7687