Class LinuxNodeConfig.NodeVfioConfig.Builder (2.102.0)

public static final class LinuxNodeConfig.NodeVfioConfig.Builder extends GeneratedMessage.Builder<LinuxNodeConfig.NodeVfioConfig.Builder> implements LinuxNodeConfig.NodeVfioConfigOrBuilder

Configuration settings for VFIO (Virtual Function I/O) on a node. VFIO allows safe, unprivileged, userspace drivers to access I/O devices.

Protobuf type google.container.v1.LinuxNodeConfig.NodeVfioConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public LinuxNodeConfig.NodeVfioConfig build()
Returns
Type Description
LinuxNodeConfig.NodeVfioConfig

buildPartial()

public LinuxNodeConfig.NodeVfioConfig buildPartial()
Returns
Type Description
LinuxNodeConfig.NodeVfioConfig

clear()

public LinuxNodeConfig.NodeVfioConfig.Builder clear()
Returns
Type Description
LinuxNodeConfig.NodeVfioConfig.Builder
Overrides

clearDmaEntryLimit()

public LinuxNodeConfig.NodeVfioConfig.Builder clearDmaEntryLimit()

Optional. Specifies the maximum number of DMA entries (pages) that can be mapped by the VFIO IOMMU type 1 driver for a container. This limit affects the total amount of host memory that can be pinned for direct device access, which is often critical for high-performance devices like TPUs and GPUs. This setting corresponds to the kernel parameter at: /sys/module/vfio_iommu_type1/parameters/dma_entry_limit. The default value in the kernel is 65535. Higher values may be needed for workloads mapping large memory regions. Supported values are integers between 65535 and 4194304.

optional int32 dma_entry_limit = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.NodeVfioConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public LinuxNodeConfig.NodeVfioConfig getDefaultInstanceForType()
Returns
Type Description
LinuxNodeConfig.NodeVfioConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDmaEntryLimit()

public int getDmaEntryLimit()

Optional. Specifies the maximum number of DMA entries (pages) that can be mapped by the VFIO IOMMU type 1 driver for a container. This limit affects the total amount of host memory that can be pinned for direct device access, which is often critical for high-performance devices like TPUs and GPUs. This setting corresponds to the kernel parameter at: /sys/module/vfio_iommu_type1/parameters/dma_entry_limit. The default value in the kernel is 65535. Higher values may be needed for workloads mapping large memory regions. Supported values are integers between 65535 and 4194304.

optional int32 dma_entry_limit = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The dmaEntryLimit.

hasDmaEntryLimit()

public boolean hasDmaEntryLimit()

Optional. Specifies the maximum number of DMA entries (pages) that can be mapped by the VFIO IOMMU type 1 driver for a container. This limit affects the total amount of host memory that can be pinned for direct device access, which is often critical for high-performance devices like TPUs and GPUs. This setting corresponds to the kernel parameter at: /sys/module/vfio_iommu_type1/parameters/dma_entry_limit. The default value in the kernel is 65535. Higher values may be needed for workloads mapping large memory regions. Supported values are integers between 65535 and 4194304.

optional int32 dma_entry_limit = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dmaEntryLimit field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LinuxNodeConfig.NodeVfioConfig other)

public LinuxNodeConfig.NodeVfioConfig.Builder mergeFrom(LinuxNodeConfig.NodeVfioConfig other)
Parameter
Name Description
other LinuxNodeConfig.NodeVfioConfig
Returns
Type Description
LinuxNodeConfig.NodeVfioConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LinuxNodeConfig.NodeVfioConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinuxNodeConfig.NodeVfioConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LinuxNodeConfig.NodeVfioConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LinuxNodeConfig.NodeVfioConfig.Builder
Overrides

setDmaEntryLimit(int value)

public LinuxNodeConfig.NodeVfioConfig.Builder setDmaEntryLimit(int value)

Optional. Specifies the maximum number of DMA entries (pages) that can be mapped by the VFIO IOMMU type 1 driver for a container. This limit affects the total amount of host memory that can be pinned for direct device access, which is often critical for high-performance devices like TPUs and GPUs. This setting corresponds to the kernel parameter at: /sys/module/vfio_iommu_type1/parameters/dma_entry_limit. The default value in the kernel is 65535. Higher values may be needed for workloads mapping large memory regions. Supported values are integers between 65535 and 4194304.

optional int32 dma_entry_limit = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The dmaEntryLimit to set.

Returns
Type Description
LinuxNodeConfig.NodeVfioConfig.Builder

This builder for chaining.