Tuesday, May 1, 2012

OpenBSD: Find Out Memory RAM Size

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

No comments:

Post a Comment