lib/memory: add more details to -memory.allowedPercent help message

This commit is contained in:
Aliaksandr Valialkin 2020-04-09 15:28:53 +03:00
parent f94a090020
commit f86947d55c

View file

@ -8,7 +8,9 @@ import (
"github.com/VictoriaMetrics/VictoriaMetrics/lib/logger"
)
var allowedMemPercent = flag.Float64("memory.allowedPercent", 60, "Allowed percent of system memory VictoriaMetrics caches may occupy")
var allowedMemPercent = flag.Float64("memory.allowedPercent", 60, "Allowed percent of system memory VictoriaMetrics caches may occupy. "+
"Too low value may increase cache miss rate, which usually results in higher CPU and disk IO usage. "+
"Too high value may evict too much data from OS page cache, which will result in higher disk IO usage")
var (
allowedMemory int