Received: from eggs.gnu.org ([2001:4830:134:3::10]:35680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUrVL-0002St-1Q for qemu-devel@nongnu.org; Mon, 09 Mar 2015 02:49:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUrVF-0006J9-Gn for qemu-devel@nongnu.org; Mon, 09 Mar 2015 02:49:30 -0400 Received: from mailpro.odiso.net ([89.248.209.98]:46604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUrVF-0006J3-9O for qemu-devel@nongnu.org; Mon, 09 Mar 2015 02:49:25 -0400 Date: Mon, 9 Mar 2015 07:49:22 +0100 (CET) From: Alexandre DERUMIER Message-ID: <1295423186.3285313.1425883762941.JavaMail.zimbra@oxygem.tv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] balloon stats not working if qemu is started with -machine option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , lcapitulino@redhat.com Cc: dietmar Hi, I have noticed that balloon stats are not working if a qemu guest is starte= d with -machine option. (-machine pc, or any version) . Tested of qemu 1.7,2.1 && 2.2 When the guest is starting (balloon driver not yet loaded) $VAR1 =3D { 'last-update' =3D> 0, 'stats' =3D> { 'stat-free-memory' =3D> -1, 'stat-swap-in' =3D> -1, 'stat-total-memory' =3D> -1, 'stat-major-faults' =3D> -1, 'stat-minor-faults' =3D> -1, 'stat-swap-out' =3D> -1 } }; then when the guest has loaded his driver $VAR1 =3D { 'last-update' =3D> 1425882998, 'stats' =3D> { 'stat-free-memory' =3D> -1, 'stat-swap-in' =3D> '4039065379203448832', 'stat-total-memory' =3D> -1, 'stat-major-faults' =3D> -1, 'stat-minor-faults' =3D> -1, 'stat-swap-out' =3D> '-6579759055588294656' } }; $VAR1 =3D { 'last-update' =3D> 1425882998, 'stats' =3D> { 'stat-free-memory' =3D> -1, 'stat-swap-in' =3D> '4039065379203448832', 'stat-total-memory' =3D> -1, 'stat-major-faults' =3D> -1, 'stat-minor-faults' =3D> -1, 'stat-swap-out' =3D> '-6579759055588294656' } }; $VAR1 =3D { 'last-update' =3D> 1425882998, 'stats' =3D> { 'stat-free-memory' =3D> -1, 'stat-swap-in' =3D> '4039065379203448832', 'stat-total-memory' =3D> -1, 'stat-major-faults' =3D> -1, 'stat-minor-faults' =3D> -1, 'stat-swap-out' =3D> '-6579759055588294656' } }; It's seem that a some stats are retrieved, but last-update don't increment. Removing the machine option resolve the problem. I'm working with proxmox team, and a lot of user have reported balloning bu= g, because we pass the -machine option when are a doing live migration. I'm surprised that -machine pc also have this bug. (Isn't it supposed to be= the default machine config ?) here the sample command line: /usr/bin/kvm -id 150 -chardev socket,id=3Dqmp,path=3D/var/run/qemu-server/= 150.qmp,server,nowait -mon chardev=3Dqmp,mode=3Dcontrol -vnc unix:/var/run/= qemu-server/150.vnc,x509,password -pidfile /var/run/qemu-server/150.pid -da= emonize -smbios type=3D1,manufacturer=3Ddell,version=3D1,product=3D3,uuid= =3Df0686bfb-50b8-4d31-a4cb-b1cf60eeb648 -name debianok -smp 1,sockets=3D2,c= ores=3D1,maxcpus=3D2 -nodefaults -boot menu=3Don,strict=3Don,reboot-timeout= =3D1000 -vga cirrus -cpu kvm64,+lahf_lm,+x2apic,+sep -m 4096 -k fr -device = piix3-usb-uhci,id=3Duhci,bus=3Dpci.0,addr=3D0x1.0x2 -device usb-tablet,id= =3Dtablet,bus=3Duhci.0,port=3D1 -device virtio-balloon-pci,id=3Dballoon0,bu= s=3Dpci.0,addr=3D0x3 -iscsi initiator-name=3Diqn.1993-08.org.debian.01.24b0= d01a62a3 -drive file=3D/var/lib/vz/images/150/vm-150-disk-1.raw,if=3Dnone,i= d=3Ddrive-virtio0,format=3Draw,aio=3Dnative,cache=3Dnone -device virtio-blk= -pci,drive=3Ddrive-virtio0,id=3Dvirtio0,bus=3Dpci.0,addr=3D0xa,bootindex=3D= 100 -netdev type=3Dtap,id=3Dnet0,ifname=3Dtap150i0,script=3D/var/lib/qemu-s= erver/pve-bridge,downscript=3D/var/lib/qemu-server/pve-bridgedown,vhost=3Do= n -device virtio-net-pci,mac=3D76:EF:E9:ED:9D:41,netdev=3Dnet0,bus=3Dpci.0,= addr=3D0x12,id=3Dnet0,bootindex=3D300 -machine pc