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 /slab_automove.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 'slab_automove.h')
-rw-r--r-- | slab_automove.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/slab_automove.h b/slab_automove.h new file mode 100644 index 0000000..99d8d0c --- /dev/null +++ b/slab_automove.h @@ -0,0 +1,8 @@ +#ifndef SLAB_AUTOMOVE_H +#define SLAB_AUTOMOVE_H + +void *slab_automove_init(uint32_t window_size, double max_age_ratio); +void slab_automove_free(void *arg); +void slab_automove_run(void *arg, int *src, int *dst); + +#endif |