Bug 639534

Summary: #virsh dommemstat does not return any output
Product: Red Hat Enterprise Linux 6 Reporter: Humble Chirammal <hchiramm>
Component: qemu-kvmAssignee: Luiz Capitulino <lcapitulino>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: amit.shah, dallan, eblake, juzhang, lcapitulino, mkenneth, moshiro, virt-maint, xen-maint
Target Milestone: rc   
Target Release: 6.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-09 18:31:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 626958    
Bug Blocks: 645519, 748534, 756082    

Description Humble Chirammal 2010-10-02 07:54:42 UTC
Description of problem:

#virsh dommemstat does not give the memory statitics of a running domain. 


--snip-- from #man virsh


       dommemstat domain
           Get memory stats for a running domain.



--/snip--

Version-Release number of selected component (if applicable):

libvirt-client-0.8.1-13.el6.x86_64


Steps to Reproduce:

[root@dhcp210-84 ~]# virsh list
 Id Name                 State
----------------------------------
  3 rhel6                running

[root@dhcp210-84 ~]# virsh dommemstat rhel6

[root@dhcp210-84 ~]# echo $?
0
[root@dhcp210-84 ~]# 

The command exited successfully, how-ever there is no output.
  
Actual results:

Virsh command failed to return memory statistics.

Expected results:

It should return memory statistics of the specified domain

--Humble

Comment 1 RHEL Program Management 2010-10-02 08:08:17 UTC
Thank you for your bug report. This issue was evaluated for inclusion
in the current release of Red Hat Enterprise Linux. Unfortunately, we
are unable to address this request in the current release. Because we
are in the final stage of Red Hat Enterprise Linux 6 development, only
significant, release-blocking issues involving serious regressions and
data corruption can be considered.

If you believe this issue meets the release blocking criteria as
defined and communicated to you by your Red Hat Support representative,
please ask your representative to file this issue as a blocker for the
current release. Otherwise, ask that it be evaluated for inclusion in
the next minor release of Red Hat Enterprise Linux.

Comment 2 Osier Yang 2010-12-08 08:46:15 UTC
This is caused by qemu disabled extended memory stats by commit:

commit 07b0403dfc2b2ac179ae5b48105096cc2d03375a
Author: Eduardo Habkost <ehabkost>
Date:   Tue Sep 14 13:43:39 2010 -0300

    disable guest-provided stats on "info balloon" command
    
    The addition of memory stats reporting to the virtio balloon causes
    the 'info balloon' command to become asynchronous.  This is a regression
    because in some cases it can hang the user monitor.
    
    This is an alternative to Adam Litke's patch. Adam's patch disabled the
    corresponding (guest-visible) virtio feature bit, causing issues for migration.
    Original discussion is available at:
    http://marc.info/?l=qemu-devel&m=128448124328314&w=2
    
    Signed-off-by: Eduardo Habkost <ehabkost>
    Acked-by: Adam Litke <agl.com>

Comment 13 Luiz Capitulino 2011-12-09 18:31:02 UTC

*** This bug has been marked as a duplicate of bug 626958 ***