diff --git a/src/config.c b/src/config.c index 9c996b555f..adc964307f 100644 --- a/src/config.c +++ b/src/config.c @@ -2502,6 +2502,8 @@ static int updateReplBacklogSize(const char **err) { return 1; } +/* Adjusts `maxmemory_reserved_scale` to ensure it remains within the valid range of 10 to 60, if set. + * Once adjusted, the available memory is recalculated to reflect the new reserved memory. */ static int updateMaxmemoryReserved(const char **err) { UNUSED(err); if (server.maxmemory_reserved_scale) { diff --git a/valkey.conf b/valkey.conf index be5a69e467..31b0c2847f 100644 --- a/valkey.conf +++ b/valkey.conf @@ -1249,10 +1249,10 @@ acllog-max-len 128 # # active-expire-effort 1 # -# It allows the valkey to evict keys earlier. The value of this parameter represents -# percent of the maxmemory value. It means how much memory the valkey instance want to hold -# not to store the data. -# Default is 0, and the value could be set between 10 to 60. +# This parameter allows Valkey to evict keys earlier. The value represents +# a percentage of the maxmemory limit, indicating how much memory the Valkey instance reserves +# without storing data. +# The default is 0, and the value can be set between 10 and 60. # # maxmemory-reserved-scale 0