OpenBSD: Find Out Memory RAM Size Information

by on July 5, 2009 · 1 comment· LAST UPDATED May 28, 2014

in , ,

How do I check for installed RAM (memory) size on a OpenBSD UNIX operating systems using command line?

You need to use the following commands to see installed memory and other information such as installed CPU can be displayed:
Tutorial details
DifficultyEasy (rss)
Root privilegesNo
RequirementsNone
Estimated completion time2m

a) dmesg command - Display the OpenBSD system message buffer including boot time info.

b) sysctl command - Display or set the OpenBSD system sysctl (kernel) variables.

Method #1: Display real and user installed memory on OpeBSD

Type the following command:
# dmesg | grep -i mem
OR
# grep -i mem /var/run/dmesg.boot
Sample outputs:

real mem = 3500277760 (3338MB)
avail mem = 3398483968 (3241MB)

Method #2: OpenBSD show installed RAM memory size

Type the following command

sysctl hw | grep mem

OR

sysctl  | grep -i hw.\*mem

Sample outputs:

hw.physmem=3500277760
hw.usermem=3500253184

Or simply get full hardware info, type:

sysctl hw

Sample outputs:

Fig. 01: How much RAM is installed on a OpenBSD server?

How much RAM is installed on a OpenBSD server?

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 Matias Colli May 28, 2014 at 2:09 am

Or just type: sysctl -a | grep -i memory

Matias Colli
Perito Judicial en Informática

Reply

Leave a Comment

Tagged as: , , , , , , ,

Previous Faq:

Next Faq: