I can not understand the root cause of your anxiousness about compiling with 8GB dram memory and no swap space FreeBSD partition. Add a USB SSD, via SanDisk extreme SSD disk. Place a swap partition there or create a swap file on existing disk space. I did run make build_world and make build_kernel on a Raspberry Pi 4B with 8 gigabytes memory and 8 gigabytes of swap partition space.
You assert having disk space available for the compilation, CORRECT? Then add a single SWAP file of size 2GB or larger like 4GB, or 8GB.
https://docs.freebsd.org/en/books/handbook/config/#create-swapfile
https://www.cyberciti.biz/faq/create-a-freebsd-swap-file/ May 28, 2024 Brand new post for you.
So i’d say, having swap partition/drive is nice if you do not over commit memory usage, system will not become slow due to swapping.
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/local/etc/pkg/repos # swapctl -l
Device: 1024-blocks Used:
/dev/gpt/swap 8388608 1828072
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/local/etc/pkg/repos # cat /etc/fstab
# /dev/gpt/rootfs / zfs rw,noatime 1 1
# / dev/gpt/esp /boot/efi msdosfs rw,noatime 0 0
/dev/gpt/swap none swap sw 0 0
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/local/etc/pkg/repos # swapinfo
Device 1K-blocks Used Avail Capacity
/dev/gpt/swap 8388608 1828072 6560536 22%
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/local/etc/pkg/repos # swapinfo -g
Device 1G-blocks Used Avail Capacity
/dev/gpt/swap 8 1 6 22%
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/local/etc/pkg/repos # swapinfo -M
swapinfo: option requires an argument -- M
usage: swapinfo [-ghkm] [-M core [-N system]]
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/local/etc/pkg/repos # swapinfo -m
Device 1M-blocks Used Avail Capacity
/dev/gpt/swap 8192 1785 6406 22%
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr/local/etc/pkg/repos #
I also ran Poudriere package builder on the Raspberry Pi 4B with 8 gb dram.
https://ghostbsd-arm64.blogspot.com/2023/10/poudriere-setup-to-compile-from.html
https://ghostbsd-arm64.blogspot.com/2023/10/poudriere-simple-tips-on-path-ccache.html
https://ghostbsd-arm64.blogspot.com/2023/07/learning-zfs-on-root-setup-for.html
https://ghostbsd-arm64.blogspot.com/2024/03/compile-gdb-for-aarch64-target-to-use.html
Some of these parameters might be useful to consider when build LLDB.
Wish you good success on your building LLDB also!!