From 493373f257634aeadb509c0874f32eeca458b91c Mon Sep 17 00:00:00 2001 From: Evgeniy Antonyuk Date: Wed, 10 Jan 2024 12:56:01 +0800 Subject: [PATCH] Raise memory requirements to create a swap file --- install-Debian/tools.sh | 2 +- install-RedHat/tools.sh | 2 +- install.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install-Debian/tools.sh b/install-Debian/tools.sh index bf36906..b85aa4c 100644 --- a/install-Debian/tools.sh +++ b/install-Debian/tools.sh @@ -4,7 +4,7 @@ set -e make_swap () { DISK_REQUIREMENTS=6144; #6Gb free space - MEMORY_REQUIREMENTS=11000; #RAM ~12Gb + MEMORY_REQUIREMENTS=16384; #RAM ~16Gb AVAILABLE_DISK_SPACE=$(df -m / | tail -1 | awk '{ print $4 }'); TOTAL_MEMORY=$(free -m | grep -oP '\d+' | head -n 1); diff --git a/install-RedHat/tools.sh b/install-RedHat/tools.sh index eda9bc3..cdbf433 100644 --- a/install-RedHat/tools.sh +++ b/install-RedHat/tools.sh @@ -4,7 +4,7 @@ set -e function make_swap () { local DISK_REQUIREMENTS=6144; #6Gb free space - local MEMORY_REQUIREMENTS=11000; #RAM ~12Gb + local MEMORY_REQUIREMENTS=16384; #RAM ~16Gb local AVAILABLE_DISK_SPACE=$(df -m / | tail -1 | awk '{ print $4 }'); local TOTAL_MEMORY=$(free -m | grep -oP '\d+' | head -n 1); diff --git a/install.sh b/install.sh index ad36c76..e6cc7f0 100644 --- a/install.sh +++ b/install.sh @@ -739,7 +739,7 @@ check_hardware () { make_swap () { DISK_REQUIREMENTS=6144; #6Gb free space - MEMORY_REQUIREMENTS=11000; #RAM ~12Gb + MEMORY_REQUIREMENTS=16384; #RAM ~16Gb AVAILABLE_DISK_SPACE=$(df -m / | tail -1 | awk '{ print $4 }'); TOTAL_MEMORY=$(free -m | grep -oP '\d+' | head -n 1);