[pve-devel] [PATCH] balloon : reset pooling if balloon driver doesn't return memory stats

Alexandre DERUMIER aderumier at odiso.com
Thu Dec 20 09:44:04 CET 2012


>>I uploaded a fixed version - please test. 

Works perfectly ! (win2003 && win2008R2)

Thanks !



----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre Derumier" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
Envoyé: Jeudi 20 Décembre 2012 09:23:35 
Objet: RE: [pve-devel] [PATCH] balloon : reset pooling if balloon driver doesn't return memory stats 

Just found the bug - I forgot to re-arm the timer. 

I uploaded a fixed version - please test. 

> -----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 16:53 
> To: pve-devel at pve.proxmox.com 
> Subject: [pve-devel] [PATCH] balloon : reset pooling if balloon driver doesn't 
> return memory stats 
> 
> fix windows stats (tested on win2003 && win2008R2) 
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com> 
> --- 
> PVE/QemuServer.pm | 13 +++++++++++++ 
> 1 file changed, 13 insertions(+) 
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 
> 81a9351..7569d55 100644 
> --- a/PVE/QemuServer.pm 
> +++ b/PVE/QemuServer.pm 
> @@ -2057,6 +2057,19 @@ sub vmstatus { 
> $d->{freemem} = $info->{free_mem}; 
> } 
> 
> + if (defined($info->{last_update}) && !defined($info->{free_mem})){ 
> + $qmpclient->queue_cmd($vmid, undef, 'qom-set', 
> + path => "machine/peripheral/balloon0", 
> + property => "stats-polling-interval", 
> + value => 0); 
> + 
> + $qmpclient->queue_cmd($vmid, undef, 'qom-set', 
> + path => "machine/peripheral/balloon0", 
> + property => "stats-polling-interval", 
> + value => 2); 
> + } 
> + 
> + 
> }; 
> 
> my $blockstatscb = sub { 
> -- 
> 1.7.10.4 
> 
> _______________________________________________ 
> 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