Skip to content

Commit

Permalink
Raise memory requirements to create a swap file
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Jan 10, 2024
1 parent f3993d3 commit 493373f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install-Debian/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion install-RedHat/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 493373f

Please sign in to comment.