From 5dfc2d3bb9ed2e8d864d7754f4aa6ae75074725c Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sun, 1 Oct 2023 19:12:12 +0200 Subject: [PATCH] Fix memory limits memory-swap actually means 'memory and swap together'. --- build-image.sh | 3 ++- build-packages.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build-image.sh b/build-image.sh index d35a7f7..4f2e489 100755 --- a/build-image.sh +++ b/build-image.sh @@ -21,7 +21,8 @@ PODMAN_BUILD_ARGS=( --no-hosts # Limit the memory to be used. --memory=20G - --memory-swap=1G + # memory-swap is the sum of RAM and swap. + --memory-swap=21G --shm-size=2G # Share the gentoo repo, overlays etc. -v "${REPOS}:/var/db/repos:ro" diff --git a/build-packages.sh b/build-packages.sh index a6feede..14f7b88 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -22,7 +22,8 @@ PODMAN_BUILD_ARGS=( -ti # Limit the memory to be used. --memory=20G - --memory-swap=1G + # memory-swap is the sum of RAM and swap. + --memory-swap=21G --shm-size=2G # Share the portage configuration. -v "${PACKAGE_USE}:/etc/portage/package.use:ro"