[erlang-questions] Low disk logging performance in SMP

Per Melin per.melin@REDACTED
Fri Apr 24 18:06:53 CEST 2009


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.

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.



More information about the erlang-questions mailing list