[erlang-questions] Erlang in the mist

Jayson Vantuyl kagato@REDACTED
Fri Dec 11 20:58:14 CET 2009


> Can Linux optimize two independent invocation of one process by "copy on write" tricks or you need those processes
> being father and children by means of fork call?
As I recall, when the ELF loader in Linux loads a binary, it does so by mmap'ing it into the process address space (effectively copy-on-write).  Due to the way that Linux's VM does mmap, the same pages should be loaded into every binary, and they should be copy-on-write as well.  So, yes, it should be optimized; and, no, you shouldn't be required to fork them from the same parent.


-- 
Jayson Vantuyl
kagato@REDACTED







More information about the erlang-questions mailing list