How to disable Transparent Hugepages?

I need to test some applications with the MySQL/MariaDB storage engine"TokuDB". TokuDB wll not work with Transparent Hugepages enabled as explained here https://mariadb.com/kb/en/mariadb/documentation/storage-engines/tokudb/how-to-enable-tokudb-in-mariadb/).

I can do this

echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag

… and it works for the session, but not after a reboot. So I want to do it during boot. I found some resources (like http://unix.stackexchange.com/questions/99154/disable-transparent-hugepages) how to add to GRUB configuration. But I found nothing specific for SuSE and the procedures for Oracle Linux, Fedora etc. are not directly usable for me. Probably just because I cannot figure out what&where the relevant file is on SuSE.

Can somebody help?

YAST2 -> Bootloader -> Kernel Parameters.

Add transparent_hugepage=never to Optional Kernel Command Line Parameter at the end, like after “showopts” and press OK. And you’re done. It’ll take effect on the next reboot.

Thanks … will give it a try 2night!

Worked like a charm. Thanks.

OpenSUSE Tumbleweed Optional Kernel Command Line Parameter

showopts iommu=noaperture transparent_hugepage=never

but

cat /sys/kernel/mm/transparent_hugepage/enabled
always [madvise] never

I do not be surprised if this is due to systemd.

Might be. But that things changed is to be expected when you come back to such an old thread.

So please. When you have a problem with a recent version of openSUSE, start a new thread with a good title. You have much more chances that somebody will tune in then, then you have now.