Package com.google.container.v1
Enum LinuxNodeConfig.TransparentHugepageDefrag
java.lang.Object
java.lang.Enum<LinuxNodeConfig.TransparentHugepageDefrag>
com.google.container.v1.LinuxNodeConfig.TransparentHugepageDefrag
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<LinuxNodeConfig.TransparentHugepageDefrag>
- Enclosing class:
- LinuxNodeConfig
public static enum LinuxNodeConfig.TransparentHugepageDefrag
extends Enum<LinuxNodeConfig.TransparentHugepageDefrag>
implements com.google.protobuf.ProtocolMessageEnum
Possible values for transparent hugepage defrag support.Protobuf enum
google.container.v1.LinuxNodeConfig.TransparentHugepageDefrag-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIt 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.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 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.It means that an application will enter direct reclaim like always but only for regions that are have used madvise(MADV_HUGEPAGE).It means that an application will never enter direct reclaim or compaction.Default value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIt 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.static final intIt 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.static final intIt 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.static final intIt means that an application will enter direct reclaim like always but only for regions that are have used madvise(MADV_HUGEPAGE).static final intIt means that an application will never enter direct reclaim or compaction.static final intDefault value. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<LinuxNodeConfig.TransparentHugepageDefrag>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED
public static final LinuxNodeConfig.TransparentHugepageDefrag TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIEDDefault value. GKE will not modify the kernel configuration.
TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED = 0; -
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_ALWAYS = 1; -
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 = 2; -
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE
public static final LinuxNodeConfig.TransparentHugepageDefrag TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISEIt 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_DEFER_WITH_MADVISE = 3; -
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_MADVISE = 4; -
TRANSPARENT_HUGEPAGE_DEFRAG_NEVER
It means that an application will never enter direct reclaim or compaction.
TRANSPARENT_HUGEPAGE_DEFRAG_NEVER = 5; -
UNRECOGNIZED
-
-
Field Details
-
TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED_VALUE
public static final int TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED_VALUEDefault value. GKE will not modify the kernel configuration.
TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED = 0;- See Also:
-
TRANSPARENT_HUGEPAGE_DEFRAG_ALWAYS_VALUE
public static final int TRANSPARENT_HUGEPAGE_DEFRAG_ALWAYS_VALUEIt 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_ALWAYS = 1;- See Also:
-
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_VALUE
public static final int TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_VALUEIt 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 = 2;- See Also:
-
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE_VALUE
public static final int TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE_VALUEIt 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_DEFER_WITH_MADVISE = 3;- See Also:
-
TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE_VALUE
public static final int TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE_VALUEIt 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_MADVISE = 4;- See Also:
-
TRANSPARENT_HUGEPAGE_DEFRAG_NEVER_VALUE
public static final int TRANSPARENT_HUGEPAGE_DEFRAG_NEVER_VALUEIt means that an application will never enter direct reclaim or compaction.
TRANSPARENT_HUGEPAGE_DEFRAG_NEVER = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<LinuxNodeConfig.TransparentHugepageDefrag> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static LinuxNodeConfig.TransparentHugepageDefrag valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-