[erlang-questions] Improve performance of IO bounded server written in Erlang via having pollset for each scheduler and bind port to scheduler together with process

Zabrane Mickael <>
Thu Jul 12 09:37:08 CEST 2012

Hi Max,

On Jul 12, 2012, at 8:21 AM, Max Lapshin wrote:

> Can You post code for benchmarks? Or it is here in topic and I've missed it?

The ehttpd code was sent by Wei (first email). Here it is again (attached).

You also need his patched version of the VM. More precisely, the "bind_port_to_scheduler" patch:

git clone git://github.com/weicao/otp.git
cd otp
git fetch git://github.com/weicao/otp.git bind_port_to_scheduler
./otp_build autoconf
make clean
CFLAGS="-DERTS_POLLSET_PER_SCHEDULER -g -O3 -fomit-frame-pointer" ./configure --prefix=/SOMEWHERE/usr
make && make install

export PATH=/SOMEWHERE/usr/bin:$PATH


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120712/c2c357a5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ehttpd.erl
Type: application/octet-stream
Size: 1585 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120712/c2c357a5/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120712/c2c357a5/attachment-0001.html>

More information about the erlang-questions mailing list