Class TransparentHugepageDefrag (2.58.0)

TransparentHugepageDefrag(value)

Possible values for transparent hugepage defrag support.

Enums

Name Description
TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED Default value. GKE will not modify the kernel configuration.
TRANSPARENT_HUGEPAGE_DEFRAG_ALWAYS It means that an application requesting THP will stall on allocation failure and directly reclaim pages and compact memory in an effort to allocate a THP immediately.
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER It means that an application will wake kswapd in the background to reclaim pages and wake kcompactd to compact memory so that THP is available in the near future. It’s the responsibility of khugepaged to then install the THP pages later.
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE It means that an application will enter direct reclaim and compaction like always, but only for regions that have used madvise(MADV_HUGEPAGE); all other regions will wake kswapd in the background to reclaim pages and wake kcompactd to compact memory so that THP is available in the near future.
TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE It means that an application will enter direct reclaim like always but only for regions that are have used madvise(MADV_HUGEPAGE). This is the default kernel configuration.
TRANSPARENT_HUGEPAGE_DEFRAG_NEVER It means that an application will never enter direct reclaim or compaction.