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 Details

    • TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED

      public static final LinuxNodeConfig.TransparentHugepageDefrag TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED
       Default value. GKE will not modify the kernel configuration.
       
      TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED = 0;
    • TRANSPARENT_HUGEPAGE_DEFRAG_ALWAYS

      public static final LinuxNodeConfig.TransparentHugepageDefrag 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

      public static final LinuxNodeConfig.TransparentHugepageDefrag 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_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_DEFER_WITH_MADVISE = 3;
    • TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE

      public static final LinuxNodeConfig.TransparentHugepageDefrag 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

      public static final LinuxNodeConfig.TransparentHugepageDefrag TRANSPARENT_HUGEPAGE_DEFRAG_NEVER
       It means that an application will never enter direct reclaim or
       compaction.
       
      TRANSPARENT_HUGEPAGE_DEFRAG_NEVER = 5;
    • UNRECOGNIZED

      public static final LinuxNodeConfig.TransparentHugepageDefrag UNRECOGNIZED
  • Field Details

    • TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED_VALUE

      public static final int TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED_VALUE
       Default 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_VALUE
       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;
      See Also:
    • TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_VALUE

      public static final int TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_VALUE
       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;
      See Also:
    • TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE_VALUE

      public static final int TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE_VALUE
       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_DEFER_WITH_MADVISE = 3;
      See Also:
    • TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE_VALUE

      public static final int TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE_VALUE
       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;
      See Also:
    • TRANSPARENT_HUGEPAGE_DEFRAG_NEVER_VALUE

      public static final int TRANSPARENT_HUGEPAGE_DEFRAG_NEVER_VALUE
       It 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

      public static LinuxNodeConfig.TransparentHugepageDefrag valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static LinuxNodeConfig.TransparentHugepageDefrag valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static LinuxNodeConfig.TransparentHugepageDefrag forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null