]> git.proxmox.com Git - pve-manager.git/commitdiff
skip ballooning during migration
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 4 Jan 2013 10:14:07 +0000 (11:14 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 4 Jan 2013 11:09:54 +0000 (12:09 +0100)
avoid to add memory load overhead on the migration with balloon inflate/deflate

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/AutoBalloon.pm

index b4617952712b6113172ac841ad8fd8db73607c5a..62844de7f20385388aa0eaeacf0d4fa43b1c339c 100644 (file)
@@ -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