[Zope] Global Interpreter Lock and four processors...

Michel Pelletier michel@digicool.com
Tue, 23 Nov 1999 10:26:05 -0500


> -----Original Message-----
> From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk]
> Sent: Tuesday, November 23, 1999 4:37 AM
> To: Zope List
> Subject: [Zope] Global Interpreter Lock and four processors...
> 
> 
> Hi all,
> We have a four processor Sun box (each processor scores about 2400 
> pystones, whereas a 500 MHz P3 gets about 5400 pystones).
> 
> I have three zope installations running, one of which is hosting 
> three subsites. If I create four *binary* installations of Zope 
> (complete with the thread-safe MySQL adaptor and all the other python 
> libraries necessary to run a Zope site), will I run into the global 
> interpreter lock?

You *allways* run into the interpreter lock. (*Nobody* expects the
spanish inquisition!)
 
> What I'm saying is if I *don't* use /usr/local/bin/python for my Zope 
> installations, but instead rely on ZOPE_HOME/bin/python, will I be 
> able to spread my Zope sites out over the four processors, or is 
> there a nasty sting in the tail in doing this?

Depends on the OS.  some OSes will tend to prefer one process to one
processor, and associate a cost with moving processes between
processors, but threading may throw a wrench in that whole plan.
Perhaps there is a a Solaris command to bind a process to one specific
processor?

-Michel