CPU Affinity, was RE: [Zope] Linux vs. UNIX vs. BSD
This sounds better (and I think this is more advanced that the stuff RedHat is doing, using Ingo Molnar's work in the O2 scheduler), because it is (and should be) in this case simply a sysadmin task to make sure your Zope instances (and all the processes tied to a particular instance) is bound to the same CPU. This would also be nice in the case of being able to use a single SMP box to run a ZEO cluster within using UNIX sockets for communication, and binding your ZEO clients (and the ZSS) to respective processors. Sean -----Original Message----- From: Oliver Bleutgen [mailto:myzope@gmx.net] Sent: Tuesday, August 20, 2002 3:01 PM To: sean.upton@uniontrib.com Cc: zope@zope.org Subject: Re: [Zope] Linux vs. UNIX vs. BSD sean.upton@uniontrib.com wrote:
Though we haven't used it yet, as I understand it, CPU affinity is important to Python performance on SMP machines. I expect that we will write or find a simple user-space utility utilizing the new system calls to bind a group of processes to a single CPU. I think, in theory, this will allow us to successfully run two Zope instances on an inexpensive 2CPU machine, each instance bound to a respective CPU.
Heh, since I was looking at the page today, if you're talking about Robert Loves work, you can find it here: http://www.kernel.org/pub/linux/kernel/people/rml/cpu-affinity/ Very nice, since they have a proc-interface, so all you need is echo. I haven't tested it, but it sounds nice. cheers, oliver
Thats what Solaris is for ;-) Processor affinity, processor sets, fair share scheduler etc.... Rgds Tim On Wed, 2002-08-21 at 07:51, sean.upton@uniontrib.com wrote:
This sounds better (and I think this is more advanced that the stuff RedHat is doing, using Ingo Molnar's work in the O2 scheduler), because it is (and should be) in this case simply a sysadmin task to make sure your Zope instances (and all the processes tied to a particular instance) is bound to the same CPU.
This would also be nice in the case of being able to use a single SMP box to run a ZEO cluster within using UNIX sockets for communication, and binding your ZEO clients (and the ZSS) to respective processors.
Sean
-----Original Message----- From: Oliver Bleutgen [mailto:myzope@gmx.net] Sent: Tuesday, August 20, 2002 3:01 PM To: sean.upton@uniontrib.com Cc: zope@zope.org Subject: Re: [Zope] Linux vs. UNIX vs. BSD
sean.upton@uniontrib.com wrote:
Though we haven't used it yet, as I understand it, CPU affinity is important to Python performance on SMP machines. I expect that we will write or find a simple user-space utility utilizing the new system calls to bind a group of processes to a single CPU. I think, in theory, this will allow us to successfully run two Zope instances on an inexpensive 2CPU machine, each instance bound to a respective CPU.
Heh, since I was looking at the page today, if you're talking about Robert Loves
work, you can find it here: http://www.kernel.org/pub/linux/kernel/people/rml/cpu-affinity/
Very nice, since they have a proc-interface, so all you need is echo.
I haven't tested it, but it sounds nice.
cheers, oliver
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Tim Hoffman wrote:
Thats what Solaris is for ;-) Processor affinity, processor sets, fair share scheduler etc....
Rgds
Tim
The downside of Solaris is that Python executes more or less at the same speed on all CPUs, primarily determined by clock speed. Thus, a 2 Ghz Pentium IV or Athlon blows away expensive SPARC CPUs for running Zope. -- Matt Kromer Zope Corporation http://www.zope.com/
participants (3)
-
Matthew T. Kromer -
sean.upton@uniontrib.com -
Tim Hoffman