mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
68dfaa1449
commit
9767a52ed0
1 changed files with 0 additions and 4 deletions
|
@ -1275,10 +1275,6 @@ func (pt *partition) getMaxSmallPartSize() uint64 {
|
||||||
// Small parts are cached in the OS page cache,
|
// Small parts are cached in the OS page cache,
|
||||||
// so limit their size by the remaining free RAM.
|
// so limit their size by the remaining free RAM.
|
||||||
mem := memory.Remaining()
|
mem := memory.Remaining()
|
||||||
// It is expected no more than defaultPartsToMerge/2 parts exist
|
|
||||||
// in the OS page cache before they are merged into bigger part.
|
|
||||||
// Half of the remaining RAM must be left for lib/mergeset parts,
|
|
||||||
// so the maxItems is calculated using the below code:
|
|
||||||
n := uint64(mem) / defaultPartsToMerge
|
n := uint64(mem) / defaultPartsToMerge
|
||||||
if n < 10e6 {
|
if n < 10e6 {
|
||||||
n = 10e6
|
n = 10e6
|
||||||
|
|
Loading…
Reference in a new issue