/var/run/dmesg.boot
less /var/run/dmesg.boot | grep memory real memory = 4294967296 (4096 MB) avail memory = 4112658432 (3922 MB)
dmesg | grep memory real memory = 4294967296 (4096 MB) avail memory = 4112658432 (3922 MB)
sysctl -n hw.physmem | awk '{ byte =$1 /1024/1024/1024; print byte " GB" }' 3,96232 GB
Ссылки:
https://free-pc-help.ru/freebsd/kak-posmotret-razmer-ram-operativnoj-pamyati-v-freebsd
https://qastack.ru/server/56667/how-can-i-tell-how-much-ram-is-installed-on-a-freebsd-server