summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2012-01-03 18:11:02 -0800
committerdormando <dormando@rydia.net>2012-01-03 18:11:02 -0800
commit99fc043af90170757a34802bd96111999013d0bc (patch)
tree311ffadfea00a9e46a05c0e0d7237ed2b10fd574 /items.h
parent10698bae63a034c14d2fdbc3027a1308ce90faba (diff)
downloadmemcached-99fc043af90170757a34802bd96111999013d0bc.tar.gz
initial slab automover
Enable at startup with -o slab_reassign,slab_automove Enable or disable at runtime with "slabs automove 1\r\n" Has many weaknesses. Only pulls from slabs which have had zero recent evictions. Is slow, not tunable, etc. Use the scripts/mc_slab_mover example to write your own external automover if this doesn't satisfy.
Diffstat (limited to 'items.h')
-rw-r--r--items.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/items.h b/items.h
index fc7b85e..2ec142d 100644
--- a/items.h
+++ b/items.h
@@ -24,3 +24,4 @@ item *do_item_get(const char *key, const size_t nkey, const uint32_t hv);
item *do_item_touch(const char *key, const size_t nkey, uint32_t exptime, const uint32_t hv);
void item_stats_reset(void);
extern pthread_mutex_t cache_lock;
+void item_stats_evictions(uint64_t *evicted);