summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-09-28 18:59:28 -0700
committerdormando <dormando@rydia.net>2017-11-28 14:18:05 -0800
commit73351ead77f39b002f1f715536345ba0a2f50f72 (patch)
tree77a0c6919ac8beaa8ed30b154ae967a7c12fa01d /memcached.h
parent6771103030aa119e6c17454ee8c86ea8b164a9d2 (diff)
downloadmemcached-73351ead77f39b002f1f715536345ba0a2f50f72.tar.gz
extstore: skip unhit objects if full in compaction
if < 2 free pages left, "evict" objects which haven't been hit at all. should be better than evicting everything if we can continue compacting.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h
index 97c78f6..b1eab10 100644
--- a/memcached.h
+++ b/memcached.h
@@ -319,6 +319,11 @@ struct stats {
uint64_t log_worker_written; /* logs written by worker threads */
uint64_t log_watcher_skipped; /* logs watchers missed */
uint64_t log_watcher_sent; /* logs sent to watcher buffers */
+#ifdef EXTSTORE
+ uint64_t extstore_compact_lost; /* items lost because they were locked */
+ uint64_t extstore_compact_rescues; /* items re-written during compaction */
+ uint64_t extstore_compact_skipped; /* unhit items skipped during compaction */
+#endif
struct timeval maxconns_entered; /* last time maxconns entered */
};