diff options
author | Felix Yan <felixonmars@archlinux.org> | 2022-11-02 00:44:50 +0000 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-01-06 16:25:46 +0100 |
commit | 112026580d21c35b505de2378f21580d274e898f (patch) | |
tree | c2281a4f96d43d8637d3f34a056ed9bb4144a801 /src/archbuild.in | |
parent | f870ab6864bedcf9e5af137214aa9bc726b8299c (diff) | |
download | devtools-112026580d21c35b505de2378f21580d274e898f.tar.xz |
makechrootpkg: make /tmp inside nspawn larger
systemd by default limits the /tmp folder to be 10% of the host memory:
https://github.com/systemd/systemd/blob/6f2cea06bfce6ad99f0ac37ab12af61ef7549fe3/src/shared/mount-util.h#L33
This is problematic to our builds because many toolchains opt to put
build artifacts in /tmp, and expecting the host memory to be 10 times
larger is not optimal or even realistic sometimes.
This MR attempts to enlarge it to 50% memory as the host machine's
default value of /tmp. This should be a fair compromise between being
overly conservative and taking up too much memory to crash the system.
Diffstat (limited to 'src/archbuild.in')
0 files changed, 0 insertions, 0 deletions