[erlang-questions] Low disk logging performance in SMP

Anders Nygren anders.nygren@REDACTED
Fri Apr 24 18:52:04 CEST 2009


On Fri, Apr 24, 2009 at 11:06 AM, Per Melin <per.melin@REDACTED> wrote:
> chaitanya Chalasani:
>> I am facing performance issue with my file logger. The file logger is an
>> event handler holding the file reference is its state. The performance of
>> the module is way ahead in the smp disabled erl shell compared with default
>> smp enabled erl shell.
>
> [...]
>
>> Is there a problem with my code or is it a known issue?
>
> It is known that once you queue up a few tens of thousand messages
> into a mailbox your performance drops noticeably for doing a receive.

I hope You meant when doing a SELECTIVE receive, right.

/Anders

>
> With SMP you will send your one million messages much, much faster
> than the logger can process them and the mailbox will immediately fill
> up to a point where it will just go slower and slower.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list