how do I enable transparent huge pages by default on ubuntu? -
how enable transparent huge pages default on ubuntu ?
$ uname -a linux yoda 3.5.0-23-generic #35~precise1-ubuntu smp fri jan 25 17:13:26 utc 2013 x86_64 x86_64 x86_64 gnu/linux ~$ cd /sys/kernel/mm/transparent_hugepage/ /sys/kernel/mm/transparent_hugepage$ ls defrag enabled khugepaged /sys/kernel/mm/transparent_hugepage$ cat enabled [madvise] never /sys/kernel/mm/transparent_hugepage$ sudo echo > enabled -bash: enabled: permission denied /sys/kernel/mm/transparent_hugepage$ sudo ls [sudo] password <...>: defrag enabled khugepaged /sys/kernel/mm/transparent_hugepage$ sudo ls defrag enabled khugepaged /sys/kernel/mm/transparent_hugepage$ sudo echo > enabled -bash: enabled: permission denied /sys/kernel/mm/transparent_hugepage$ cat enabled [madvise] never
adding following:
transparent_hugepage=always
to grub_cmdline_linux_default in your:
/etc/default/grub
and doing a:
update-grub
should trick.
Comments
Post a Comment