aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-04-12 20:51:49 +0200
committerSverker Eriksson <[email protected]>2016-04-15 19:00:33 +0200
commit6cbd63b281a9690b2db5fead3f756d34140f8fb5 (patch)
treebc3d4cceeffe40a3f41fbafe54ecc9c37f719015 /erts
parent01ac0d2cb316b97834eb1dbbe4a86d2a6be84f04 (diff)
downloadotp-6cbd63b281a9690b2db5fead3f756d34140f8fb5.tar.gz
otp-6cbd63b281a9690b2db5fead3f756d34140f8fb5.tar.bz2
otp-6cbd63b281a9690b2db5fead3f756d34140f8fb5.zip
erts: Tweak defaults for literal allocator
Reduce main carrier size and number of free descriptors.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_alloc.c4
-rw-r--r--erts/emulator/sys/common/erl_mmap.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_alloc.c b/erts/emulator/beam/erl_alloc.c
index 9cbe00d719..6b5f5bd63e 100644
--- a/erts/emulator/beam/erl_alloc.c
+++ b/erts/emulator/beam/erl_alloc.c
@@ -307,9 +307,9 @@ set_default_literal_alloc_opts(struct au_init *ip)
ip->init.util.name_prefix = "literal_";
ip->init.util.alloc_no = ERTS_ALC_A_LITERAL;
#ifndef SMALL_MEMORY
- ip->init.util.mmbcs = 2*1024*1024; /* Main carrier size */
+ ip->init.util.mmbcs = 1024*1024; /* Main carrier size */
#else
- ip->init.util.mmbcs = 1*1024*1024; /* Main carrier size */
+ ip->init.util.mmbcs = 256*1024; /* Main carrier size */
#endif
ip->init.util.ts = ERTS_ALC_MTA_LITERAL;
ip->init.util.asbcst = 0;
diff --git a/erts/emulator/sys/common/erl_mmap.h b/erts/emulator/sys/common/erl_mmap.h
index 67e131b53e..7c5ddbec0b 100644
--- a/erts/emulator/sys/common/erl_mmap.h
+++ b/erts/emulator/sys/common/erl_mmap.h
@@ -53,7 +53,7 @@ typedef struct {
#define ERTS_LITERAL_VIRTUAL_AREA_SIZE (UWORD_CONSTANT(1)*1024*1024*1024)
#define ERTS_MMAP_INIT_LITERAL_INITER \
- {{NULL, NULL}, {NULL, NULL}, ERTS_LITERAL_VIRTUAL_AREA_SIZE, 1, (1 << 16), 0}
+ {{NULL, NULL}, {NULL, NULL}, ERTS_LITERAL_VIRTUAL_AREA_SIZE, 1, (1 << 10), 0}
typedef struct ErtsMemMapper_ ErtsMemMapper;