summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-02-21 12:42:07 -0800
committerdormando <dormando@rydia.net>2022-02-21 12:44:29 -0800
commitae3efecb15dfeccabee9b3a7ec429a6c7c41e032 (patch)
tree0822a9ded59c7ce53101bfc738207b30f3c959cc /memcached.h
parent34e0359d4de223d8cde4166f7d10ae352d7ebfdf (diff)
downloadmemcached-ae3efecb15dfeccabee9b3a7ec429a6c7c41e032.tar.gz
storage: parameterize the compaction thread sleep
allows tests to run faster, let users make it sleep longer/less time. Also cuts the sleep time down when actively compacting and coming from high idle.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h
index 0650515..3435677 100644
--- a/memcached.h
+++ b/memcached.h
@@ -495,6 +495,7 @@ struct settings {
unsigned int ext_wbuf_size; /* read only note for the engine */
unsigned int ext_compact_under; /* when fewer than this many pages, compact */
unsigned int ext_drop_under; /* when fewer than this many pages, drop COLD items */
+ unsigned int ext_max_sleep; /* maximum sleep time for extstore bg threads, in us */
double ext_max_frag; /* ideal maximum page fragmentation */
double slab_automove_freeratio; /* % of memory to hold free as buffer */
bool ext_drop_unread; /* skip unread items during compaction */