On 2012-02-26 08:38:00 +0000, [email protected] wrote:
> But we got a problem related to LRU/"lazy" reclaim. The cache is filling  
> all available memory and then there are some evictions becuase they keys  
> have different expire time (some of them just 5 seconds, the others 24  
> hours).

You aren't the first to run into this problem. Various workarounds have
been offered, but you might want to look through the mailing-list
archives for the patch which promised O(1) sem-instant expiry (sorry, I
don't remember the subject or the author).

That patch probably doesn't apply to the current source any more and it
won't ever be applied to the core distribution (IIRC it takes a
significant amount of extra memory per item), but if you could write a
storage engine based on it that would probably solve your problem and be
useful for others, too. Certainly better than forking!

        hp

-- 
   _  | Peter J. Holzer    | Deprecating human carelessness and
|_|_) | Sysadmin WSR       | ignorance has no successful track record.
| |   | [email protected]         | 
__/   | http://www.hjp.at/ |  -- Bill Code on [email protected]

Attachment: signature.asc
Description: Digital signature

Reply via email to