[pve-devel] [PATCH] skip ballooning during migration

Alexandre Derumier aderumier at odiso.com
Fri Jan 4 11:14:07 CET 2013


avoid to add memory load overhead on the migration with balloon inflate/deflate

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/AutoBalloon.pm |    1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/AutoBalloon.pm b/PVE/AutoBalloon.pm
index b461795..62844de 100644
--- a/PVE/AutoBalloon.pm
+++ b/PVE/AutoBalloon.pm
@@ -93,6 +93,7 @@ sub compute_alg1 {
 	my $d = $vmstatus->{$vmid};
 	next if !$d->{balloon}; # skip if balloon driver not running
 	next if !$d->{balloon_min}; # skip if balloon value not set in config
+	next if $d->{lock} &&  $d->{lock} eq 'migrate'; 
 	next if defined($d->{shares}) && 
 	    ($d->{shares} == 0); # skip if shares set to zero
 
-- 
1.7.10.4




More information about the pve-devel mailing list