Fix memory limits

memory-swap actually means 'memory and swap together'.
This commit is contained in:
Nils Freydank 2023-10-01 19:12:12 +02:00
parent 290af04d1f
commit 5dfc2d3bb9
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
2 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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"