Changed maximum SWAP size from 32GiB to 16GiB
This commit is contained in:
@@ -46,8 +46,8 @@ if [[ "${1}" == '--disk' ]]; then
|
|||||||
if [[ "${enableSwap}" == "yes" ]]; then
|
if [[ "${enableSwap}" == "yes" ]]; then
|
||||||
swapSize="$(((($(vmstat -sS M | grep 'total memory' | sed 's/ M total memory//') / 1024) + 1) * 2))"
|
swapSize="$(((($(vmstat -sS M | grep 'total memory' | sed 's/ M total memory//') / 1024) + 1) * 2))"
|
||||||
|
|
||||||
if [[ "${swapSize#}" -gt '32' ]]; then
|
if [[ "${swapSize#}" -gt '16' ]]; then
|
||||||
swapSize='32'
|
swapSize='16'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sgdisk \
|
sgdisk \
|
||||||
|
|||||||
Reference in New Issue
Block a user