You need to change kernel boot parameters (e.g. add `transparent_hugepage=never`) persistently. How?
IntermediateScenarioPackages, kernel and boot
Answer
Situation read → Edit the kernel command line and regenerate the bootloader config.
What I'd do →
- RHEL 8/9:
sudo grubby --update-kernel=ALL --args="transparent_hugepage=never". - Debian/Ubuntu: add to
GRUB_CMDLINE_LINUXin/etc/default/gruband runsudo update-grub. - Reboot, verify with
cat /proc/cmdlineandcat /sys/kernel/mm/transparent_hugepage/enabled.
Why → Some settings must be applied at boot; editing grub.cfg directly gets overwritten.
Interview tip → Explain why DBs like MongoDB/Redis recommend disabling THP (latency spikes from compaction).
More on Packages, kernel and boot
You must upgrade the kernel on 50 production servers and be able to roll back if the new kernel misbehaves. Plan it.AdvancedYou need to pin a package version so routine updates don't upgrade it (e.g. Docker or PostgreSQL). How?BeginnerA package update broke an application. How do you roll it back?IntermediateYour servers can't reach the internet but need packages. How do you provide repositories?IntermediateYou need to compile and install software from source on a server that also uses packages. How do you avoid making a mess?IntermediateA server must apply kernel security patches without rebooting. What are your options?Advanced