Linux Get Ram Slots

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.

Linux get ram slots 2020

Htop command output. As you see, the available RAM and SWAP usage is pretty clear, showed in GBs and with a clear bar. Vmstat command along with the “s” parameter with show you memory uisage statistics, from there you will also be able to get total RAM memory and free memory.

  • Linux check ram speed and type commands The procedure is as follows: Open the terminal application or log in using ssh command. Type the “ sudo dmidecode -type 17 ” command.
  • Tool to detect number of memory slots, memory module type, speed, and size Hi there, I have to upgrade memory in a couple of remote (other part of the city) machines and I would like to be able to query all necessary info in a comfortable ssh session without having to drive there and unsrew each different machine (many different types).
  • As with many things you’ll find in Unix systems, the Linux kernel begins counting at slot zero instead of slot one. In our test machine’s case, there were four slots that received numbers 0-3 instead of 1-4. Even if a memory card gets assigned to slot zero, that doesn’t mean that your system is ignoring it.

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.

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

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.

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.

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

How to check RAM size in Ubuntu. In this tutorial, You are going to learn linux command to check RAM size and system memory information.

Check RAM Size in Linux, Ubuntu

To check RAM in your Linux system open the terminal (Ctrl + Alt + T) and type the following command mentioned below.

Display the RAM size in Megabytes (MB).

Output –

2
4
total used free shared buffers cached
-/+buffers/cache:61

How to Install, Uninstall packages using apt-get utility.

If you want check the linux RAM size in Kilobytes(KB). Then type command free or free -k.

2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
MemFree:423780kB
Cached:1021596kB
Active:3702560kB
Active(anon):3515792kB
Active(file):186768kB
Unevictable:2391212kB
SwapTotal:3998716kB
Dirty:1512kB
AnonPages:6226880kB
Shmem:579536kB
SReclaimable:82412kB
KernelStack:8376kB
NFS_Unstable:0kB
WritebackTmp:0kB
Committed_AS:15837952kB
VmallocUsed:357216kB
HardwareCorrupted:0kB
HugePages_Total:0
HugePages_Rsvd:0
Hugepagesize:2048kB
DirectMap2M:5083136kB

If you know some other better ways to check system and ram information then let us know through your comments.

Linux Find Out Ram Slots

Related posts:

Comments are closed.