From 9f3101ecc404f19fd3d92643d3cccc522e872891 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Thu, 18 Jul 2024 19:31:47 +0700 Subject: [PATCH] enable `madv_normal` for .kv files of > 0 lvl (#11223) enable `KV_MADV_NORMAL_NO_LAST_LVL=accounts,storage,code,commitment` by default --- erigon-lib/common/dbg/experiments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erigon-lib/common/dbg/experiments.go b/erigon-lib/common/dbg/experiments.go index db8773f6d92..3345d7fd84c 100644 --- a/erigon-lib/common/dbg/experiments.go +++ b/erigon-lib/common/dbg/experiments.go @@ -56,7 +56,7 @@ var ( BuildSnapshotAllowance = EnvInt("SNAPSHOT_BUILD_SEMA_SIZE", 2) // allows 2 kind of snapshots to be built simultaneously (e.g Caplin+Domains) SnapshotMadvRnd = EnvBool("SNAPSHOT_MADV_RND", true) - KvMadvNormalNoLastLvl = EnvString("KV_MADV_NORMAL_NO_LAST_LVL", "") + KvMadvNormalNoLastLvl = EnvString("KV_MADV_NORMAL_NO_LAST_LVL", "accounts,storage,code,commitment") //TODO: move this logic - from hacks to app-level KvMadvNormal = EnvString("KV_MADV_NORMAL", "") OnlyCreateDB = EnvBool("ONLY_CREATE_DB", false)