Re: [Zope] CPU architecture and Zope
On 1/9/06, Andreas Jung <lists@andreas-jung.com> wrote:
--On 9. Januar 2006 21:38:15 -0800 David H <bluepaul@earthlink.net> wrote:
Hi list,
Im just wondering what the wisdom is about Zope performance and various CPU types. I'm running Zope on Linux (Ubuntu). I notice that Dell is selling a "dual-core" Pentium unit. But I have no idea if something like "dual core" is advantegous to Zope, python execution or one's favorite RDMS.
A single Python process also a multi-threaded Python application can never run on multiple CPUs. Multiple CPUs, cores etc. together with Python make only sense when you run multiple Python processes e.g. multiple ZEO clients or ZEO client + ZEO server. For standalone Zope instance dual-core CPU give you nothing.
I'm probably stating the obvious here, but a ZEO server + at least one ZEO client is generally advisable at the very least for debugging purposes, in which case dual CPUs/cores can be somewhat helpful (though the zeo server is not terribly processor intesive in my experience). Even with a non-ZEO setup, dual cores could obviously be helpful if you were running other cpu intensive processes like an RDBMS on the same system. Alec
Just reading along... At the OS view, would dual cores balance the Linux overhead on one CPU and python/zope on the other, based on resources required. In other words, would the second core allow python to go faster, not having to deal with the various OS and distro tools (apache, squid, pound, mailman, etc.) overhead items. Does the mechanism governing multiple cores separate/allocate processes by resources needed? ... and does a python/zope process get evaluated as a "heavyweight" process, maybe getting allocated the lion's share of a single core. It seems that the whole world of multiple cores CPUs will be upon us very quickly now. The ZEO Server on one, ZEO Client on the other is a good answer. Just wondering if there are any other advantages of python being the way it is, in the mix. Great discussion for me, thanks, -Jon Alec Mitchell wrote:
On 1/9/06, Andreas Jung <lists@andreas-jung.com> wrote:
--On 9. Januar 2006 21:38:15 -0800 David H <bluepaul@earthlink.net> wrote:
Hi list,
Im just wondering what the wisdom is about Zope performance and various CPU types. I'm running Zope on Linux (Ubuntu). I notice that Dell is selling a "dual-core" Pentium unit. But I have no idea if something like "dual core" is advantegous to Zope, python execution or one's favorite RDMS.
A single Python process also a multi-threaded Python application can never run on multiple CPUs. Multiple CPUs, cores etc. together with Python make only sense when you run multiple Python processes e.g. multiple ZEO clients or ZEO client + ZEO server. For standalone Zope instance dual-core CPU give you nothing.
I'm probably stating the obvious here, but a ZEO server + at least one ZEO client is generally advisable at the very least for debugging purposes, in which case dual CPUs/cores can be somewhat helpful (though the zeo server is not terribly processor intesive in my experience). Even with a non-ZEO setup, dual cores could obviously be helpful if you were running other cpu intensive processes like an RDBMS on the same system.
Alec _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Jonathan Cyr http://www.cyr.info http://www.weddingweblog.com cyrj@cyr.info
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonathan Cyr wrote:
Just reading along...
At the OS view, would dual cores balance the Linux overhead on one CPU and python/zope on the other, based on resources required. In other words, would the second core allow python to go faster, not having to deal with the various OS and distro tools (apache, squid, pound, mailman, etc.) overhead items. Does the mechanism governing multiple cores separate/allocate processes by resources needed? ... and does a python/zope process get evaluated as a "heavyweight" process, maybe getting allocated the lion's share of a single core.
It seems that the whole world of multiple cores CPUs will be upon us very quickly now. The ZEO Server on one, ZEO Client on the other is a good answer. Just wondering if there are any other advantages of python being the way it is, in the mix.
Great discussion for me, thanks,
The general thumb rule is "one appserver process per CPU"; running the storage server on the same machine should't increase the CPU load significantly (the storage server is I/O bound, not CPU bound). Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDxZHt+gerLs4ltQ4RAgSrAKDAKMF/nDmWHilYB+cqtX/g12eHFQCgyDUP cDs45Zp3G2m1vNDIZfTN2V4= =qiau -----END PGP SIGNATURE-----
participants (3)
-
Alec Mitchell -
Jonathan Cyr -
Tres Seaver