On 1/25/07, S t i n g r a y <[EMAIL PROTECTED]> wrote:
How can i find out the size of physical memory after boot, my system
has 512MB ram & this is what dmesg shows , but top commands reviles
otherwise


load averages:  0.26,  0.35,  0.30                                     21:15:47
49 processes:  48 idle, 1 on processor
CPU states:  2.0% user,  0.0% nice,  1.1% system,  4.2% interrupt, 92.7% idle
Memory: Real: 300M/359M act/tot  Free: 137M  Swap: 0K/800M used/tot

gets me confused.

You're expecting the wrong information out of top(1). You'll get
closer results out of combining the values of tot (359M) and Free
(137M) and whatever you see allocated to filesystem cache in dmesg.
This should come closer to your installed RAM.

On my system:

$ top -n |grep ^Mem && dmesg |grep buf
Memory: Real: 152M/211M act/tot  Free: 286M  Swap: 0K/1025M used/tot
using 4256 buffers containing 26943488 bytes (26312K) of memory

211M + 286M + 26M = ~523 MB

$ dmesg |grep ^real
real mem  = 536375296 (523804K)

523 MB ~= 512 MB

Obviously there's a few things I don't know how to account for...

DS

Reply via email to