How to find out physical memory?

Discussion in 'General Linux' started by kentzhou, Mar 27, 2014.

  1. kentzhou

    kentzhou New Member

    Joined:
    Mar 27, 2014
    Messages:
    3
    Likes Received:
    0
    I am beginner on Linux.

    I installed CentOS with virtualbox. At the time to create this VM, I assigned 2G(2048M) memory for this VM. My host PC has 8G memory.

    After installed CentOS, I start it, then I check the memory with ''free -m", the out put for Total Mem is 1877.
    It is not 2048. Anything wrong? how to find out the physical memory of the machine to host Linux?

     
  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Joined:
    Aug 4, 2012
    Messages:
    1,858
    Likes Received:
    654
    171 Mb is probably being used for Graphics memory. But for more info:
    Code:
    cat /proc/meminfo
    even better:
    Code:
    egrep --color 'Mem|Cache|Swap' /proc/meminfo
    or
    Code:
     free -t -m
    or
    Code:
    vmstat
    or
    Code:
    htop
    or
    Code:
    top
     
    DevynCJohnson and kentzhou like this.
  3. kentzhou

    kentzhou New Member

    Joined:
    Mar 27, 2014
    Messages:
    3
    Likes Received:
    0
    thanks. Actually, all of then give me same result except display the data in different way:
    total memory 1922448 kb = 1877M
     
    Last edited: Mar 27, 2014
  4. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Joined:
    Aug 4, 2012
    Messages:
    1,858
    Likes Received:
    654
    Yeah, probably just taking into account the graphics memory.
     
  5. MikeyD

    MikeyD Active Member

    Joined:
    Jul 23, 2013
    Messages:
    232
    Likes Received:
    119
    Yeah it just prints usable memory for your machine. Just running the OS itself takes up memory, so Linux is just giving you the usable memory for your system.
    Windows does the same thing:

    memory.png
     
    DevynCJohnson likes this.

Share This Page