summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXenHat2023-04-03 10:18:03 -0400
committerXenHat2023-04-03 10:18:03 -0400
commit77b531b47815a0369b8fc159b5dd9b18b11e57ec (patch)
tree42ea3aa8d8e7cf406efdde79158fb2685306e498
parente5985929da06308c57d5a7ae522196fcceccc613 (diff)
downloadaur-77b531b47815a0369b8fc159b5dd9b18b11e57ec.tar.gz
2GB per process does work!
-rwxr-xr-xcompile.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.bash b/compile.bash
index 128109463224..e93d655de125 100755
--- a/compile.bash
+++ b/compile.bash
@@ -33,7 +33,7 @@ build() {
if [[ -z "$NO_SMART_JOB_COUNT" ]]; then
if [[ ${build_jobs} -gt 1 ]]; then
jobs=1
- # The viewer requires an average of 4GB of memory per core to link
+ # The viewer requires an average of 2GB of memory per core to link
# Note: Behaviour change compared to the previous versions:
# This script will no longer try to allocate build memory into swap
# This is bad practice, and swap should be reserved to evict process
@@ -41,7 +41,7 @@ build() {
# This script will now try to check if swap is present and sufficent
# for the current used memory to be stored in swap before allocating,
# and will fallback to conservative allocation if swap is not available
- gigperlinkprocess=4
+ gigperlinkprocess=2
mempercorekb=$((gigperlinkprocess * 1048576))
requiredmemorykb=$(($(nproc) * mempercorekb))
free_output="$(free --kilo --total | tail -n+2 | tr -s ' ')"