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 /slabs.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 'slabs.h')
-rw-r--r-- | slabs.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -34,6 +34,13 @@ bool slabs_adjust_mem_limit(size_t new_mem_limit); /** Return a datum for stats in binary protocol */ bool get_stats(const char *stat_type, int nkey, ADD_STAT add_stats, void *c); +typedef struct { + unsigned int chunks_per_page; + long int free_chunks; + long int total_pages; +} slab_stats_automove; +void fill_slab_stats_automove(slab_stats_automove *am); + /** Fill buffer with stats */ /*@null@*/ void slabs_stats(ADD_STAT add_stats, void *c); |