[Zope] Zope and a multiprocessor machine

sean.upton@uniontrib.com sean.upton@uniontrib.com
Wed, 19 Feb 2003 13:04:50 -0800


You should be running 2 Zopes - one for each CPU since Python doesn't really
take advantage of SMP.  

I can't comment on the threads issue (I assume that you are running the ZSS
on another box, which is similar to my setup, so I'm interested in finding
out the answer to this myself), but I can suggest that if you do run 2 zopes
on the same box, look into the 'schedutils' package for your Linux distro
and use the taskset command, which is a utility that uses system calls to
set CPU affinity of a process, will allow you to bind each Zope instance
(via process to CP to a given CPU to avoid the Python GIL performance
penalty.  I haven't done this yet, so I'm not sure if you need to have your
startup scripts run taskset on all Zope threads?

Sean

-----Original Message-----
From: Chris Muldrow [mailto:cmuldrow@fredericksburg.com]
Sent: Wednesday, February 19, 2003 12:42 PM
To: Zope
Subject: [Zope] Zope and a multiprocessor machine


Say I've got a multiprocessor machine on Linux. I've got a ZEO running. Does
it make more sense to run one Zope client on that box with 8 threads or two
clients with 4 threads?

Chris Muldrow


_______________________________________________
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 )