Linux Physical Memory Size in Pages
This Tip Show you How to Find Physical Memory Size in Pages on GNU/Linux Systems.
Find it directly with:
getconf -a | grep _PHYS_PAGES
Or if you want to Find RAM Size in KB and then Divide by 4, because each Page is 4Kb wide.
So again to Check, first find the Total RAM amount in Kb:
cat /proc/meminfo | grep MemTotal
Then Dividing by 4 you have to Get the Save Value as Above!