Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit b9ccb6d5c27d2e375e7212ea7f93721ac5f63290 1 parent 122ef6c
@aartamonau aartamonau authored alk committed
Showing with 4 additions and 1 deletion.
  1. +3 −1 cluster_run
  2. +1 −0  couchbase-server.sh.in
View
4 cluster_run
@@ -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
1  couchbase-server.sh.in
@@ -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 \
Please sign in to comment.
Something went wrong with that request. Please try again.