diff options
author | Rickard Green <[email protected]> | 2014-08-26 17:26:31 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2014-09-25 16:42:20 +0200 |
commit | 6084a42a24fca52a5de2bc487c0cd2be46dcc21f (patch) | |
tree | 63fe33c074ccce7dd8bf51e846b9b778b81e4af5 /erts/emulator/beam/erl_init.c | |
parent | 65e335e255cb76d979f605ed34700e4e02041139 (diff) | |
download | otp-6084a42a24fca52a5de2bc487c0cd2be46dcc21f.tar.gz otp-6084a42a24fca52a5de2bc487c0cd2be46dcc21f.tar.bz2 otp-6084a42a24fca52a5de2bc487c0cd2be46dcc21f.zip |
Introduce support for eager check I/O scheduling
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r-- | erts/emulator/beam/erl_init.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c index 8c4fffa75b..c3be23c84a 100644 --- a/erts/emulator/beam/erl_init.c +++ b/erts/emulator/beam/erl_init.c @@ -537,6 +537,8 @@ void erts_usage(void) erts_fprintf(stderr, " see the erl(1) documentation for more info.\n"); erts_fprintf(stderr, "-sct cput set cpu topology,\n"); erts_fprintf(stderr, " see the erl(1) documentation for more info.\n"); + erts_fprintf(stderr, "-secio bool enable/disable eager check I/O scheduling,\n"); + erts_fprintf(stderr, " see the erl(1) documentation for more info.\n"); erts_fprintf(stderr, "-sws val set scheduler wakeup strategy, valid values are:\n"); erts_fprintf(stderr, " default|legacy.\n"); erts_fprintf(stderr, "-swct val set scheduler wake cleanup threshold, valid values are:\n"); @@ -1487,6 +1489,19 @@ erl_start(int argc, char **argv) erts_usage(); } } + else if (has_prefix("ecio", sub_param)) { + arg = get_arg(sub_param+4, argv[i+1], &i); + if (sys_strcmp("true", arg) == 0) + erts_eager_check_io = 1; + else if (sys_strcmp("false", arg) == 0) + erts_eager_check_io = 0; + else { + erts_fprintf(stderr, + "bad schedule eager check I/O value '%s'\n", + arg); + erts_usage(); + } + } else if (has_prefix("pp", sub_param)) { arg = get_arg(sub_param+2, argv[i+1], &i); if (sys_strcmp(arg, "true") == 0) |