Commit ID 1dcc95d08105167a3a69acc4fd8d3bb725a5ac8f
|Date:||11-May-2012 at 17:17||Lines Added:||9|
|Repository:||git://github.com/antirez/redis.git unstable||Lines Removed:||1|
|Commit Comment:||More incremental active expired keys collection process.
If a large amonut of keys are all expiring about at the same time, the
"active" expired keys collection cycle used to block as far as the
percentage of already expired keys was >= 25% of the total population of
keys with an expire set.
This could block the server even for many seconds in order to reclaim
memory ASAP. The new algorithm uses at max a small amount of
milliseconds per cycle, even if this means reclaiming the memory less
promptly it also means a more responsive server.