在安裝Oracle以前須要,禁用Transparent HugePages。shell
$ cat /sys/kernel/mm/transparent_hugepage/enabled [always] madvise never
括號落在了always上面表示已經啓用了。ubuntu
~$ sudo vi /etc/default/grub
修改GRUB_CMDLINE_LINUX_DEFAULT=""爲GRUB_CMDLINE_LINUX_DEFAULT="transparent_hugepage=never"。oracle
~$ sudo update-grub ~$ sudo reboot
~$ cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never]
括號落到了never上面,意味着成功禁用了。spa
參考 Disabling Transparent HugePages in Ubuntu 14.04 Server LTS Disabling Transparent HugePagescode