Collapse

Announcement

Collapse
No announcement yet.

RAM on Linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RAM on Linux

    How to check total installed RAM on the Linux server?

  • #2
    Hello,

    You may use the either below commands to check the RAM installed on a linux server.

    The below output will give the result in MB.


    ````
    root@server [/]# free -m
    total used free shared buffers cached
    Mem: 15906 15458 447 5 3022 6880
    -/+ buffers/cache: 5554 10351
    Swap: 4095 67 4028
    ````

    Whereas, the same result can be obtained in GB for better understanding.

    ````
    root@server [/]# free -g
    total used free shared buffers cached
    Mem: 15 15 0 0 2 6
    -/+ buffers/cache: 5 10
    Swap: 3 0 3

    ````

    The above output states that the server is deployed with a total of 15 G RAM and an additional SWAP space of 3 G. The used column shows how much RAM is being used up by the server.


    Last edited by Mandeep; 11-16-2017, 09:34 AM.

    Comment


    • #3
      Hi,

      You can get the information you require by following 2 ways:


      # cat /proc/meminfo
      Click image for larger version

Name:	meminfo.png
Views:	1
Size:	38.0 KB
ID:	233




      # dmidecode -t memory
      Click image for larger version

Name:	meminfo-2.png
Views:	2
Size:	39.7 KB
ID:	234



      Comment

      Working...
      X