How to find out physical memory?

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

  1. kentzhou

    kentzhou New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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

    Messages:
    1,143
    Likes Received:
    387
    Trophy Points:
    83
    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

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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

    Messages:
    1,143
    Likes Received:
    387
    Trophy Points:
    83
    Yeah, probably just taking into account the graphics memory.
  5. MikeyD

    MikeyD Active Member

    Messages:
    219
    Likes Received:
    105
    Trophy Points:
    43
    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