3 ms·
Do you mention the old version of memcached? Newer versions seem doesn't need that 60s anymore. The architecture feels similar to BP-Wrapper. Ref: https://memca
by quangtung 3y ago
Do you mention the old version of memcached?
Newer versions seem doesn't need that 60s anymore. The architecture feels similar to BP-Wrapper.
Ref: https://memcached.org/blog/modern-lru/ https://memcached.org/blog/modern-lru/
- NovaX 3y agoOh, thank you! I didn't realize that LRU Maintainer Thread was more than an expiration reaper. When it was first being introduced that was its first responsibility as lazy expiration removal by size eviction meant dead entries wasted capacity. It was all work in progress when I had read about it [1] and talked to dormando, so it got fuzzy. The compat code [2, 3] might have also thrown me off if I only looked at the setting and not the usage. Its a neat variant to all of these ideas. [1] https://github.com/memcached/memcached/pull/97 https://github.com/memcached/memcached/pull/97 [2] https://github.com/memcached/memcached/blob/9723c0ea8ec1237b8364410ba982af8ea020a2b6/memcached.h#L103-L108 https://github.com/memcached/memcached/blob/9723c0ea8ec1237b... [3] https://github.com/memcached/memcached/blob/9723c0ea8ec1237b8364410ba982af8ea020a2b6/items.c#L562-L589 https://github.com/memcached/memcached/blob/9723c0ea8ec1237b...