[erlang-questions] Can't disable compensation for sudden changes of system time

Lukas Larsson <>
Thu Mar 27 11:26:31 CET 2014


Hello Word,

It is not possible to get this information out of the Erlang runtime via
any Erlang API call. The only way that I found was to attach a gdb session
to the running beam and print the value of the global
variable erts_disable_tolerant_timeofday.

Adding a call into erlang:system_info/1 that fetches the value should be
very simple if anyone feels like submitting a patch to add it.

Lukas


On Tue, Mar 25, 2014 at 9:25 AM, Ward Bekker <> wrote:

> Hi,
>
> I invoke erl like this:
>
> erl +A 8 +c -sname  -mnesia dir db_data -mnesia debug
> verbose -mnesia \
>     no_table_loaders 4 -mnesia dump_log_write_threshold 10000 -mnesia
> dc_dump_limit 20 \
>     -config priv/app.development \
>     -pa `pwd`/ebin `pwd`/deps/*/ebin -run reloader -s project start -s
> observer start
>
>
> Notice the '+c'. According to the docs (http://erlang.org/doc/man/erl.html)
> this emulator flag should disable compensation for sudden changes of system
> time. And more importantly, remove the period of high CPU just after
> resuming my computer (after a good night sleep).
>
> But it doesn't seem to work. How can I double check this emulator flag is
> indeed toggled within the Erlang shell?
> /Ward
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140327/dc634459/attachment.html>


More information about the erlang-questions mailing list