diff options
author | dormando <dormando@rydia.net> | 2017-11-16 18:51:44 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-11-28 14:18:05 -0800 |
commit | 46a297cb0b6bad956793c25cc04ee208fc75a843 (patch) | |
tree | 585aeee59c1ad4a7cba82e2a44826329cdfb611d /t/chunked-extstore.t | |
parent | fa37474c2a98ce4f23a4c3e059d432f798b878b6 (diff) | |
download | memcached-46a297cb0b6bad956793c25cc04ee208fc75a843.tar.gz |
extstore: crawler fix and ext_low_ttl option
LRU crawler was not marking reclaimed expired items as removed from the
storage engine. This could cause fragmentation to persist much longer than it
should, but would not cause any problems once compaction started.
Adds "ext_low_ttl" option. Items with a remaining expiration age below this
value are grouped into special pages. If you have a mixed TTL workload this
would help prevent low TTL items from causing excess fragmentation/compaction.
Pages with low ttl items are excluded from compaction.
Diffstat (limited to 't/chunked-extstore.t')
-rw-r--r-- | t/chunked-extstore.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/chunked-extstore.t b/t/chunked-extstore.t index e80c768..f3cf903 100644 --- a/t/chunked-extstore.t +++ b/t/chunked-extstore.t @@ -18,7 +18,7 @@ if (!supports_extstore()) { $ext_path = "/tmp/extstore.$$"; -my $server = new_memcached("-m 64 -U 0 -o ext_page_size=8,ext_page_count=8,ext_wbuf_size=2,ext_wbuf_count=3,ext_threads=1,ext_io_depth=2,ext_item_size=512,ext_item_age=2,ext_recache_rate=10000,ext_max_frag=0.9,ext_path=$ext_path,slab_chunk_max=16384"); +my $server = new_memcached("-m 64 -U 0 -o ext_page_size=8,ext_page_count=8,ext_wbuf_size=2,ext_threads=1,ext_io_depth=2,ext_item_size=512,ext_item_age=2,ext_recache_rate=10000,ext_max_frag=0.9,ext_path=$ext_path,slab_chunk_max=16384"); my $sock = $server->sock; # We're testing to ensure item chaining doesn't corrupt or poorly overlap |