throttling the cpu/memory available to the VM

View: New views
2 Messages — Rating Filter:   Alert me  

throttling the cpu/memory available to the VM

by Jacob Vorreuter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible to specify a max memory usage and cpu usage for the VM
when the runtime system starts?  I would like to be able to run
multiple VMs on the same system and ensure equal distribution of
resources.

________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org


Re: throttling the cpu/memory available to the VM

by Dave Smith-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

From what I know of the VM, Erlang does not provide either of these.
Providing max memory usage is feasible, but I suspect would be
somewhat difficult with the way the GC is structured. I've worked on a
VM (Java) that tried to do strict CPU allocation -- that's a very hard
problem to get right without introducing a lot of accounting overhead.

Really, the operating system is the best place to enforce allocation
of CPU, not the VM (or individual applications).

Hope that helps,

D.

On Thu, Oct 29, 2009 at 11:29 PM, Jacob Vorreuter
<jacob.vorreuter@...> wrote:

> Is it possible to specify a max memory usage and cpu usage for the VM
> when the runtime system starts?  I would like to be able to run
> multiple VMs on the same system and ensure equal distribution of
> resources.
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>

________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org