Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

As per the title:

How can I tell how much RAM is installed on a FreeBSD server?


share|improve this question

6 Answers 6

up vote 23 down vote accepted
sysctl hw.physmem
share|improve this answer

A quick and dirty way is to run the "top" utility.

share|improve this answer

Take a look at http://www.cyberciti.biz/faq/freebsd-command-to-get-ram-information/

share|improve this answer
supplying links to offsite information is discouraged as they have the tendency to go stale –  ssc Jun 7 '14 at 16:24

I use the free -m command on Linux. Here is an article on different ways of getting this, including a FreeBSD replacement for the free command: http://www.cyberciti.biz/faq/freebsd-command-to-get-ram-information/

share|improve this answer

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)
share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.