How can I tell how much RAM is installed on a FreeBSD server?
Solution 1:
sysctl hw.physmem
Solution 2:
I usually look it up through dmesg messages, like
su-3.2# grep memory /var/run/dmesg.boot usable memory = 8571846656 (8174 MB) avail memory = 8270299136 (7887 MB) su-3.2#
Solution 3:
A quick and dirty way is to run the "top" utility.
Solution 4:
If you want to know the size and count of memory sticks in the machine, install dmidecode from the ports tree. It will read the DMI information from the Motherboard and give you lots of hardware configuration information.