Building a kernel with huge-page support

6.18 LPAR mode z/VM guest KVM guest

Control the build options for the huge-page support through the kernel configuration menu.

Kernel builders: This information is intended for those who want to build their own kernel. Be aware that both compiling your own kernel or recompiling an existing distribution usually means that you have to maintain your kernel yourself.

Figure 1 shows the kernel configuration menu options that are relevant to huge-page support.

Figure 1. Huge-page support kernel configuration menu options
 Memory setup --->
    ...
    Transparent Hugepage Support                       (CONFIG_TRANSPARENT_HUGEPAGE)
    ...
 File systems --->
    ...
    Pseudo filesystems --->
       ...
       HugeTLB file system support                     (CONFIG_HUGETLBFS)
CONFIG_TRANSPARENT_HUGEPAGE
Allows transparent access to huge-page memory for any application that is using anonymous memory mappings. For details, see Documentation/vm/transhuge.txt in the Linux® source tree.
CONFIG_HUGETLBFS
The hugetlbfs is a file system backing for HugeTLB pages, based on ramfs. For details, see Documentation/vm/hugetlbpage.txt in the Linux source tree.