• Oran Agra's avatar
    make redis purge jemalloc after flush, and enable background purging thread · 09f99c2a
    Oran Agra authored
    jemalloc 5 doesn't immediately release memory back to the OS, instead there's a decaying
    mechanism, which doesn't work when there's no traffic (no allocations).
    this is most evident if there's no traffic after flushdb, the RSS will remain high.
    
    1) enable jemalloc background purging
    2) explicitly purge in flushdb
    09f99c2a
zmalloc.c 14.8 KB