summaryrefslogtreecommitdiff
path: root/slabs.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-06-23 01:21:20 -0700
committerdormando <dormando@rydia.net>2017-06-23 01:21:20 -0700
commitb52da9e98add7cf6d72bb905acf003fea4b6d701 (patch)
treeb2f34853456feaa1ff6da33239b024de0a3d38f7 /slabs.c
parent5c43b80577a3dcdd47df9221ef42e5af22c1c641 (diff)
downloadmemcached-b52da9e98add7cf6d72bb905acf003fea4b6d701.tar.gz
sleep longer between slab move runs
waits at least a full millisecond before scanning the page again. should hammer a lot less in the background when stuck. could probably up more, but want to keep it relatively aggressive in case of hot memory that it might have to free a few times.
Diffstat (limited to 'slabs.c')
-rw-r--r--slabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slabs.c b/slabs.c
index f76bd15..0fc3d16 100644
--- a/slabs.c
+++ b/slabs.c
@@ -1092,7 +1092,7 @@ static void *slab_rebalance_thread(void *arg) {
} else if (was_busy) {
/* Stuck waiting for some items to unlock, so slow down a bit
* to give them a chance to free up */
- usleep(50);
+ usleep(1000);
}
if (slab_rebalance_signal == 0) {