OpenBSD: Find Out Memory RAM Size

by on July 5, 2009 · 0 comments· LAST UPDATED July 5, 2010

in

How do I check for installed RAM (memory) size under OpenBSD UNIX operating systems?

You need to use the following command to see installed memory and other information such as CPU will be also displayed:

sysctl hw | grep mem
hw.physmem=535756800
hw.usermem=535744512

Or get full info:

sysctl hw

Sample outputs:

hw.machine=amd64
hw.model=QEMU Virtual CPU version 0.9.1
hw.ncpu=1
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=wd0,cd0,fd0,fd1
hw.diskcount=4
hw.cpuspeed=2394
hw.vendor=Red Hat
hw.product=KVM
hw.uuid=c4123088-c43b-e81c-0a5f-1f11bc763fb9
hw.physmem=535756800
hw.usermem=535744512
hw.ncpufound=1
TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 0 comments… add one now }

Leave a Comment

Tagged as: , , , , , , , , , , , ,

Previous Faq:

Next Faq: