Bug 1564440 - RFE: Virt-top in stream mode doesn't obey mode flags (-1, -2, -3).
Summary: RFE: Virt-top in stream mode doesn't obey mode flags (-1, -2, -3).
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-top
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-06 09:52 UTC by Marian Galiovsky
Modified: 2019-05-13 09:49 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-13 09:49:44 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Marian Galiovsky 2018-04-06 09:52:31 UTC
Description of problem:
It's not possible to configure virt-top in stream mode by command line or .virt-toprc file to display RXPK and TXPK statistics.

This is very useful to monitor the performance of the VMs as the packet throughput is more relevant load factor than byte count. 

Version-Release number of selected component (if applicable):
virt-top 1.0.8 ocaml-libvirt 0.6.1.2

How reproducible:
Run virt-top with --stream option.

Steps to Reproduce:
1.virt-top -n 2 --stream

Actual results:
virt-top time  09:22:17 Host svr_1 x86_64 56/56CPU 2899MHz 130960MB
   ID S RDRQ WRRQ RXBY TXBY %CPU %MEM   TIME    NAME
    1 R    0    0    0    0  0.0  0.0   8:24.04 OAM-A
virt-top time  09:22:20 Host svr_1 x86_64 56/56CPU 2899MHz 130960MB
   ID S RDRQ WRRQ RXBY TXBY %CPU %MEM   TIME    NAME
    1 R    1    0 176K  36K  0.1 12.0   8:24.28 OAM-A

Expected results:
virt-top time  09:22:17 Host svr_1 x86_64 56/56CPU 2899MHz 130960MB
   ID S RDRQ WRRQ RXBY TXBY RXPK TXPK %CPU %MEM   TIME    NAME
    1 R    0    0    0    0    0    0  0.0  0.0   8:24.04 OAM-A
virt-top time  09:22:20 Host svr_1 x86_64 56/56CPU 2899MHz 130960MB
   ID S RDRQ WRRQ RXBY TXBY RXPK TXPK %CPU %MEM   TIME    NAME
    1 R    1    0 176K  36K  370  201  0.1 12.0   8:24.28 OAM-A

Additional info:

Comment 2 Richard W.M. Jones 2018-04-06 10:09:48 UTC
I don't believe this is an actual bug.  However ...

The bigger issue here is that --stream ignores the current mode
(ie. the -1, -2 or -3 flag, it always displays the domains).
That's what needs to be fixed and then you could use

  virt-top -2 --stream

to display full information on network devices (only).

That wouldn't be what the bug reporter requests exactly, but
the reporter could use --csv output which records everything
including RXBY and TXBY.

BTW if you are a RHEL customer, ask your support person to
attach the customer case to this bug which will enhance the
bug priority.

Comment 4 Richard W.M. Jones 2019-05-13 09:49:44 UTC
Closing this as we're not planning any further work on virt-top in RHEL 7.
If this bug still affects you please work with upstream to fix the bug there.


Note You need to log in before you can comment on or make changes to this bug.