diff options
author | dormando <dormando@rydia.net> | 2012-01-03 18:11:02 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2012-01-03 18:11:02 -0800 |
commit | 99fc043af90170757a34802bd96111999013d0bc (patch) | |
tree | 311ffadfea00a9e46a05c0e0d7237ed2b10fd574 /items.h | |
parent | 10698bae63a034c14d2fdbc3027a1308ce90faba (diff) | |
download | memcached-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |