2 Zope instances on a 2 CPU linux server
Hi, I would like to know what if using taskset (CPU affinity utility on linux) to bind each Zope instance to one single CPU can improve overall performance of both instances in any way ? As far a I know, python can not fully take advantage of 2 CPU cause python threads are not OS threads. Thanks. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
On 28 Jul 2005, at 14:11, Pascal Peregrina wrote:
Hi,
I would like to know what if using taskset (CPU affinity utility on linux) to bind each Zope instance to one single CPU can improve overall performance of both instances in any way ?
As far a I know, python can not fully take advantage of 2 CPU cause python threads are not OS threads.
The cost you save is the cost of processes and thread switching between CPUs, which may happen depending on the OS and kernel versions. jens
--On 28. Juli 2005 14:11:18 +0100 Pascal Peregrina <Pperegrina@Lastminute.com> wrote:
Hi,
I would like to know what if using taskset (CPU affinity utility on linux) to bind each Zope instance to one single CPU can improve overall performance of both instances in any way ?
A single Python CPU can not be run on multiple CPUs. It will use only one. Consider using ZEO on multiple CPU machine with one storage process and multiple ZEO clients. -aj
Run as many Zope instances as CPUs you have if you wish to take advantage of this in Zope: i.e. 2 CPUs == 2 Zope Instances. You will basically double the performance of the server with ea. CPU/Instance. At some point there might be a diminishing return, but I doubt any of us have that kind of hardware :-) Andrew -- Zope Managed Hosting Software Engineer Zope Corporation (540) 361-1700 _____ From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Pascal Peregrina Sent: Thursday, July 28, 2005 9:11 AM To: 'zope@zope.org' Subject: [Zope] 2 Zope instances on a 2 CPU linux server Hi, I would like to know what if using taskset (CPU affinity utility on linux) to bind each Zope instance to one single CPU can improve overall performance of both instances in any way ? As far a I know, python can not fully take advantage of 2 CPU cause python threads are not OS threads. Thanks. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
participants (4)
-
Andreas Jung -
Andrew Sawyers -
Jens Vagelpohl -
Pascal Peregrina