aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-04-12 10:42:39 +0200
committerLukas Larsson <[email protected]>2019-04-18 14:13:35 +0200
commit3e9c74400d20d95e9bbc378478dc00cbafba6b47 (patch)
tree8af1980fed055ad4ef42a58c7cdd6ab2f24f9db6
parent926024ba945f21c031f7cf513993ac5aec3c5467 (diff)
downloadotp-3e9c74400d20d95e9bbc378478dc00cbafba6b47.tar.gz
otp-3e9c74400d20d95e9bbc378478dc00cbafba6b47.tar.bz2
otp-3e9c74400d20d95e9bbc378478dc00cbafba6b47.zip
erts: Run smaller dist frag test to 32 bit machines
Because of fragmentation of memory it is not always possible to allocate enough 320 MB segments on 32-bit so we only sent smaller packets there.
-rw-r--r--erts/emulator/test/distribution_SUITE.erl11
1 files changed, 7 insertions, 4 deletions
diff --git a/erts/emulator/test/distribution_SUITE.erl b/erts/emulator/test/distribution_SUITE.erl
index 58194cf167..c8f190d29d 100644
--- a/erts/emulator/test/distribution_SUITE.erl
+++ b/erts/emulator/test/distribution_SUITE.erl
@@ -1480,11 +1480,14 @@ measure_latency_large_message(Nodename, DataFun) ->
Echo = spawn(N, fun F() -> receive {From, Msg} -> From ! Msg, F() end end),
- case erlang:system_info(build_type) of
- debug ->
+ BuildType = erlang:system_info(build_type),
+ WordSize = erlang:system_info(wordsize),
+
+ if
+ BuildType =/= opt; WordSize =:= 4 ->
%% Test 3.2 MB and 32 MB and test the latency difference of sent messages
Payloads = [{I, <<0:(I * 32 * 1024 * 8)>>} || I <- [1,10]];
- _ ->
+ true ->
%% Test 32 MB and 320 MB and test the latency difference of sent messages
Payloads = [{I, <<0:(I * 32 * 1024 * 1024 * 8)>>} || I <- [1,10]]
end,
@@ -1499,7 +1502,7 @@ measure_latency_large_message(Nodename, DataFun) ->
stop_node(N),
case {lists:max(Times), lists:min(Times)} of
- {Max, Min} when Max * 0.25 > Min ->
+ {Max, Min} when Max * 0.25 > Min, BuildType =:= opt ->
ct:fail({incorrect_latency, IndexTimes});
_ ->
ok