[erlang-questions] Cost of reduction penalty when sending message to process with long queue
Lukas Larsson
garazdawi@REDACTED
Thu Jun 16 08:00:28 CEST 2016
The value is gotten here:
https://github.com/erlang/otp/blob/master/erts/emulator/beam/erl_message.c#L434
multiplied here:
https://github.com/erlang/otp/blob/master/erts/emulator/beam/bif.c#L2310-L2311
and then bumped here:
https://github.com/erlang/otp/blob/master/erts/emulator/beam/bif.c#L2374
https://github.com/erlang/otp/blob/master/erts/emulator/beam/bif.c#L2504
Lukas
On Thu, Jun 16, 2016 at 7:25 AM, Max Lapshin <max.lapshin@REDACTED> wrote:
> We have met strange situation when lager_event is overloaded with about
> million of messages and all processes trying to log are mentioned in sys
> monitor with long_schedule warning.
>
>
> I thought that it may be a problem with penalisation of sender with some
> reductions but couldn't find exact formula in OTP sources. Where is it?
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160616/f60f3bff/attachment.htm>
More information about the erlang-questions
mailing list