Please note, build for x86_64 required 50+ GB of (RAM + SWAP).
This is probably due to the full LTO enabled by Arch Linux. Based on my
monitoring, memory usage does not go over 15 GB most of the build time,
but increases significantly towards the end of the build.
I was able to build with 32 GB of RAM, where entire chroot was on BTRFS in
ZSTD-compressed 32G zram drive, and SWAP was in another ZSTD 64G zram
drive. Since swapping starts only during the last phase, which uses mostly 1
CPU core, other cores were free for compression/decompression. Compression
ratio was about 1:4, so everything fit in RAM without wearing the SSD.
Didn't try to build on i686 and armv7h, also didn't check if there were any
updates from their upstreams, sorry for that.
Please note, build for x86_64 required 50+ GB of (RAM + SWAP).
This is probably due to the full LTO enabled by Arch Linux. Based on my
monitoring, memory usage does not go over 15 GB most of the build time,
but increases significantly towards the end of the build.
I was able to build with 32 GB of RAM, where entire chroot was on BTRFS in
ZSTD-compressed 32G zram drive, and SWAP was in another ZSTD 64G zram
drive. Since swapping starts only during the last phase, which uses mostly 1
CPU core, other cores were free for compression/decompression. Compression
ratio was about 1:4, so everything fit in RAM without wearing the SSD.
Didn't try to build on i686 and armv7h, also didn't check if there were any
updates from their upstreams, sorry for that.