There are multiple ways to check the RAM size in a linux based system.
1) cat /proc/meminfo
2) free -m
3) dmidecode -t memory
free, free -m or top doesn't seem to give you total physical RAM, the value is minus kernel size and some other stuff. The only way I've found to get total physical RAM so far is with this:
4) dmesg | grep ^Memory:
The second value is the physical RAM size. It'll also tell you what other junk is subtracted from that to give you what you get with "free"...
1) cat /proc/meminfo
2) free -m
3) dmidecode -t memory
If you want TOTAL PHYSICAL RAM, use this...
free, free -m or top doesn't seem to give you total physical RAM, the value is minus kernel size and some other stuff. The only way I've found to get total physical RAM so far is with this:
4) dmesg | grep ^Memory:
The second value is the physical RAM size. It'll also tell you what other junk is subtracted from that to give you what you get with "free"...
No comments:
Post a Comment