[erlang-questions] Re: How to make the Erlang VM predictible when spawning processes?

Ovidiu Deac <>
Fri Jun 4 15:22:40 CEST 2010


If I only have transient processes I can avoid the garbage collection
by setting the initial heap to a value which is big enough for the
process. If I reuse the processes I can't make this optimization.

This is why I was thinking that reusing processes is not good.

On Fri, Jun 4, 2010 at 12:31 PM, Jesper Louis Andersen
<> wrote:
> On Fri, Jun 4, 2010 at 10:43 AM, Ovidiu Deac <> wrote:
>> I was hoping that the latency introduced by the OS would be lower and
>> we would have enough time to satisfy the 10ms requirement. If you are
>> right then I guess 10ms response time is not realistic on a standard
>> system.
>
> Shooting partially in the dark here. But what if you had a small set
> of already spawned processes able to do the work when required? I
> would guess you can eliminate some of the spawn-time with that
> solution. It is not much different from minimizing the time spent
> under a lock by preallocation.
>
> --
> J.
>


More information about the erlang-questions mailing list