From 33226247d45e1ef0868b925a3759d046c560987c Mon Sep 17 00:00:00 2001 From: Yao Yue Date: Fri, 7 Sep 2012 12:43:06 +0800 Subject: [PATCH] updating ChangeLog and README.md --- ChangeLog | 7 ++++--- README.md | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a57d3f6..329f643 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,9 @@ 2012-09-06 Cache Team * twemcache: version 2.5.1 release * Feature: slab LRC eviction (-M 8), designed for write through cases - * Feature: auto klog ratation support, reopen after size reaches 1GB - klog is turned on if a filename is given at start time + * Feature: auto klog rotation support, reopen after size reaches 1GB + klog is turned on if a filename is given at start time + * Feature: Backporting fixed size (-e) hash feature from memcached 1.4.8 * Cleanup: data flags and data length now stored as part of item header * Misc: updated TODO list @@ -12,7 +13,7 @@ multiple eviction strategies can now be stacked * Fix: fix logical error of code and remove meaningless code (monadbobo) * Misc: new notes, updated TODO list - add twctop README + add twctop README 2012-07-10 Cache Team diff --git a/README.md b/README.md index 1667a8b..af01d24 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,8 @@ Eviction is triggered when a cache reaches full memory capacity. This happens wh * No eviction (0) - don't evict, respond with server error reply. * Item LRU eviction (1) - evict only existing items in the same slab class, least recently updated first; essentially a per-slabclass LRU eviction. * Random eviction (2) - evict all items from a randomly chosen slab. -* Slab LRU eviction (4) - choose the least recently updated slab, and evict all items from it to reuse the slab. +* Slab LRA eviction (4) - choose the least recently accessed slab, and evict all items from it to reuse the slab. +* Slab LRC eviction (8) - choose the least recently created slab, and evict all items from it to reuse the slab. Eviction ignores freeq & lruq to make sure the eviction follows the timestamp closely. Recommended if cache is updated on the write path. Eviction strategies can be *stacked*, in the order of higher to lower bit. For example, `-M 5` means that if slab LRU eviciton fails, Twemcache will try item LRU eviction.