-
-
Save PyYoshi/a7ca64b6c92b5ef1834b to your computer and use it in GitHub Desktop.
Revisions
-
PyYoshi revised this gist
Nov 5, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,6 @@ $ sudo -i # systemctl enable disable-transparent-huge-pages # systemctl start disable-transparent-huge-pages # systemctl status disable-transparent-huge-pages # cat /sys/kernel/mm/transparent_hugepage/enabled # cat /sys/kernel/mm/transparent_hugepage/defrag ``` -
PyYoshi created this gist
Nov 5, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ ```bash $ sudo -i # vim /etc/systemd/system/disable-transparent-huge-pages.service # systemctl enable disable-transparent-huge-pages # systemctl start disable-transparent-huge-pages # systemctl status disable-transparent-huge-pages ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ [Unit] Description=Disable Transparent Huge Pages [Service] Type=oneshot ExecStart=/usr/bin/sh -c "/usr/bin/echo "never" | tee /sys/kernel/mm/transparent_hugepage/enabled" ExecStart=/usr/bin/sh -c "/usr/bin/echo "never" | tee /sys/kernel/mm/transparent_hugepage/defrag" [Install] WantedBy=multi-user.target