[pve-devel] [PATCH 2/2] limit swapsize to 12GB
Wolfgang Link
w.link at proxmox.com
Fri Feb 26 09:03:21 CET 2016
It is waste of disk space to allocate more then 12GB swap-partition.
---
proxinstall | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxinstall b/proxinstall
index 3469e64..9eb48d1 100755
--- a/proxinstall
+++ b/proxinstall
@@ -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 = 12 if $ss > 12;
$swapsize = $ss*1024*1024;
}
}
--
2.1.4
More information about the pve-devel
mailing list