MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / updateSysAvailableMemory

Function updateSysAvailableMemory

src/evict.cpp:637–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637static void updateSysAvailableMemory() {
638 if (g_pserver->force_eviction_percent) {
639 g_pserver->cron_malloc_stats.sys_available = getMemAvailable();
640 }
641}
642
643/* Check that memory usage is within the current "maxmemory" limit. If over
644 * "maxmemory", attempt to free memory by evicting data (if it's safe to do so).

Callers 1

performEvictionsFunction · 0.85

Calls 1

getMemAvailableFunction · 0.85

Tested by

no test coverage detected