# Google Cloud Container V1 Client - Class TransparentHugepageDefrag (2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.4 2.2.1 2.1.0 2.0.0 1.33.0 1.32.0 1.31.0 1.30.3 1.24.0 1.23.0 1.22.0 1.21.1 1.20.0 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.0 1.13.1 1.12.1 1.10.3 1.9.1 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 \\ LinuxNodeConfig

## Methods

### 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;`