Disable Linux Kernel's Transparent Huge pages in order to run
Redis and
MongoDB
reliably. Also installs a tuned profile
based on virtual-guest
that keeps the Kernel setting disabled.
Tested on Fedora 25.
-
Decide where you want to install things.
INSTALL_DIR=/usr/local/src/systemd-disable-transparent-huge-pages
-
Clone this repository.
$ git clone https://github.com/agross/systemd-disable-transparent-huge-pages.git "$INSTALL_DIR" Cloning into 'systemd-disable-transparent-huge-pages'...
-
Install
disable-transparent-huge-pages
systemd service unit.$ "$INSTALL_DIR/install" Linking and enabling /usr/local/src/systemd-disable-transparent-huge-pages/disable-transparent-huge-pages.service Created symlink /etc/systemd/system/disable-transparent-huge-pages.service → /usr/local/src/systemd-disable-transparent-huge-pages/disable-transparent-huge-pages.service. Created symlink /etc/systemd/system/basic.target.wants/disable-transparent-huge-pages.service → /usr/local/src/systemd-disable-transparent-huge-pages/disable-transparent-huge-pages.service. Enabling tuned profile virtual-guest-nothp