[Twisted-Python] Re: twisted application server

Tristan Seligmann mithrandi at mithrandi.net
Fri Mar 7 07:55:20 EST 2008


* Andreas Kostyrka <andreas at kostyrka.org> [2008-03-07 13:44:02 +0100]:

> Actually, on a modern system like Linux, if you fork, the process share
> memory as long it's not written too (Copy-on-Write).

Except that it's basically impossible to read a Python object without
writing to it, as the reference count changes.

> This means, that if you'd fork off your process pool from your
> application, forking should have minimal impact. Even writing it as a
> standalone process means memory usage of one Python interpreter, plus
> minimal usage in the forked processes.

This would only be true for a Python implementation that does not use
reference counting.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20080307/c1fc56b3/attachment.pgp 


More information about the Twisted-Python mailing list