Re: Give it a rest + answers. (Re: [Zope] Re: Zope + Apache on Quad Debian machine)
On 3/21/06, Dario Lopez-Kästen [EMAIL PROTECTED] wrote: Tino Wildenhain said the following on 2006-03-21 14:51: Otoh, I have yet to see the figures showing the CPU afinity buys you anything in reality. We know the GIL, thats for sure but I never saw a measureable difference binding a process to a CPU (which is also highly depending on the OS scheduler) for us, it makes all the difference between zope sucks, why do we bother with this non-sense, non-standard, butt-slow appserver, and use Java or PHP instead and nice, zope based solutions are really nice, not only feature wise, but also speedy. And they are clusterable too, neat! /dario Dario, Do you have any kind of comparison numbers of using CPU affinity vs not for your particular case? Also, are you using ZEO or not? It's not that I don't believe you when you say it matters a lot for you. I do believe you. Like Tino, I'm just generally interested in how much it matters in measurable terms. I can imagine there are a number of factors determining how much it matters, like Zope app/workload as well as the underlying hardware architecture (how big of a penalty is it to synchronize cache pages between CPUs) and the OS CPU scheduler as Tino mentioned. Jeff D p.s. I agree with the rest of your sentiments about newbie bashing. Unfortunately, it seems to be a popular past time among some of the l33ts on a bunch of the lists I monitor these days. ___ 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 )
Re: [Zope] Re: Zope + Apache on Quad Debian machine
On 3/15/06, Tres Seaver [EMAIL PROTECTED] wrote: That question is not Zope specific -- you would need to modify the start scripts for your appservers to make whatever kernel / libc-specific calls are needed (on Solaris, it would be invoking the 'pbind' command). In the worst case, you would end up writing a wrapper binary which set the affinity mask and then exec'ed Python. I don't know what facilities the kernel in your Linux provides for doing that (and haven't tried on any recent kernels of my own, either). On 2.6 kernels (and possibly some patched/backported 2.4 kernels) with recent glibc versions, the API call to use would be sched_setaffinity() ( see sched.h ) . I'm not aware of any existing userland command on Linux equivalent to pbind of Solaris or mpsched or runon of other UNIX systems. It would be a pretty easy little program to write though. You should be able to set the processor affinity on your running Zope instance too, assuming appropriate privledges. - Jeff D ___ 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 )
Re: [Zope] SSL over Multiple Zope/Plone sites?
On 1/24/06, michael nt milne [EMAIL PROTECTED] wrote: Ok, thanks. The annoying thing is that I am renting a virtual dedicated server which allows multiple domain names obviously but not multiple IP addresses. Or it probably costs more for that. Do you reckon SSL will ever be available for virtual single IP based hosts? I believe you can use SSL and name based virtual hosts if you use unique ports for each vhost. I've never done it myself, but I remember reading that somewhere in Apache documentation that it was possible. Jeff D ___ 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 )
Re: [Zope] CPU architecture and Zope
On 1/10/06, Andreas Jung [EMAIL PROTECTED] wrote: A single Python process also a multi-threaded Python application can never run on multiple CPUs. I believe that is an overly broad statement, not necessarily true in all cases. It really depends on the operating system's thread library that Python implements it's thread module on top of (as documented at http://docs.python.org/lib/module-thread.html) and how that system threading package schedules threads on the available CPUs. The real answer is maybe; it depends. Jeff D ___ 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 )