aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/alloc_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-11-28 14:53:23 +0100
committerLukas Larsson <[email protected]>2013-11-28 14:53:23 +0100
commit172ac461d7055b655a9b5c22c1d95a140624945f (patch)
tree362337ac628865f805d8b27ae7e32b54692ae260 /erts/emulator/test/alloc_SUITE.erl
parent0ce1af08e397ff1af25f6d3359ad5032f67bf7a8 (diff)
parente9c04e92199deb274e1bb74e4caecd296443ca5f (diff)
downloadotp-172ac461d7055b655a9b5c22c1d95a140624945f.tar.gz
otp-172ac461d7055b655a9b5c22c1d95a140624945f.tar.bz2
otp-172ac461d7055b655a9b5c22c1d95a140624945f.zip
Merge branch 'lukas/erts/supercarrier_fix/OTP-11149' into maint
* lukas/erts/supercarrier_fix/OTP-11149: Improve error info when main carrier creation fails Conflicts: erts/emulator/test/alloc_SUITE.erl
Diffstat (limited to 'erts/emulator/test/alloc_SUITE.erl')
-rw-r--r--erts/emulator/test/alloc_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/erts/emulator/test/alloc_SUITE.erl b/erts/emulator/test/alloc_SUITE.erl
index cd2d043f7e..35c44c229a 100644
--- a/erts/emulator/test/alloc_SUITE.erl
+++ b/erts/emulator/test/alloc_SUITE.erl
@@ -127,7 +127,12 @@ erts_mmap(Config) when is_list(Config) ->
erts_mmap_do(Config, SCO, SCRPM, SCRFSD) ->
- SCS = 100, % Mb
+ %% We use the number of schedulers + 1 * approx main carriers size
+ %% to calculate how large the super carrier has to be
+ %% and then use a minimum of 100 for systems with a low amount of
+ %% schedulers
+ Schldr = erlang:system_info(schedulers_online)+1,
+ SCS = max(round((262144 * 6 + 3 * 1048576) * Schldr / 1024 / 1024),100),
O1 = "+MMscs" ++ integer_to_list(SCS)
++ " +MMsco" ++ atom_to_list(SCO)
++ " +MMscrpm" ++ atom_to_list(SCRPM),