sockmem

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSockMemLimit

func SetSockMemLimit(conf *coreconfig.Configuration,
	_ interface{}, _ *dynamicconfig.DynamicAgentConfiguration,
	emitter metrics.MetricEmitter, metaServer *metaserver.MetaServer,
)

SetSockMemLimit is the unified solution for tcpmem limitation. * it includes 3 parts: * 1, set the global tcpmem limitation by changing net.ipv4.tcp_mem. * 2, do nothing under cgroupv2. * 3, set the cgroup tcpmem limitation under cgroupv1.

Types

type SockMemConfig

type SockMemConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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