You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2022/06/30 19:47:21 UTC
[couchdb] 01/01: Update vm.args for Erlang 23+
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch modernize-vm-args
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit ab8d4deaa09fa52bb8edbc78a273111b621f11ac
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Thu Jun 30 15:41:33 2022 -0400
Update vm.args for Erlang 23+
* file IO is using dirty IO schedulers and not the async IO thread pool
* `-smp enable` does nothing, it's always enalbed
* kernel polling is always enabled
```
% erl +SDio 16
Erlang/OTP 23 [erts-11.2.2.13] [source] [64-bit] [smp:12:12] [ds:12:12:16] [async-threads:1]
> erlang:system_info(kernel_poll).
true
> erlang:system_info(dirty_io_schedulers).
16
``
---
rel/overlay/etc/vm.args | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/rel/overlay/etc/vm.args b/rel/overlay/etc/vm.args
index 3ade5cbe5..cf75ff609 100644
--- a/rel/overlay/etc/vm.args
+++ b/rel/overlay/etc/vm.args
@@ -48,18 +48,13 @@
-kernel error_logger silent
-sasl sasl_error_logger false
-# Use kernel poll functionality if supported by emulator
-+K true
-
-# Start a pool of asynchronous IO threads
-+A 16
+# Increase the pool of dirty IO schedulers from 10 to 16
+# Dirty IO schedulers are used for file IO.
++SDio 16
# Comment this line out to enable the interactive Erlang shell on startup
+Bd -noinput
-# Force use of the smp scheduler, fixes #1296
--smp enable
-
# Set maximum SSL session lifetime to reap terminated replication readers
-ssl session_lifetime 300