Linux Free Ram Slots

  1. The number of memory devices in the results of sudo dmidecode -type 17 is equal to the number of memory slots, so the command to print the number of RAM slots is: sudo dmidecode -type 17 grep 'Memory Device' -count The results of this command will be one integer number equal to the number of RAM slots.
  2. T here are many commands that can be used to identify total RAM memory size installed and check the amount of free and used memory in the Linux operating system such as Red Hat Enterprise Linux (RHEL), CentOS, Ubuntu and etc. Memory is one of the critical resources for a computer especially server as enough memory ensures that applications can be allocated the memory it required to perform.

The free command is the most classic terminal based tool to check memory usage.

Linux Show Free Ram Slots

Very often I used to find that my Linux box(s), Fedora & Ubuntu both started reserving more RAM over a period of time since its boot. And the actual RAM left free was less.

Ram

I knew it was holding some caches for itself so that it could find the programs loading “quickly” and something like that (Sorry for my newbie language).

The most common way to free up RAM is Rebooting! But I wanted to avoid it, so did a little “googling” and I came up with an interesting solution – Tell linux to flush all the caches.

Linux Free Ram Slots Download

I’ve created a simple bash script, which u can download.

Linux free ram slots slot

References