Find the answer to your Linux question:
Results 1 to 7 of 7
Hi All, In Windows i can get those informations using the properties of My Computer. What is the command to check the RAM Size in Linux Machine?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42

    Command to Check the RAM Size


    Hi All,

    In Windows i can get those informations using the properties of My Computer.
    What is the command to check the RAM Size in Linux Machine?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute this
    Code:
    free -m
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42
    But i get details something like this,

    mydb:~ # free
    total used free shared buffers cached
    Mem: 8310620 8015856 294764 0 14096 6887988
    -/+ buffers/cache: 1113772 7196848
    Swap: 2104472 96 2104376

    Can u please tell me which is RAM Size and what are the other details?

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Mem is Ram size in bytes. Use -m option for output in MB.
    SWAP is the size of SWAP partition.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Linux Newbie harner's Avatar
    Join Date
    Jun 2004
    Location
    PA, USA
    Posts
    209
    Run this:

    Code:
    top
    Looks like you're using up a lot of memory. Top displays your memory usage a little better as far as the "easy to read" factor goes.
    I praise Webmin and PuTTy!
    Registered Linux User: 439431

  7. #6
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42
    Thanks for all.

  8. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    6

    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:

    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"...


    --

    Sync

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •