Find Linux RAM Information Command

How do I find out ram information under Linux operating systems?

You can use the following commands to find information about RAM under Linux operating systems.

Find Used and Free RAM Info Command

You need to use the free command:
# free
# free -m

             total       used       free     shared    buffers     cached
Mem:          7930       4103       3826          0         59       2060
-/+ buffers/cache:       1983       5946
Swap:        15487          0      15487

(Fig. 01: Display amount of free and used memory in the system)

 You’ll see the “buffers” and “cached” columns, which tell you about the amount of memory that the kernel is using for filesystem buffers, etc.

This sort of cached data will be freed by the kernel when an application tries to allocate more than what is “free”, which is why the “-/+ buffers/cache” line is really the important line to pay attention to when you’re checking out the free memory on a system.

So in this example, 5946MB is how much memory is technically available for allocation should an application need it. The “buffers” (59MB) and “cached” (2060MB) will be released by the kernal if they are needed.

 

Find Out Ram Speed, Make, Form Factor, Type and Other Information

You need to use the dmidecode command:
# dmidecode -type 17
Sample outputs:

 # dmidecode 2.11
SMBIOS 2.5 present.
Handle 0x0017, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x0016
	Error Information Handle: No Error
	Total Width: 72 bits
	Data Width: 64 bits
	Size: 2048 MB
	Form Factor: DIMM
	Set: 1
	Locator: DIMM1A
	Bank Locator: Bank1
	Type: DDR2
	Type Detail: Synchronous
	Speed: 667 MHz
	Manufacturer: 5185
	Serial Number: 05009F22
	Asset Tag: Not Specified
	Part Number: 72T232220HFA3SB

(Fig. 01: Finding RAM Speed, Manufacturer, Type such as DDR2, and other info)

About author

admin
admin 87 posts

I have been working with Linux based systems since 2002. I hope the article published on this site will be useful to those new to server administration.

You might also like

Server Managment 0 Comments

yum command: Update / Install Packages Under Redhat Enterprise / CentOS Linux Version 5.x

How do I use yum command to update and patch my Red hat Enterprise Linux / CentOS Linux version 5.x server via RHN / Internet? Can I use up2date command

Server Managment 0 Comments

Log the Total Number of Connections to a Port From an IP Address

Is there any log entries to find-out directly the total number of connections in server? In some high connection high load servers, this log would be helpful to monitor and

Software Applications 1Comments

Migrate from Mysql to MariaDB in cPanel/WHM

MariaDB is “An enhanced, drop-in replacement for MySQL”. Below you will find some steps on how to affectively stop cPanel/WHM from maintaining MySQL and begin utilizing MariaDB for any and