aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-11-18 09:20:17 +0100
committerRickard Green <[email protected]>2011-11-18 09:20:17 +0100
commitac59f1fae260d24ea23f577b739101ad64ffa4fa (patch)
tree6df011c7ae2c16078fca5ddd9113e6a8e077b8a1 /erts/emulator/beam/erl_process.c
parent1d4c9de4304de621a41dcbe5eef866d449b03a12 (diff)
parentac7dcc23af68ef5a01ce5ca03ad485595bf5e18b (diff)
downloadotp-ac59f1fae260d24ea23f577b739101ad64ffa4fa.tar.gz
otp-ac59f1fae260d24ea23f577b739101ad64ffa4fa.tar.bz2
otp-ac59f1fae260d24ea23f577b739101ad64ffa4fa.zip
Merge branch 'rickard/sched-compact-load/OTP-9695'
* rickard/sched-compact-load/OTP-9695: Add switch that can disable scheduler compaction of load
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r--erts/emulator/beam/erl_process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index a3c1c9577b..a1f5069b2d 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -114,6 +114,7 @@ static Sint p_serial;
static Uint p_serial_mask;
static Uint p_serial_shift;
+int erts_sched_compact_load;
Uint erts_no_schedulers;
Uint erts_max_processes = ERTS_DEFAULT_MAX_PROCESSES;
Uint erts_process_tab_index_mask;
@@ -2949,6 +2950,9 @@ check_balance(ErtsRunQueue *c_rq)
mmax_len = run_queue_info[qix].max_len;
}
+ if (!erts_sched_compact_load)
+ goto all_active;
+
if (!forced && half_full_scheds != blnc_no_rqs) {
int min = 1;
if (min < half_full_scheds)