Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As per the title:

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


share|improve this question
Take a look at <>; – willehr Aug 20 '09 at 15:13
up vote 32 down vote accepted
sysctl hw.physmem
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

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

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

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:

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.