How To Get Ram Information In Linux? – POFTUT

How To Get Ram Information In Linux?


We have a lot of servers. There are different type of vendors and products. Tracking them about theirs hardware is hard work. For example to get ram information by opening all cases of servers is impossible. Here comes Linux magic. Linux provides a lot of commands. We can use dmidecode like below.

Getting Information With dmidecode

dmidecode is very useful command which can provide information about hardware of the system. dmidecode will list a lot of information about CPU, Memory, Mainboard, Devices, Network etc. by default without providing any option. We will use --type 17 option in order to print detailed Memory or RAM information like below.

$ dmidecode --type 17
Getting Information With dmidecode
Getting Information With dmidecode

We can see that the system has 2048 MB RAM and multiple RAM slots.

Getting Memory Size

As we have seen that dmidecode will print a lot of information about the RAM but if we want to strictly filter the RAM size we can use grep command like below by providing Size term.

$ sudo dmidecode --type 17 | grep Size
Getting Memory Size
Getting Memory Size

Getting Memory Frequency

Like RAM size we can also print the frequency of the RAM with grep command. As frequency is expressed with MHz we will provide  Speed to the grep command.

$ sudo dmidecode --type 17 | grep MHz

Print RAM/Memory Form Factor

Memory/RAM has physically different form factors. Currently DIMM or SODIMM is very popular. We can get this information with the following command.

$ sudo dmidecode --type 17 | grep Factor
Print RAM/Memory Form Factor
Print RAM/Memory Form Factor

How To Get Ram Information In Linux? Infografic

   How To Get Ram Information In Linux? Infografic
How To Get Ram Information In Linux? Infografic

 

LEARN MORE  What Is VRAM(Video Random Access Memory)?

Leave a Comment