aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src/common/ethr_aux.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-06-16 23:03:55 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-06-16 23:12:42 +0200
commit22fda4c723eefe73c2eb34f13db326a53bfeba1f (patch)
tree90d0f7ff409067df5bf2d77e60689262aed5dba6 /erts/lib_src/common/ethr_aux.c
parentd57bf76c50e5193312babc39ea5324e9f549a4b8 (diff)
downloadotp-22fda4c723eefe73c2eb34f13db326a53bfeba1f.tar.gz
otp-22fda4c723eefe73c2eb34f13db326a53bfeba1f.tar.bz2
otp-22fda4c723eefe73c2eb34f13db326a53bfeba1f.zip
erts: Do not preallocate too large event pool
A pool size of 4000 is too excessive for the common case. Change ERTS_TS_EV_ALLOC_DEFAULT_POOL_SIZE to 2048 Change ERTS_TS_EV_ALLOC_POOL_SIZE to 32
Diffstat (limited to 'erts/lib_src/common/ethr_aux.c')
-rw-r--r--erts/lib_src/common/ethr_aux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/lib_src/common/ethr_aux.c b/erts/lib_src/common/ethr_aux.c
index 1ba51882c3..5b82a081ad 100644
--- a/erts/lib_src/common/ethr_aux.c
+++ b/erts/lib_src/common/ethr_aux.c
@@ -40,8 +40,8 @@
#include <unistd.h>
#endif
-#define ERTS_TS_EV_ALLOC_DEFAULT_POOL_SIZE 4000
-#define ERTS_TS_EV_ALLOC_POOL_SIZE 25
+#define ERTS_TS_EV_ALLOC_DEFAULT_POOL_SIZE 2048
+#define ERTS_TS_EV_ALLOC_POOL_SIZE 32
erts_cpu_info_t *ethr_cpu_info__;