Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Solved: Can't disable transparent hugepages in RHEL9

    Posted on

    To disable transparent hugepages, in RHEL up to 8, we add "transparent_hugepage=never" to the end of the GRUB_CMDLINE_LINUX line in /etc/default/grub, and run `grub2-mkconfig -o /boot/grub2/grub.cfg' (and also disable tuned, which would re-enable transparent hugepages). We just got a RHEL9 box and did the same (except there's no tuned). But /sys/kernel/mm/transparent_hugepage/enabled still showed "[always]" after reboot. Is there anything changed? What's the new way to disable it other than echo'ing "never" to this pseudo file after the server is rebooted?

    [Update] Solved the problem by creating a tuned profile that sets transparent_hugepages=never.

    (By the way, I've always wondered why Linux keeps setting transparent hugepages to true by default, even though the majority of Linux users in the world, based on various forum messages and web site articles, seem to prefer it otherwise. Why can't we have this feature already disabled right after OS installation?)

    by

    points

    Responses

    Red Hat

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat, Inc.