Received: from eggs.gnu.org ([2001:4830:134:3::10]:37418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUrod-0001pY-8q for qemu-devel@nongnu.org; Mon, 09 Mar 2015 03:09:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUroX-0003nL-4A for qemu-devel@nongnu.org; Mon, 09 Mar 2015 03:09:27 -0400 Received: from mailpro.odiso.net ([89.248.209.98]:47656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUroW-0002aB-Qo for qemu-devel@nongnu.org; Mon, 09 Mar 2015 03:09:21 -0400 Date: Mon, 9 Mar 2015 08:04:54 +0100 (CET) From: Alexandre DERUMIER Message-ID: <1145290529.3285891.1425884694220.JavaMail.zimbra@oxygem.tv> In-Reply-To: <1636149806.3285885.1425884675011.JavaMail.zimbra@oxygem.tv> References: <1295423186.3285313.1425883762941.JavaMail.zimbra@oxygem.tv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [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 , Luiz Capitulino Cc: dietmar I have forgot to said that we don't setup pooling interval manually. (which= seem to works fine without -machine) Now,if I setup guest-stats-polling-interval with qom-set, it seem to works fine with -machine option. ----- Mail original ----- De: "aderumier" =C3=80: "qemu-devel" , "Luiz Capitulino" Cc: "dietmar" Envoy=C3=A9: Lundi 9 Mars 2015 07:49:22 Objet: [Qemu-devel] balloon stats not working if qemu is started with=09-ma= chine option Hi,=20 I have noticed that balloon stats are not working if a qemu guest is starte= d with -machine option.=20 (-machine pc, or any version) . Tested of qemu 1.7,2.1 && 2.2=20 When the guest is starting (balloon driver not yet loaded)=20 $VAR1 =3D {=20 'last-update' =3D> 0,=20 'stats' =3D> {=20 'stat-free-memory' =3D> -1,=20 'stat-swap-in' =3D> -1,=20 'stat-total-memory' =3D> -1,=20 'stat-major-faults' =3D> -1,=20 'stat-minor-faults' =3D> -1,=20 'stat-swap-out' =3D> -1=20 }=20 };=20 then=20 when the guest has loaded his driver=20 $VAR1 =3D {=20 'last-update' =3D> 1425882998,=20 'stats' =3D> {=20 'stat-free-memory' =3D> -1,=20 'stat-swap-in' =3D> '4039065379203448832',=20 'stat-total-memory' =3D> -1,=20 'stat-major-faults' =3D> -1,=20 'stat-minor-faults' =3D> -1,=20 'stat-swap-out' =3D> '-6579759055588294656'=20 }=20 };=20 $VAR1 =3D {=20 'last-update' =3D> 1425882998,=20 'stats' =3D> {=20 'stat-free-memory' =3D> -1,=20 'stat-swap-in' =3D> '4039065379203448832',=20 'stat-total-memory' =3D> -1,=20 'stat-major-faults' =3D> -1,=20 'stat-minor-faults' =3D> -1,=20 'stat-swap-out' =3D> '-6579759055588294656'=20 }=20 };=20 $VAR1 =3D {=20 'last-update' =3D> 1425882998,=20 'stats' =3D> {=20 'stat-free-memory' =3D> -1,=20 'stat-swap-in' =3D> '4039065379203448832',=20 'stat-total-memory' =3D> -1,=20 'stat-major-faults' =3D> -1,=20 'stat-minor-faults' =3D> -1,=20 'stat-swap-out' =3D> '-6579759055588294656'=20 }=20 };=20 It's seem that a some stats are retrieved, but last-update don't increment.= =20 Removing the machine option resolve the problem.=20 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.=20 I'm surprised that -machine pc also have this bug. (Isn't it supposed to be= the default machine config ?)=20 here the sample command line:=20 /usr/bin/kvm -id 150 -chardev socket,id=3Dqmp,path=3D/var/run/qemu-server/1= 50.qmp,server,nowait -mon chardev=3Dqmp,mode=3Dcontrol -vnc unix:/var/run/q= emu-server/150.vnc,x509,password -pidfile /var/run/qemu-server/150.pid -dae= monize -smbios type=3D1,manufacturer=3Ddell,version=3D1,product=3D3,uuid=3D= f0686bfb-50b8-4d31-a4cb-b1cf60eeb648 -name debianok -smp 1,sockets=3D2,core= s=3D1,maxcpus=3D2 -nodefaults -boot menu=3Don,strict=3Don,reboot-timeout=3D= 1000 -vga cirrus -cpu kvm64,+lahf_lm,+x2apic,+sep -m 4096 -k fr -device pii= x3-usb-uhci,id=3Duhci,bus=3Dpci.0,addr=3D0x1.0x2 -device usb-tablet,id=3Dta= blet,bus=3Duhci.0,port=3D1 -device virtio-balloon-pci,id=3Dballoon0,bus=3Dp= ci.0,addr=3D0x3 -iscsi initiator-name=3Diqn.1993-08.org.debian.01.24b0d01a6= 2a3 -drive file=3D/var/lib/vz/images/150/vm-150-disk-1.raw,if=3Dnone,id=3Dd= rive-virtio0,format=3Draw,aio=3Dnative,cache=3Dnone -device virtio-blk-pci,= drive=3Ddrive-virtio0,id=3Dvirtio0,bus=3Dpci.0,addr=3D0xa,bootindex=3D100 -= netdev type=3Dtap,id=3Dnet0,ifname=3Dtap150i0,script=3D/var/lib/qemu-server= /pve-bridge,downscript=3D/var/lib/qemu-server/pve-bridgedown,vhost=3Don -de= vice virtio-net-pci,mac=3D76:EF:E9:ED:9D:41,netdev=3Dnet0,bus=3Dpci.0,addr= =3D0x12,id=3Dnet0,bootindex=3D300 -machine pc=20