HeatWare.net header image
HeatWare.net
TwitterRSSEmail
  • Home
  • Windows
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
  • Linux/Unix
  • Mac
  • Mobile
    • Android
    • iOS
    • Phones (Help / Resources)
  • Software / Programming
    • Free Software
    • Programming – General
    • PHP
    • Ruby/Rails
    • Quality Assurance (QA)
    • Software – General
    • Software Help
    • Databases
  • Cool Websites
  • Other
    • Deals & Bargains
    • News
    • Video Games
    • Hardware
    • Electronics
  • About

4 comments / January 29, 2009 / sood / Linux/Unix

Find amount of physical memory (RAM) under Linux

This article will show you how to find the amount of RAM memory on a Linux machine.  To find this information you will need to login to the Linux command-line shell and and enter the following command at the $ (or #) prompt:

$ cat /proc/meminfo

Sample Output

MemTotal:      1031960 kB
MemFree:        391172 kB
Buffers:         36576 kB
Cached:         238124 kB
SwapCached:          0 kB
Active:         321984 kB
Inactive:       180664 kB
HighTotal:      129920 kB
HighFree:          248 kB
LowTotal:       902040 kB
LowFree:        390924 kB
SwapTotal:     2040244 kB
SwapFree:      2040244 kB
Dirty:             196 kB
Writeback:           0 kB
AnonPages:      227940 kB
Mapped:          38740 kB
Slab:            84916 kB
SReclaimable:    11080 kB
SUnreclaim:      73836 kB
PageTables:       3168 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   2556224 kB
Committed_AS:   723980 kB
VmallocTotal:   114680 kB
VmallocUsed:     10036 kB
VmallocChunk:   103668 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     4096 kB

What does this mean?

The interesting fields to look at in the output are: MemTotal and MemFree

MemTotal – This is the total amount of physical RAM memory that your computer has in kB. If you take this number, 1031960 for example, and divide it by 1024, you get the number of MB (Megabytes) which is ~ 1000 MB. If you divide this number by another 1024 then you get GB (Gigabytes) which is ~ 1 GB in this case.

MemFree – This field indicates the amount of free physical RAM memory you have available. This value is also in kB so simply divide it by 1024 to figure out the amount in MB. If the amount of free memory is significantly low, it may be time to upgrade the amount of RAM in your computer.

How to find what programs are using up the most memory?

This topic will be discussed in more detail in a separate article. To to find a list of all programs/processes running on a Linux machine and how much memory they are using up, use the top command.

Related Posts

  • Find the CPU (processor) speed and model under Linux
  • Using Linux ‘head’ command to preview a file
  • How to find all installed RPMs in Linux
  • Free Linux utility to convert PDF to Text file
  • How to mount an ISO image in Linux

Linux

4 comments… add one
  1. Sr.Dorohy Robinson September 27, 2009, 3:26 pm

    Helpful, thank you!

  2. virender thakur September 28, 2009, 4:52 am

    the same thing we can do including with command like

    $top

    but i find this article very helpful also
    Thanks

  3. Vikas M August 13, 2011, 5:17 am

    Helpful
    THanks

  4. jayaramt January 29, 2013, 7:09 am

    using

    $free command also we can get the physical memory.

    ex: [root@Func-22 ~]# free
    total used free shared buffers cached
    Mem: 2055668 1940780 114888 0 298060 438004
    -/+ buffers/cache: 1204716 850952
    Swap: 4128760 8 4128752

    Here Mem: 2055668 is the physical memory….

    jai.

Cancel reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Why You Should Consider Diving Apps
  • How to Buy a Smartphone that Fits Your Budget
  • How to Overcome Frustrating PDF Stress
  • Convert PDF to Word: Easy, Reliable and Quality Conversion
  • PDF to Excel App ­ – A New Way of Handling Tricky Documents

Recent Comments

  • Valarie Walter on Basic Troubleshooting Steps for your Cell Phone
  • John Mists on A Brief History of Android OS
  • syarif on PostgreSQL: How to reload config settings without restarting database
  • Raghu on How to SSH to a server using Ruby – Part I
  • francisco clemente on Basic Troubleshooting Steps for your Cell Phone

Tags

ACSLS Android Bargain Cell Phones Cool Software Cool Websites Databases Deals Ebooks Facebook Free Software G2x Galaxy S5 iOS iPhone Kindle LG Linux Linux/Unix Mac Mobile mysql Office OpenStack OS X PHP Postgres PostgreSQL ruby Samsung Galaxy S6 Shell Smartphones Sun T-Mobile Tips Tips & Tricks Ubuntu Unix Virtualization VMWare Windows Windows 7 Windows 8 Windows Vista Windows XP

Latest Tweet

Follow @HeatwaredotNet

SP
@HeatwaredotNet

  • Why You Should Consider Diving Apps https://t.co/Is41cdUv2I #diving-apps
    about 6 years ago

All Categories

Other Links

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2015 — HeatWare