[erlang-questions] Process migration/ Process state extraction/ injection
Tue Jul 31 20:21:40 CEST 2012
I am thinking that a weaker form of such mobility might suffice for my
project, but I am not sure. In this weaker form, it is enough to transfer
the code and execution can restart again. I need this primary to implement
the code-on-demand and remote-evaluation architectures. I do not believe
that this is so complex in Erlang, in fact if I remember correctly some
functionality already exists for such.
On Tue, Jul 31, 2012 at 8:15 PM, Gleb Peregud <> wrote:
> On Tue, Jul 31, 2012 at 8:11 PM, Tyron Zerafa <>
> > Hey,
> > My primary intention is to implement strong mobility of processes.
> > say that process A is running on Node 1, I want to be able to suspend
> > process, transfer it to Node 2 and resume such process from where it
> > I believe that in order to achieve such I need to somehow preserve the
> > trace, memory and other info.
> This task is non-trivial and will require a lot of work with ERTS and
> whole Erlang VM. Things you have to handle are:
> - stack
> - heap
> - binary refs
> - monitors
> - links
> - ets ownership
> - port ownership
> - messages sent to old process pid?
> - replacing old pid with new in other processes?
> - replacing old process with "replay" process?
> And I'm sure that those are not all details which will have to be handled.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions