Hello! I have tested ZOPE under heavy load (about 100-200 users simultaneously) and noticed that 2 zope running on 1 PC works (processing requests) faster than 1. Zope runs under Windows XP with -t 10 options. Test were made with RationalRobot. What's wrong with my ZOPE installation?? Is there any performance tune tricks?? Thanks Andrew
Андрей Пучин wrote:
I have tested ZOPE under heavy load (about 100-200 users simultaneously) and noticed that 2 zope running on 1 PC works (processing requests) faster than 1.
Hmm then it is probably Python global intepreter lock that causes the slowdown. I don't know of anything you can do to make a single version run faster though. regards Max M -- "Sorry I would Really Like To Help More On This Project, But Am To Busy Doing Paid Work On A Tight Deadline" Max M
On Monday 17 Jun 2002 11:47 am, Андрей Пучин wrote:
Hello!
I have tested ZOPE under heavy load (about 100-200 users simultaneously) and noticed that 2 zope running on 1 PC works (processing requests) faster than 1.
In the case of 2 zopes, was this running ZEO, or with two independant storages? Was your benchmark IO-bound (referencing many different pages from a huge datase) or processor-bound (so that all your pages would fit in ZODB cache, and the storage is not touched)
Zope runs under Windows XP with -t 10 options.
So that means you have either 10 or 20 worker threads. right? ZODB has a hard-coded limit of 7 database connections per process, so in fact only 7 or 14 can run concurrently. -t 7 should give you the same performance figures.
What's wrong with my ZOPE installation?
What makes you think there is something wrong?
Is there any performance tune tricks??
Firstly, upgrade to 2.6alpha1. It has several performance improvements. 10 or 20 worker threads is probably too many unless your pages are IO-bound. Zope uses one dedicated thread to trickle requests back to clients so, unlike Apache, you dont need to scale the number of threads with the number of clients. Each worker thread has its own copy of the ZODB cache. You may get better performance with few threads (say, "-t 4", perhaps even "-t 2"), but giving each thread a bigger ZODB cache (which you can tweak in Control_Panel)
On Mon, 17 Jun 2002 21:30, Toby Dickenson wrote:
On Monday 17 Jun 2002 11:47 am, Андрей Пучин wrote:
Zope runs under Windows XP with -t 10 options.
So that means you have either 10 or 20 worker threads. right?
ZODB has a hard-coded limit of 7 database connections per process, so in fact only 7 or 14 can run concurrently.
Per ZEO client or ZEO Server? I did not know that limitation existed... Richard
ZODB has a hard-coded limit of 7 database connections per process, so in fact only 7 or 14 can run concurrently.
Per ZEO client or ZEO Server?
Per ZEO client. (if you think you need to exceed this limit, you are probably doing something wrong)
On Mon, 17 Jun 2002 22:05, Toby Dickenson wrote:
ZODB has a hard-coded limit of 7 database connections per process, so in fact only 7 or 14 can run concurrently.
Per ZEO client or ZEO Server?
Per ZEO client.
(if you think you need to exceed this limit, you are probably doing something wrong)
What, having a popular site? :) Richard
Try increasing the sys.setcheckinterval() value in z2.py (I think there's a flag you can pass to z2 but I forget which one it is). The value should probably be your pystone rating/50, e.g. 5000 pystones = sys.setcheckinterval(100). The default in z2 right now is 120, I think, which is too small for today's fastest CPUs. An Athlon XP 2000+ (25000 pystones) should have a sys.setcheckinterval(500). Doing this will allow each python thread more time to dispatch before it does a lock shuffle. On Monday, June 17, 2002, at 06:47 AM, Андрей Пучин wrote:
Hello!
I have tested ZOPE under heavy load (about 100-200 users simultaneously) and noticed that 2 zope running on 1 PC works (processing requests) faster than 1.
Zope runs under Windows XP with -t 10 options. Test were made with RationalRobot.
What's wrong with my ZOPE installation?? Is there any performance tune tricks??
Thanks Andrew
=?koi8-r?B?4c7E0sXKIPDV3snO?= writes:
I have tested ZOPE under heavy load (about 100-200 users simultaneously) and noticed that 2 zope running on 1 PC works (processing requests) faster than 1.
Zope runs under Windows XP with -t 10 options. Test were made with RationalRobot. Is your Zope running on a multi-processor maschine?
Then it would be normal. Python's threading system is usually unable to make full use of multiple processors. Dieter
participants (6)
-
Dieter Maurer -
Matthew T. Kromer -
Max M -
Richard Jones -
Toby Dickenson -
Андрей Пучин