system

package
v0.19.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Kernel overhead factor
	// we need to multiply this factor to chunkSize to cover kernel overhead
	KernelOverheadFactor = 2

	// TargetKernelBufferSize is the target kernel buffer size for optimal performance
	TargetKernelBufferSize = chunkSize * KernelOverheadFactor
)

Variables

This section is empty.

Functions

func GetTCPBufferSize

func GetTCPBufferSize() (int, bool, error)

Types

type NetConfig

type NetConfig struct {
	CoreWmemMax int
	TcpWmemMax  int
}

func GetNetworkConfig

func GetNetworkConfig() (*NetConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL