diff options
author | dormando <dormando@rydia.net> | 2015-10-06 14:40:26 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2015-11-18 23:14:35 -0800 |
commit | 1c3f0a3d0f1844dd1d8443dea4d04733663d6495 (patch) | |
tree | 12c65daeeda7138d7771e1169abaab5048c807ec | |
parent | 6ee8daef6ac4a8d42807414af700e91e1d956743 (diff) | |
download | memcached-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |