diff options
author | dormando <dormando@rydia.net> | 2017-06-23 01:21:20 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-06-23 01:21:20 -0700 |
commit | b52da9e98add7cf6d72bb905acf003fea4b6d701 (patch) | |
tree | b2f34853456feaa1ff6da33239b024de0a3d38f7 /slabs.c | |
parent | 5c43b80577a3dcdd47df9221ef42e5af22c1c641 (diff) | |
download | memcached-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |