[erlang-questions] lowering jitter: best practices?

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Tue May 26 21:09:13 CEST 2015


On Tue, May 26, 2015 at 8:52 PM, Felix Gallo <felixgallo@REDACTED> wrote:

> {next_state,NextStateName,NewStateData,Timeout}


This explains why you sometimes get less than 30ms sleep times. If an event
reaches the process before Timeout, then the timeout is not triggered.
Also, it may explain the jitter you are seeing, because an early event will
reset the timeout. Try using gen_fsm:start_timer/2 or erlang:send_after...

If the problem persists, check lcnt. If you are locked on the timer wheel,
then consider release 18 :)


-- 
J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150526/f77403d3/attachment.htm>


More information about the erlang-questions mailing list