OpenBSD: Find Out Memory RAM Size Information

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:[donotprint][/donotprint]

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
# 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

sysctl hw | grep mem


sysctl  | grep -i hw.*mem

sysctl | grep -i hw.*mem

Sample outputs:


Or simply get full hardware info, type:

sysctl hw

sysctl hw

Sample outputs:

How much RAM is installed on a OpenBSD server?

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts