From b52da9e98add7cf6d72bb905acf003fea4b6d701 Mon Sep 17 00:00:00 2001 From: dormando Date: Fri, 23 Jun 2017 01:21:20 -0700 Subject: 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. --- slabs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slabs.c') 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) { -- cgit v1.2.1