diff options
author | dormando <dormando@rydia.net> | 2017-06-20 17:30:21 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-06-23 01:12:53 -0700 |
commit | 5c43b80577a3dcdd47df9221ef42e5af22c1c641 (patch) | |
tree | 07589085149f453bf5db0d1cf11072ce98abb471 /items.h | |
parent | dee6557c47e94953d230456569e9ba4974c441d1 (diff) | |
download | memcached-5c43b80577a3dcdd47df9221ef42e5af22c1c641.tar.gz |
add a real slab automover algorithm
converts the python script to C, more or less.
Diffstat (limited to 'items.h')
-rw-r--r-- | items.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -46,6 +46,14 @@ void item_stats_sizes_add(item *it); void item_stats_sizes_remove(item *it); bool item_stats_sizes_status(void); +/* stats getter for slab automover */ +typedef struct { + int64_t evicted; + int64_t outofmemory; + uint32_t age; +} item_stats_automove; +void fill_item_stats_automove(item_stats_automove *am); + item *do_item_get(const char *key, const size_t nkey, const uint32_t hv, conn *c, const bool do_update); item *do_item_touch(const char *key, const size_t nkey, uint32_t exptime, const uint32_t hv, conn *c); void item_stats_reset(void); |