Google Kubernetes Engine v1 API - Enum LinuxNodeConfig.Types.TransparentHugepageDefrag (3.35.0)

public enum LinuxNodeConfig.Types.TransparentHugepageDefrag

Reference documentation and code samples for the Google Kubernetes Engine v1 API enum LinuxNodeConfig.Types.TransparentHugepageDefrag.

Possible values for transparent hugepage defrag support.

Namespace

Google.Cloud.Container.V1

Assembly

Google.Cloud.Container.V1.dll

Fields

Name Description
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.

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.

DeferWithMadvise

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.

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.

Never

It means that an application will never enter direct reclaim or compaction.

Unspecified

Default value. GKE will not modify the kernel configuration.