<div dir="ltr"><div dir="ltr">Actually on debian we use the standardly available sysfsutils, which I recommend for this (and which is available in Redhat, too) ; it is the equivalent for /sys than sysctl is for /proc:</div><div dir="ltr"><br></div><div>1) install sysfsutils either with apt install or dnf install</div><div><br></div><div>2) config the stuff:</div><div>echo "kernel/mm/transparent_hugepage/enabled = madvise" > /etc/sysfs.d/transparent_hugepage.conf</div><div>echo "kernel/mm/transparent_hugepage/defrag = madvise" >> /etc/sysfs.d/transparent_hugepage.conf</div><div>systemctl enable sysfsutils.service</div><div><br></div><div>3) either reboot or just restart the services including unbound:</div><div>systemctl restart sysfsutils.service</div><div><div>systemctl restart unbound.service</div><div><br></div><div>That's it, the conf will survive reboot and updates.</div></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 16 mars 2024 à 14:08, Yuri via Unbound-users <<a href="mailto:unbound-users@lists.nlnetlabs.nl">unbound-users@lists.nlnetlabs.nl</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p><span lang="en"><span><span>It is necessary to disable THP so often that
I had to write a script for this purpose.</span></span> <span><span>Doing this using the
service is much more convenient than doing it any other way,
in my opinion.</span></span></span></p>
<p><span lang="en"><span><span><a href="https://github.com/yvoinov/memory-tools/blob/main/disable_thp.sh" target="_blank">https://github.com/yvoinov/memory-tools/blob/main/disable_thp.sh</a><br>
</span></span></span></p>
<div>16.03.2024 14:23, Tarko Tikan via
Unbound-users пишет:<br>
</div>
<blockquote type="cite">hey,
<br>
<br>
<blockquote type="cite">The question is that stats metrics (mem*)
are stable . They rapidly grow after startup and stay at a
logical
<br>
maximum and don't keep growing.
<br>
<br>
But the process size does.
<br>
</blockquote>
<br>
We saw the same on Debian due to THP like Oliver already
mentioned. See <a href="https://github.com/NLnetLabs/unbound/issues/724" target="_blank">https://github.com/NLnetLabs/unbound/issues/724</a>
<br>
<br>
We "solved" this by disabling THP on our unbound machines.
<br>
<br>
</blockquote>
</div>
</blockquote></div></div>
<br>
<div><i>Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l’intention exclusive des destinataires désignés. Il contient des informations confidentielles et pouvant être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de détruire le message. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse de l'émetteur</i></div>