fragmem

package
v0.5.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDelayTimes

func GetDelayTimes() int

GetDelayValue returns the value of the global delayTimes

func SetDelayTimes

func SetDelayTimes(value int)

SetDelayValue sets the value of the global delayTimes

func SetMemCompact

func SetMemCompact(conf *coreconfig.Configuration,
	_ interface{}, _ *dynamicconfig.DynamicAgentConfiguration,
	emitter metrics.MetricEmitter, metaServer *metaserver.MetaServer,
)
SetMemCompact is the unified solution for memory compaction.

* it includes 3 parts: * 1, set the threshold of fragmentation score that triggers synchronous memory compaction in the memory slow path. * 2, if has proactive compaction feature, then set the threshold of fragmentation score for asynchronous memory compaction through compaction_proactiveness. * 3, if no proactive compaction feature, then use the threshold of fragmentation score to trigger manually memory compaction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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