Bug 696098

Summary: virsh dommemstat does not give the memory statitics of a running domain.
Product: Red Hat Enterprise Linux 6 Reporter: IBM Bug Proxy <bugproxy>
Component: qemu-kvmAssignee: Amit Shah <amit.shah>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: balkov, eblake, hannsj_uhl, jdenemar, jkachuck, mkenneth, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-30 10:33:58 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:    
Bug Blocks: 684953    

Description IBM Bug Proxy 2011-04-13 09:10:44 UTC
---Problem Description---
virsh dommemstat does not give the memory statitics of a running domain. 
 
---uname output---
Linux mx3650a.in.ibm.com 2.6.32-128.el6.x86_64 #1 SMP Mon Mar 28 21:55:33 EDT 2011 x86_64 x86_64
x86_64 GNU/Linux
 
Machine Type = x3650 
 
---Steps to Reproduce---
 
[root@mx3650a onnm]# virsh --help | grep memory 
    memtune                        Get or set memory parameters
    setmaxmem                      change maximum memory limit
    setmem                         change memory allocation
    dommemstat                     get memory statistics for a domain
    freecell                       NUMA free memory
[root@mx3650a onnm]# virsh list 
 Id Name                 State
----------------------------------
 14 vm00-RHEL48          running
 16 vm00-RHEL48-SMP      running

[root@mx3650a onnm]# virsh dommemstat 16

[root@mx3650a onnm]# virsh dommemstat vm00-RHEL48-SMP

[root@mx3650a onnm]# virsh dommemstat 14

[root@mx3650a onnm]# virsh dommemstat vm00-RHEL48

[root@mx3650a onnm]# 
 
---KVM Component Data--- 
Userspace tool common name: libvirt 
 
The userspace tool has the following bit modes: 32 

Userspace rpm: libvirt-0.8.7-15.el6.x86_64 

Userspace tool obtained from project website:  na 
 

=Comment: #2=================================================

1.Server architecture(s) (please list all effected) (x86/POWER6/Z/etc.):  x86

2.Server type (9117-MMA/HS20/s390/etc.):   x3650

3.General component (desktop/kernel/base OS/dev tools/etc.):  libvirt

4.Other components involved (ixgbe/java/emulex/etc.):  NA

5.Does the server have the latest GA firmware?  yes

6.Has the problem been shown to occur on more than one system?  Yes

7.Is a tested patch available?   no
  If yes to the above, has it been approved upstream? 

8.What is the latest official Red Hat build on which this bug has been
seen? RHEL6.1 snap2


Note : This bug looks similar to https://bugzilla.redhat.com/show_bug.cgi?id=679668. But it does not
say when it will get fixed. We want to understand when it will get fixed.

Comment 1 IBM Bug Proxy 2011-04-13 09:10:52 UTC
------- Comment From pradeepkumars.com 2011-04-13 05:09 EDT-------
systemtap logs are attached to   ftp://testcase.software.ibm.com/

One can access via Anonymous
Dir: /toibm/linux/

File name: systemtap.log-IBM71496

--Pradeep

Comment 3 Jiri Denemark 2011-04-13 11:35:02 UTC
Memory statistics are currently disabled in qemu-kvm; hw/virtio-balloon.c contains the following two lines:

/* Disable guest-provided stats by now (bz#623903, bz#626544) */
#define ENABLE_GUEST_STATS   0

I'm not sure what the complete story behind this is since both BZs are currently marked as closed.

Comment 5 IBM Bug Proxy 2011-04-27 15:27:21 UTC
------- Comment From vahegde1.ibm.com 2011-04-27 10:27 EDT-------
Hi Jiri / Red Hat ,
(In reply to comment #7)
> Memory statistics are currently disabled in qemu-kvm; hw/virtio-balloon.c
> contains the following two lines:
>
> /* Disable guest-provided stats by now (bz#623903, bz#626544) */
> #define ENABLE_GUEST_STATS   0
>
> I'm not sure what the complete story behind this is since both BZs are
> currently marked as closed.

From qemu-kvm mainstream discussion I understand that because of regression issue they have disabled this feature. Any idea when it will be implemented ?

And can we have some meaning full information displayed till this comment implemented ?

something like below :
--> "Currently this feature is not supported."

Thanks
Vasant

Comment 6 IBM Bug Proxy 2011-05-16 08:40:25 UTC
------- Comment From pradeepkumars.com 2011-05-16 04:39 EDT-------
Hello Redhat

ANy updates?

Comment 7 Amit Shah 2011-05-30 10:33:58 UTC
Bug 626958 tracks re-adding virtio balloon stats.  Adam Litke from IBM was pursuing the fixes upstream.  It looks like this won't be ready before the new QAPI is merged upstream.  Marking as duplicate of the other bug.

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