[Zope] Threading, dtml and performance?!

Tony McDonald tony.mcdonald@ncl.ac.uk
Wed, 24 Oct 2001 14:07:03 +0100


On 24/10/01 1:23 pm, "Chris McDonough" <chrism@digicool.com> wrote:

> The output of the DTML method isn't important, but if you ran it and it
> took a while (> 5 seconds or so), but then at the same time it was
> running, you visited a page in the mgmt interface and that operation
> took .83 seconds, that's the number that's important.. that lets us know
> that MP Linux systems aren't "freezing" like Solaris systems.  However,
> if you ran this method, and you couldn't do anything on the system until
> it finished, there would be a problem.
> 

Ok more data points.

I downloaded the Solaris binary distribution from the Zope site, extracted
the python from that and moved it to /usr/local/bin/python-thread

I then started up my test site so;
exec /usr/local/bin/python-thread  $WHERE_ZOPE_LIVES/z2.py -X -w54321   "$@"

(extraneous stuff removed).

I started off Olivers script and then tried to view another page on this
site - no go :(

For completeness I kicked off a Zope2.4.0 instance on my MacOS-X TiPb and
started off Olivers script again. I could easily select other pages on that
site.

I'm looking through various archives on Solaris, python and threading, but
I'm no guru so this is bloody hard :(

I added 
LD_FLAGS = -lpthread
To the python2.1 Makefile and moved the resultant python to
/usr/local/bin/python-thread

Same result, ie site is locked up whilst the long running dtml method was
running.

I'm baffled and *really* hoping I can sort this out, as once it's sorted, I
guess I can expect to see something like 7 times the performance I have been
getting on our sites (7 threads by default - I think).

Going quietly doo-lally here....
Tone.
-- 
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope