[erlang-questions] gen_tcp receving slow

igwan igwan@REDACTED
Tue Sep 25 18:18:28 CEST 2007

Per Hedeland wrote :
> I guess you'll need to dig deep into the inet modules and driver to
> figure out why.:-)
I'm glad I don't need to ... :-) I just raised recbuf to a higher value 
and now I'm happy :

with {recbuf, 10*1024*1024} transfering 113 MB of data :

24> tcptest:listener(1234).
Incoming connection accepted.
Received 113468091 bytes in 2619.79 ms.

That's 43 MB/s, about the read-speed of my hard-disk. Beam now only 
takes about 75% CPU during the process.
I should have thought about that one. Sorry for the noise !


More information about the erlang-questions mailing list