[Zope] Threading, dtml and performance?!
Paul Zwarts
paz@oratrix.com
Wed, 24 Oct 2001 10:41:12 +0200
Um... I can do this on a Dual P2-400 with 256mb ram, loading the Redhat
flavour of the latest linux kernel....
But, I don't quite understand the test. At least, what is the dtml
doing? I tried it out and I get nothing on the page, except my
header/footer stuff. The time reslut from the debug console reveals .83
seconds, but that is because my interface is quite heavy on SQL and CST.
Should I modify the code to something else? I suppose the first in-tag
is to just create a loop, so can I use _.range() instead?
If the ZopeFind(this(), '', '', '',....) means its looking for '1' as an
object, it doesn't work either even if I add a method called '1'. With
some text in between, I see that the first <dtml-in> works only and the
ZopeFind returns bunk.
I'm interested in this test, but I;m not techie enough to understand the
control here.
<dtml-call logic>
<dtml-var head>
<dtml-var standard_html_header>
start<br>
<dtml-in
"[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1]">
a<br>
<dtml-in "ZopeFind(this(), '', '', '', '', '' , '', '', '', 1)"
sort=bobobase_modification_time reverse>
b<br>
<dtml-var bobobase_modification_time>, <dtml-var id><br> </dtml-in>
</dtml-in>
end<br>
<dtml-var standard_html_footer>
Thanks for help,
Paul Zwarts
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of
Chris McDonough
Sent: Wednesday, October 24, 2001 12:48 AM
To: Tony McDonald; Oliver Erlewein; zope@zope.org
Subject: Re: [Zope] Threading, dtml and performance?!
Can somebody with a multiprocessor Linux machine try this out?
----- Original Message -----
From: "Tony McDonald" <tony.mcdonald@ncl.ac.uk>
To: "Chris McDonough" <chrism@zope.com>; "Oliver Erlewein"
<oerlewein@gmx.de>; <zope@zope.org>
Sent: Tuesday, October 23, 2001 6:12 PM
Subject: Re: [Zope] Threading, dtml and performance?!
> On 23/10/01 4:21 pm, "Chris McDonough" <chrism@zope.com> wrote:
>
> > This "hogging" behavior doesn't show up on a Linux 2.4.2 kernel,
Zope
> > 2.3.3 system we have here. I can browse the site normally while
the
> > DTML method runs.
> >
> > I don't have a Solaris machine to test this on; can anyone else
> > confirm the behavior on Solaris?
> >
>
> Solaris 8, Zope 2.4.1 compiled from source.
> Save the DTML as a method, 'view' it. Try and do something else on
the same
> site .... No-go.
>
> Damn.
>
> 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
>
>
> _______________________________________________
> 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 )
>
_______________________________________________
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 )