The option --end-time of the virt-top doesn't work correctly

Solution Verified - Updated -

Issue

  • "virt-top --end-time +<secs>" doesn't work as the specified time. 
  • Even if 300 is specified to <secs>, the virt-top completes in about 3 seconds.
    # time virt-top --end-time +300
    
     virt-top 11:47:47 - x86_64 8/8CPU 2493MHz 11913MB
     5 domains, 4 active, 3 running, 0 sleeping, 1 paused, 1 inactive D:0 O:0 X:0
     CPU: 0.0%  Mem: 3584 MB (3584 MB by guests)
    
       ID S RDRQ WRRQ RXBY TXBY %CPU %MEM    TIME   NAME
        3 R                      0.0  8.0 133:09.77 KT-RHEL5
       10 R                      0.0  4.0   5:21.44 KT-TEST1
        4 R                      0.0  8.0 231:34.42 KT-TEST2
       11 P                      0.0  8.0   3:37.14 RHEL60-SS13
        -                                           (KT-RHEL53)
    
      real    0m3.193s
      user    0m0.013s
      sys     0m0.006s
    

Environment

  • Red Hat Enterprise Linux 6
  • virt-top-1.0.4-3.1.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content