summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-06-20 17:30:21 -0700
committerdormando <dormando@rydia.net>2017-06-23 01:12:53 -0700
commit5c43b80577a3dcdd47df9221ef42e5af22c1c641 (patch)
tree07589085149f453bf5db0d1cf11072ce98abb471 /scripts
parentdee6557c47e94953d230456569e9ba4974c441d1 (diff)
downloadmemcached-5c43b80577a3dcdd47df9221ef42e5af22c1c641.tar.gz
add a real slab automover algorithm
converts the python script to C, more or less.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/memcached-automove2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/memcached-automove b/scripts/memcached-automove
index 6b4011b..f881129 100755
--- a/scripts/memcached-automove
+++ b/scripts/memcached-automove
@@ -87,7 +87,7 @@ def determine_move(history, diffs, totals):
break
# are we the oldest slab class? (and a valid target)
- if age > oldest[1] and slab['total_pages'] > 5:
+ if age > oldest[1] and slab['total_pages'] > 2:
oldest = (sid, age)
# are we the youngest evicting slab class?