chibcharus
Posts: 4
Joined: Thu Aug 02, 2012 1:23 am

How can I determine the RAM in RP?

Sat Aug 16, 2014 4:57 am

I have both a 256 and a 512 RP. When I use "free -h" I get the same information for both. This info appears to indicate that there is only 256 M total memory. How can I tell the difference?

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How can I determine the RAM in RP?

Sat Aug 16, 2014 5:06 am

You could add together the output of the vcgencmd get_mem commands like this

Code: Select all

rpdom@raspi1: ~ vcgencmd get_mem arm
arm=160M
rpdom@raspi1:~$ vcgencmd get_mem gpu
gpu=96M
160 + 96 = 256 (Model B V1.0)
rpdom@raspi3 ~ $ vcgencmd get_mem arm
arm=448M
rpdom@raspi3 ~ $ vcgencmd get_mem gpu
gpu=64M

Code: Select all

228 + 64 = 512 (Model B+)

The "free" command will only show the memory allocated to the ARM CPU, not any reserved for the GPU.

Return to “Beginners”