Permalink
Browse files

MB-6595 Increase erlang mseg allocator cache size.

Default cache size is 5. Our tests show that setting it to a larger
value decreases the number of minor page faults generated by
erlang and somewhat reduces the chances of hitting timeouts.

The value that is used can be overridden by setting COUCHBASE_MSEG_CACHE_SIZE
environment variable.

Change-Id: If32cce298523f184cb79e11742f68ff17fd4147b
Reviewed-on: http://review.couchbase.org/23923
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information...
1 parent 122ef6c commit b9ccb6d5c27d2e375e7212ea7f93721ac5f63290 @aartamonau aartamonau committed with alk Jan 14, 2013
Showing with 4 additions and 1 deletion.
  1. +3 −1 cluster_run
  2. +1 −0 couchbase-server.sh.in
View
@@ -80,7 +80,9 @@ def start_cluster(num_nodes, start_index, host, extra_args, args_prefix):
os.stat("data/n_{0}/mnesia".format(i))
except:
os.makedirs("data/n_{0}/mnesia".format(i))
- args = args_prefix + ["erl", "+A", "16", "+sbtu", "+P", "327680", "-pa"] + ebin_path + [
+ args = args_prefix + ["erl", "+MMmcs" "30",
+ "+A", "16", "+sbtu",
+ "+P", "327680", "-pa"] + ebin_path + [
"-setcookie", "nocookie",
"-kernel", "inet_dist_listen_min", "21100",
"inet_dist_listen_max", "21199",
View
@@ -133,6 +133,7 @@ _start() {
+sbt u \
+P 327680 \
+K true \
+ +MMmcs ${COUCHBASE_MSEG_CACHE_SIZE:-30} \
-setcookie nocookie \
-kernel inet_dist_listen_min 21100 inet_dist_listen_max 21299 \
error_logger false \

0 comments on commit b9ccb6d

Please sign in to comment.