free -m command displays less RAM size
hi
my RAM size is 512MB but the command free -m shows 494 Code:
[babu@localhost ~]$ free -m |
Well, AFAIK, some of the RAM is reserved by BIOS and other things, and cannot be used by the OS. That could explain it. And on many laptops the memory is shared with graphics card, for example here on my laptop with 1 GB RAM I get:
Code:
total used free shared buffers cached |
Quote:
It all has to do with how one defines a kilo...1000 or 1024 (1024 is the correct binary measurement). If you take the total mem from the free command (no -m switch) and divide that by 1024, you'll come up with 494. However...if you take that same total and divide it by 1000 (metric), you'll come up with the amount you're looking for. =) |
Quote:
1058439168 bytes reported by 'free -b', divide that by 1000000 and you get 1058, which is too much. When I run just 'free' I get 1033632 ko, divide that by 1000 and you get 1033, still too much. |
Thanks for replys
Quote:
[bala@localhost ~]$ free total used free shared buffers cached Mem: 506436 492432 14004 0 16048 222372 -/+ buffers/cache: 254012 252424 Swap: 1015800 0 1015800 506436/1000 = 506.436 which is != 512 as expected. Quote:
|
Your RAM has 506436 kB = 506436/1024 MB = 494.5 MB. That's what free -m says.
|
Quote:
Code:
cat /proc/iomem |
All times are GMT -5. The time now is 08:09 PM. |