]> git.proxmox.com Git - pve-installer.git/commitdiff
limit swapsize to 8GB
authorWolfgang Link <w.link@proxmox.com>
Fri, 26 Feb 2016 08:03:21 +0000 (09:03 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 26 Feb 2016 08:32:37 +0000 (09:32 +0100)
It is waste of disk space to allocate more then 8GB swap-partition.

proxinstall

index 6d2792ac10b0cdab7ad604fdeb5620ca12bb5c8b..aa3670b30c34f8f26e274be087c20735cdfca498 100755 (executable)
@@ -865,6 +865,7 @@ sub compute_swapsize {
        my $ss = int ($total_memory / 1024);
        $ss = 4 if $ss < 4;
        $ss = ($hdgb/8) if $ss > ($hdgb/8);
+       $ss = 8 if $ss > 8;
        $swapsize = $ss*1024*1024;
     }
 }