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. Thanks, David
--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. -aj
Andreas Jung wrote at 2006-1-10 06:59 +0100:
... A single Python process also a multi-threaded Python application can never run on multiple CPUs.
This means as long as it continues executing Python code. However, Python often calls non Python code (e.g. "C" or "C++" implemented extensions) and it may release the "GIL" (Global Interpreter Lock) to allow multiple CPUs to be exploited. It happens not to frequently that such C extensions are CPU bound. Nevertheless, a dual core CPU might be an advantage, if your Zope needs additional services such as Apache, Squid or (especially) databases. The second CPU can then be used to run these services while Zope occupies a single one. And, as other already suggested, you can have 2 Zopes and a ZEO on your dual core host. -- Dieter
participants (3)
-
Andreas Jung -
David H -
Dieter Maurer