From 442c3de350b384980f084ae9ca6a23d02d998c18 Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 10 May 2022 18:30:12 +0000 Subject: [PATCH] Limit max overage to 20% during RDB save --- src/evict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evict.cpp b/src/evict.cpp index 20ebc9058..719e7a761 100644 --- a/src/evict.cpp +++ b/src/evict.cpp @@ -423,7 +423,7 @@ int getMaxmemoryState(size_t *total, size_t *logical, size_t *tofree, float *lev if (fPreSnapshot) maxmemory = static_cast(maxmemory * 0.9); // derate memory by 10% since we won't be able to free during snapshot if (g_pserver->FRdbSaveInProgress()) - maxmemory = static_cast(maxmemory*1.5); + maxmemory = static_cast(maxmemory*1.2); /* We may return ASAP if there is no need to compute the level. */ int return_ok_asap = !maxmemory || mem_reported <= maxmemory;