diff options
author | dormando <dormando@rydia.net> | 2022-02-21 12:42:07 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-02-21 12:44:29 -0800 |
commit | ae3efecb15dfeccabee9b3a7ec429a6c7c41e032 (patch) | |
tree | 0822a9ded59c7ce53101bfc738207b30f3c959cc /memcached.h | |
parent | 34e0359d4de223d8cde4166f7d10ae352d7ebfdf (diff) | |
download | memcached-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.h | 1 |
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 */ |