summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2015-10-06 14:40:26 -0700
committerdormando <dormando@rydia.net>2015-11-18 23:14:35 -0800
commit1c3f0a3d0f1844dd1d8443dea4d04733663d6495 (patch)
tree12c65daeeda7138d7771e1169abaab5048c807ec
parent6ee8daef6ac4a8d42807414af700e91e1d956743 (diff)
downloadmemcached-1c3f0a3d0f1844dd1d8443dea4d04733663d6495.tar.gz
tune automove to required 2.5 pages of free chunks
if we're deciding to move pages right on the chunk boundary it's too easy to cause flapping.
-rw-r--r--items.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/items.c b/items.c
index 98bebb0..685b06b 100644
--- a/items.c
+++ b/items.c
@@ -906,7 +906,7 @@ static int lru_maintainer_juggle(const int slabs_clsid) {
* worth of chunks free in this class, ask (gently) to reassign a page
* from this class back into the global pool (0)
*/
- if (settings.slab_automove > 0 && chunks_free > (chunks_perslab * 2)) {
+ if (settings.slab_automove > 0 && chunks_free > (chunks_perslab * 2.5)) {
slabs_reassign(slabs_clsid, SLAB_GLOBAL_PAGE_POOL);
}