Re:I like Unicorn (Rack HTTP server) because it's Unix
by blasdel on Tuesday October 06, 2009 @10:42PM
(#865933)
Processes don't share mutable data, not without explicitly using IPC.
In nearly all Unixes, both processes share their entire address spaces after the fork(), just immutably -- pages are only copied when they're written to by one of the processes, otherwise they are shared till exit. Copy-on-write is what makes fork() tractable performance-wise.
Re:I like Unicorn (Rack HTTP server) because it's Unix
by easp on Wednesday October 07, 2009 @02:39AM
(#866224)
Copy-on-write is also why people overestimate Apache memory consumption so dramatically and then get into the hassle of running php apps under fcgi to save a trivial amount of memory.
In nearly all Unixes, both processes share their entire address spaces after the fork(), just immutably -- pages are only copied when they're written to by one of the processes, otherwise they are shared till exit. Copy-on-write is what makes fork() tractable performance-wise.