Reference documentation and code samples for the Google Cloud Container V1 Client class TransparentHugepageDefrag.
Possible values for transparent hugepage defrag support.
Protobuf type google.container.v1.LinuxNodeConfig.TransparentHugepageDefrag
Namespace
Google \ Cloud \ Container \ V1 \ LinuxNodeConfigMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED
Value: 0
Default value. GKE will not modify the kernel configuration.
Generated from protobuf enum TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED = 0;
TRANSPARENT_HUGEPAGE_DEFRAG_ALWAYS
Value: 1
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.
Generated from protobuf enum TRANSPARENT_HUGEPAGE_DEFRAG_ALWAYS = 1;
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER
Value: 2
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.
Generated from protobuf enum TRANSPARENT_HUGEPAGE_DEFRAG_DEFER = 2;
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE
Value: 3
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.
Generated from protobuf enum TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE = 3;
TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE
Value: 4
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.
Generated from protobuf enum TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE = 4;
TRANSPARENT_HUGEPAGE_DEFRAG_NEVER
Value: 5
It means that an application will never enter direct reclaim or compaction.
Generated from protobuf enum TRANSPARENT_HUGEPAGE_DEFRAG_NEVER = 5;