[erlang-questions] trying to understand i/o threading (erl +A)

Count László de Almásy <>
Fri Nov 10 18:40:09 CET 2006


Greetings,

I'm attempting to understand the i/o threading option to erl better
(i.e, erl +A):

+A size
    Sets the number of threads in async thread pool, valid range is
    0-1024. Default is 0.

Is there a metric one can use to gage how many threads I should start
for an application such as the Yaws webserver?  My system has 1GB of
main memory.  Should I just use the maximum (1024)?  I'm assuming
there is a point of diminishing returns somewhere, but I don't know
where that would be.  Right now I'd just be picking a random number
and I'd rather not do that.

Advice appreciated.

-- 
Cheers, László




More information about the erlang-questions mailing list