[pve-devel] [PATCH] migrate : remove expected_downtime value

Dietmar Maurer dietmar at proxmox.com
Wed Feb 13 12:11:18 CET 2013


Already removed:

https://git.proxmox.com/?p=qemu-server.git;a=commit;h=0302101cf133693b2b02a9b3b91030ac3adf606d

> -----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, 13. Februar 2013 10:56
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] migrate : remove expected_downtime value
> 
> no more available in qemu 1.4
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  PVE/QemuMigrate.pm |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index
> de2ee57..fb23d81 100644
> --- a/PVE/QemuMigrate.pm
> +++ b/PVE/QemuMigrate.pm
> @@ -427,12 +427,11 @@ sub phase2 {
>  		my $xbzrlepages = $stat->{"xbzrle-cache"}->{"pages"} || 0;
>  		my $xbzrlecachemiss = $stat->{"xbzrle-cache"}->{"cache-
> miss"} || 0;
>  		my $xbzrleoverflow = $stat->{"xbzrle-cache"}->{"overflow"}
> || 0;
> -		my $expected_downtime = $stat->{"expected-downtime"} ||
> 0;
>  		#reduce sleep if remainig memory if lower than the everage
> transfert
>  		$usleep = 300000 if $avglstat && $rem < $avglstat;
> 
>  		$self->log('info', "migration status: $stat->{status}
> (transferred ${trans}, " .
> -			   "remaining ${rem}), total ${total}) , expected
> downtime ${expected_downtime}");
> +			   "remaining ${rem}), total ${total})");
> 
>  		#$self->log('info', "migration xbzrle cachesize:
> ${xbzrlecachesize} transferred ${xbzrlebytes} pages ${xbzrlepages} cachemiss
> ${xbzrlecachemiss} overflow ${xbzrleoverflow}");
>  		if (($lastrem  && $rem > $lastrem ) || ($rem == 0)) {
> --
> 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