[pve-devel] balloon stats on win2008r2 working
Alexandre DERUMIER
aderumier at odiso.com
Wed Dec 19 15:52:33 CET 2012
I have found a simple way to get it working.
- set polling interval at start (2) (current implementation)
during boot, balloon info return only actual && max_mem.
- when windows will be booted,with balloon service on,
info ballon will give us "last_update" value, but not free_mem.
(last_update value is only return when balloon service is working).
- then,we simply need to launch
qom-set path=/machine/peripheral/balloon0 property=stats-polling-interval value=3 (!= from initial value)
and now balloon info return free_mem
Note also that last_update value not increase before resend qom-set, so we can also check that, if it's not increasing, resend qom-set
What Do you think ?
----- Mail original -----
De: "Alexandre DERUMIER" <aderumier at odiso.com>
À: "Dietmar Maurer" <dietmar at proxmox.com>
Cc: pve-devel at pve.proxmox.com
Envoyé: Mercredi 19 Décembre 2012 13:09:35
Objet: Re: [pve-devel] balloon stats on win2008r2 working
Works for me,
but I need to send a stats-polling-interval != from the start stats-polling-interval
(maybe it's not resend to the balloon driver if the value is equal)
Don't know why balloon device works differently on windows, but it seem to get the stats-polling-interval value, only when windows is fully started.
working (started with interval=2)
--------------------------------
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-polling-interval
{u'return': 2}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-set path=/machine/peripheral/balloon0 property=stats-polling-interval value=3
{u'return': {}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'return': 1765240832}
non working (started with interval=2)
------------------------------------
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-polling-interval
{u'return': 2}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
(QEMU) qom-set path=/machine/peripheral/balloon0 property=stats-polling-interval value=2
{u'return': {}}
(QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-memory
{u'error': {u'class': u'GenericError', u'desc': u"timer hasn't been enabled or guest doesn't support 'stat-free-memory'"}}
----- Mail original -----
De: "Dietmar Maurer" <dietmar at proxmox.com>
À: "Alexandre DERUMIER" <aderumier at odiso.com>, pve-devel at pve.proxmox.com
Envoyé: Mercredi 19 Décembre 2012 12:45:31
Objet: RE: [pve-devel] balloon stats on win2008r2 working
that does not work here :-/
> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Alexandre DERUMIER
> Sent: Mittwoch, 19. Dezember 2012 12:05
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] balloon stats on win2008r2 working
>
> - I have just installed a win2008R2 (X64)
>
> install ballon driver
>
> -go to hardware devices management, find pci device without driver.
> -> update driver->choose disk
>
> then using 0.48 virtio driver, choose the whl directory
>
>
>
> then install service (I put files in c:\program files\balloon)
>
> #cd c:\program files\balloon
> #blnsrv --install
>
> #reboot
>
> then stats works
>
> (QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-
> polling-interval
> {u'return': 0}
> (QEMU) qom-set path=/machine/peripheral/balloon0 property=stats-
> polling-interval value=10
> {u'return': 10}
> (QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-
> polling-interval
> {u'return': 10}
> (QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-last-
> update
> {u'return': 1355914831}
> (QEMU) qom-get path=/machine/peripheral/balloon0 property=stats-last-
> update
> {u'return': 1355914841}
> (QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-free-
> memory
> {u'return': 1765306368}
> (QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-total-
> memory
> {u'return': 2147074048}
> (QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-swap-in
> {u'return': 2440}
> (QEMU) qom-get path=/machine/peripheral/balloon0 property=stat-swap-
> out
> {u'return': 0}
> (QEMU)
>
>
> I didn't have tested it with setting polling interval at start, I'll try with your last
> qemu-serve today
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
_______________________________________________
pve-devel mailing list
pve-devel at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list