Disabling kdump to reclaim missing RAM on CentOS 8

Saturday, January 25, 2020


After setting up a Droplet on DigitalOcean (a VPS) using their CentOS 8 image, I found that various sources (like top, free, and even /proc/meminfo) were reporting only 821 MB of total RAM, even though the instance should have had 1 GB. Where did the missing ~200 MB go?

It turns out that kdump is enabled by default. In short, it uses a second kernel to capture dumps in case the running kernel crashes. I don't need this since I'm not going to do anything useful with those dumps anyway, so here's how to disable it and get the memory back.

First, check to see if it's enabled by looking for a nonzero value in /sys/kernel/kexec_crash_size:

$ cat /sys/kernel/kexec_crash_size

You'll also see a line like this in dmesg:

kernel: Reserving 160MB of memory at 672MB for crashkernel (System RAM: 1023MB)

To disable it, edit /etc/default/grub and change crashkernel=auto to crashkernel=no, then:

# grub2-mkconfig -o /boot/grub2/grub.cfg
# systemctl disable kdump
# reboot

On EL9 (AlmaLinux 9, Rocky Linux 9, etc) with BLS, try grubby instead:

# grubby --info=DEFAULT
# grubby --update-kernel ALL --args 'crashkernel=no'
# reboot

Now you should have your memory back!

Tags: centos, linux | Posted at 18:16 | Comments (9)


Comments

Rick on Saturday, June 13, 2020 at 14:36

Thanks for the info - made short work of figuring this out!

Joshuanet on Thursday, January 30, 2025 at 11:25

1xbet apk code promo - utilisez-le pour vous inscrire et obtenir un bonus de 130% sur le montant de votre premier depot, pouvant aller jusqu'a 130$. Ces fonds doivent etre mises dans la section sportive, ou vous devez placer des paris avec une cote minimale de 1,4 et un wager x5.
<h1 style="text-align: center;">Code Promo 1xBet</h1>
<h2 style="text-align: center;"><a href=https://astra-hotel.ch/articles/code_promo_5.html>https://astra-hotel.ch/articles/code_promo_5.html</a></a></span></h2>
Code promo de 1xBet - l'utilisation de ce code vous permettra d'obtenir un bonus de 30% supplementaire, allant jusqu’a 100$. Le bonus est accorde sous la forme de 130% du montant de votre premier depot. Cette offre est reservee aux nouveaux utilisateurs majeurs apres leur inscription. Profitez du code promo pour augmenter votre bonus de bienvenue de 100% a 130%. Les fonds seront credites sur votre solde de jeu, et le bonus devra etre mise sur des paris sportifs. Ce code promo est valable jusqu'au 31 decembre 2025.

Shirleygobby on Sunday, February 2, 2025 at 11:56

We invite you to our mecca - a place where dance becomes art!
We offer all kinds of dance styles for all ages.
For more information, follow the link [url=https://go-tango.ru/argentinskoe-tango/]школа танго москва [/url]
Our team professional mentors will help you develop confidence and love for dance.

SadieBax on Sunday, February 2, 2025 at 12:33

Discover the world of comfort with our pools!
We offer a wide selection of pools, their installation and maintenance.
More detailed information on the link [url=https://pools-vsem.ru/stroitelstvo-bassejnov/]бассейны для отелей [/url]
Create an oasis at home with high-quality solutions.
Professional installation and guarantees for all work.

Shirleygobby on Sunday, February 2, 2025 at 13:54

We invite you to our club - a place where dance becomes art!
We offer all kinds of dance styles for all ages.
For more information, follow the link [url=https://go-tango.ru/argentinskoe-tango/]танго обучение [/url]
Group of professional mentors will help you develop confidence and love for dance.

SadieBax on Sunday, February 2, 2025 at 14:21

Discover the world of enjoyment with our pools!
We offer a widest selection of pools, their installation and maintenance.
More detailed information on the link [url=https://pools-vsem.ru/stroitelstvo-bassejnov/]сколько стоит бассейн строительство [/url]
Create an oasis at home with high-quality solutions.
Professional installation and guarantees for all work.

RichardVip on Monday, February 3, 2025 at 11:33

Le meilleur code bonus 1xBet et obtenez plus de 100% de bonus de 100€. Les amateurs de sport seront ravis de decouvrir une vaste gamme de marches sportifs, englobant des choix tres apprecies tels que le cricket, le football, le tennis et bien d'autres.

<h1 style="text-align: center;">Code Promo 1xBet</h1>
<h2 style="text-align: center;"><a href=https://www.anak2u.com.my/pages/code_promo_132.html>https://www.anak2u.com.my/pages/code_promo_132.html</a></a></span></h2>

Code promo de 1xBet - l'utilisation de ce code vous permettra d'obtenir un bonus de 30% supplementaire, allant jusqu’a 100$. Le bonus est accorde sous la forme de 130% du montant de votre premier depot. Cette offre est reservee aux nouveaux utilisateurs majeurs apres leur inscription. Profitez du code promo pour augmenter votre bonus de bienvenue de 100% a 130%. Les fonds seront credites sur votre solde de jeu, et le bonus devra etre mise sur des paris sportifs. Ce code promo est valable jusqu'au 31 decembre 2025. Utiliser le code promo 1xBet lors de l'inscription avec 1xBet 2025. Cela vous permettra d'obtenir leur excellent bonus de bienvenue allant sous forme de paris gratuits.

GemmaElesy on Wednesday, February 5, 2025 at 11:09

We offer a huge range of stretch films, ideal for protecting and packaging goods of any size.
More detailed information on the link [url=https://pack-inn.ru/strejch-plenka-optom/]купить стретч пленку у производителя [/url]
Our film has high elasticity, which ensures reliable protection of your goods from damage.

GemmaElesy on Wednesday, February 5, 2025 at 13:13

We offer a widest range of stretch films, ideal for protecting and packaging products of any size.
More detailed information on the link [url=https://pack-inn.ru/strejch-plenka-optom/]стрейч пленка первичка 2 кг [/url]
Our film has high elasticity, which ensures reliable protection of your goods from contamination.

Add a comment

Name:
Email: (optional, not displayed to public)
URL: (do not fill this in — leave blank!)

Comment: