[erlang-questions] Cost of reduction penalty when sending message to process with long queue

Lukas Larsson garazdawi@REDACTED
Thu Jun 16 13:21:40 CEST 2016


On Thu, Jun 16, 2016 at 12:06 PM, Max Lapshin <max.lapshin@REDACTED> wrote:

> If lager_event message queue is 1 mln length and about 300 processes are
> trying to send there message, may it lead to long_schedule  sys monitor
> event?
>
>
Of the sending processes? Not because of sender punishment, if anything it
should alleviate the problem. The main thing that I can think of is that
very high contention on the receiving processes message queue lock is
causing the sending processes to block for a long time.

If you can, you may want to run with the lock counter and see if the
message queue lock shows up a lot in there (especially check the histogram
of wait times on the lock).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160616/f7df3869/attachment.htm>


More information about the erlang-questions mailing list