[Zope] Zope zserver-threads minimum is 5?

2014-11-10 Thread Pablo Caro Revuelta
Hi all,

My zope clients (Zope2-2.12.11) allways start with 5 theads although
zserver-threads is 2 in my zope.conf file.

I am using ps -eLf for theads counter.

If for zserver-threads I use the values 1, 2 or 3 I get 5 theads.
A higher value give me 2 threads more. I mean, for 4 I get 6, for 15, 17
threads, etc.

It's correct? There are allways 5 threads minumun and 2 extra?

It's a plone site. I am using zeo with separated catalog. I have 16
instances in a 8 cores machines and I think the GIL is making a poor
performance.


Thanks
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zserver-threads

2006-02-01 Thread Dieter Maurer
Jake wrote at 2006-1-31 15:53 -0500:
Am I gleaming from that that you are proposing a less-is-more approach to
threads?

That's something proposed several times in the list.

In our installation, we used the default (4 threads) for a long
time -- until we met overload situations (all 4 threads in
use over long periods of time) when we switched to 6 threads.

However, in our situation not only Zope handles the application.
Beside that there are backend resources such as various databases
that can work concurrently with Zope. Therefore, our
application is not CPU bound (at least not on the host, Zope runs on)
and increasing the number of threads can increase throughput.

 ...
This seems to eat up about half of the RAM on the server.

Would one thread but double the cache size do better?

You have read my message to the end (and Florent's comment)?

  If you have a single thread, then a single long running
  request would exclude all other (maybe very short)
  requests until it finisches.

  I am convinced that you want some degree of concurrency
  to favour short running requests. 4 threads is not too a
  default.

-- 
Dieter
___
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] zserver-threads

2006-01-31 Thread Jake
I just spent a few minutes googling it and failed, but I thought I read on
the Zope wiki that for higher trafic sites, it was better to have bigger
caches (50,000+) and fewer threads (2).

Jake
___
http://www.ZopeZone.com


On Mon, January 30, 2006 5:47 pm, Jens Vagelpohl said:

 On 30 Jan 2006, at 22:43, Einar Næss Jensen wrote:

 how many do I need, and how will I know?

 You do not need to worry about it unless you have a really unusual
 setup. The default is fine for 99.9% of all situations.

 jens

 ___
 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 )



___
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] zserver-threads

2006-01-31 Thread Jake
http://plone.org/documentation/how-to/threads-vs-cache-size

There it was.

Jake
___
http://www.ZopeZone.com


On Tue, January 31, 2006 9:59 am, Jake said:
 I just spent a few minutes googling it and failed, but I thought I read on
 the Zope wiki that for higher trafic sites, it was better to have bigger
 caches (50,000+) and fewer threads (2).

 Jake
 ___
 http://www.ZopeZone.com


 On Mon, January 30, 2006 5:47 pm, Jens Vagelpohl said:

 On 30 Jan 2006, at 22:43, Einar Næss Jensen wrote:

 how many do I need, and how will I know?

 You do not need to worry about it unless you have a really unusual
 setup. The default is fine for 99.9% of all situations.

 jens

 ___
 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 )



 ___
 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 )



___
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] zserver-threads

2006-01-31 Thread Jens Vagelpohl


On 31 Jan 2006, at 14:59, Jake wrote:

I just spent a few minutes googling it and failed, but I thought I  
read on
the Zope wiki that for higher trafic sites, it was better to have  
bigger

caches (50,000+) and fewer threads (2).


The term high traffic site doesn't mean a thing when it comes to  
threads or the cache (or in general). It's way too general.  
Determinations about cache sizes or thread numbers can only be made  
with specific requirements, (estimated) traffic data, hardware  
specifications and knowledge about the Zope application in hand, period.


Less threads and bigger caches only make sense when you are under  
memory pressure and (hopefully) your pages render fast enough so that  
less threads can still satisfy the rendering load.


jens

___
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] zserver-threads

2006-01-31 Thread Jens Vagelpohl


On 31 Jan 2006, at 15:01, Jake wrote:


http://plone.org/documentation/how-to/threads-vs-cache-size


That article contains little information to back up the conclusions,  
and some of it is patently wrong. Another case of hearsay and half- 
thruths being propagated by well-meaning but uninformed parties.


jens

___
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] zserver-threads

2006-01-31 Thread Andreas Jung



--On 31. Januar 2006 12:32:35 -0500 Jake [EMAIL PROTECTED] wrote:


It would be nice if someone post some guidelines for threads and cache
size, like a table.

RAM / Hits / Threads / Cache Size
2 GB / 20,000,000 / 3 / 50,000
5 GB / 20,000,000 / 5 / 100,000


Such a table is pretty much worthless. A ZEO cache of 50.000 objects tells 
you nothing about the RAM to be used. The cache could hold 50.000 small 
objects or 50.000 very large objects eating all your RAM. The relation 
between #threads and hits also depends very much on your application.
To make it short: dealing with larger installation always requires some 
iterations of oberserving your system and tuning it.


-aj


pgpwUTXp3lKD6.pgp
Description: PGP signature
___
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] zserver-threads

2006-01-31 Thread Jake
It would be nice if someone post some guidelines for threads and cache
size, like a table.

RAM / Hits / Threads / Cache Size
2 GB / 20,000,000 / 3 / 50,000
5 GB / 20,000,000 / 5 / 100,000

Jake
___
http://www.ZopeZone.com


On Tue, January 31, 2006 10:05 am, Jens Vagelpohl said:

 On 31 Jan 2006, at 14:59, Jake wrote:

 I just spent a few minutes googling it and failed, but I thought I
 read on
 the Zope wiki that for higher trafic sites, it was better to have
 bigger
 caches (50,000+) and fewer threads (2).

 The term high traffic site doesn't mean a thing when it comes to
 threads or the cache (or in general). It's way too general.
 Determinations about cache sizes or thread numbers can only be made
 with specific requirements, (estimated) traffic data, hardware
 specifications and knowledge about the Zope application in hand, period.

 Less threads and bigger caches only make sense when you are under
 memory pressure and (hopefully) your pages render fast enough so that
 less threads can still satisfy the rendering load.

 jens

 ___
 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 )



___
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] zserver-threads

2006-01-31 Thread Dieter Maurer
Jens Vagelpohl wrote at 2006-1-31 15:07 +:
On 31 Jan 2006, at 15:01, Jake wrote:

 http://plone.org/documentation/how-to/threads-vs-cache-size

That article contains little information to back up the conclusions,  
and some of it is patently wrong. Another case of hearsay and half- 
thruths being propagated by well-meaning but uninformed parties.

There is a convincing example (I think from Matt Kromer) what
happens to mean response time when the number of threads
is increased from 1 to 2:

  Assume you have 2 units of work. If you have a single
  thread, 1 unit is done, then the second. The
  mean response time is (1 + 2) / 2 = 1.5.

  Now assume you have two threads (but a single processor).
  Both threads work (quasi) parallel but have only half of the
  processor power. Both will take 2 time units to perform
  their unit of work. The mean response time is (2 + 2) / 2 = 2.

You get the same ratios whenever you double the number of threads
(but keep the number of processors and all your work is CPU bound).


Things become more difficult when you have a mix of very small
requests and very long requests. You then may want a higher
level of concurrency to not let the small requests being
blocked by the long ones.


-- 
Dieter
___
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] zserver-threads

2006-01-31 Thread Jake
Well, I have been using Zope for over 6 years and I still don't think I
have mastered what is truly best other than get a good server, with a lot
of RAM and bump up your threads * cache to use up about 50% of it.

Jake
___
http://www.ZopeZone.com


On Tue, January 31, 2006 12:46 pm, Andreas Jung said:


 --On 31. Januar 2006 12:32:35 -0500 Jake [EMAIL PROTECTED] wrote:

 It would be nice if someone post some guidelines for threads and cache
 size, like a table.

 RAM / Hits / Threads / Cache Size
 2 GB / 20,000,000 / 3 / 50,000
 5 GB / 20,000,000 / 5 / 100,000

 Such a table is pretty much worthless. A ZEO cache of 50.000 objects tells
 you nothing about the RAM to be used. The cache could hold 50.000 small
 objects or 50.000 very large objects eating all your RAM. The relation
 between #threads and hits also depends very much on your application.
 To make it short: dealing with larger installation always requires some
 iterations of oberserving your system and tuning it.

 -aj



___
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] zserver-threads

2006-01-31 Thread Jake
Am I gleaming from that that you are proposing a less-is-more approach to
threads?

Here is what I have been using:
- Zope 2.7.8 (Plone 2.1.2)
- RH Linux
- AMD Athlon 64 3200+ 2.0 GHz
- 2GB DDR RAM
- 120,000 hits a day
- 392,036 objects in database
- 2 threads
- 100,000 object cache size

This seems to eat up about half of the RAM on the server.

Would one thread but double the cache size do better?

Jake
___
http://www.ZopeZone.com


On Tue, January 31, 2006 2:40 pm, Dieter Maurer said:
 Jens Vagelpohl wrote at 2006-1-31 15:07 +:
On 31 Jan 2006, at 15:01, Jake wrote:

 http://plone.org/documentation/how-to/threads-vs-cache-size

That article contains little information to back up the conclusions,
and some of it is patently wrong. Another case of hearsay and half-
thruths being propagated by well-meaning but uninformed parties.

 There is a convincing example (I think from Matt Kromer) what
 happens to mean response time when the number of threads
 is increased from 1 to 2:

   Assume you have 2 units of work. If you have a single
   thread, 1 unit is done, then the second. The
   mean response time is (1 + 2) / 2 = 1.5.

   Now assume you have two threads (but a single processor).
   Both threads work (quasi) parallel but have only half of the
   processor power. Both will take 2 time units to perform
   their unit of work. The mean response time is (2 + 2) / 2 = 2.

 You get the same ratios whenever you double the number of threads
 (but keep the number of processors and all your work is CPU bound).


 Things become more difficult when you have a mix of very small
 requests and very long requests. You then may want a higher
 level of concurrency to not let the small requests being
 blocked by the long ones.


 --
 Dieter
 ___
 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 )



___
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] zserver-threads

2006-01-31 Thread Floyd May
On 1/31/06, Jake [EMAIL PROTECTED] wrote:
Am I gleaming from that that you are proposing a less-is-more approach tothreads?Here is what I have been using:- Zope 2.7.8 (Plone 2.1.2)- RH Linux- AMD Athlon 64 3200+ 2.0 GHz- 2GB DDR RAM
- 120,000 hits a day- 392,036 objects in database- 2 threads- 100,000 object cache sizeThis seems to eat up about half of the RAM on the server.Would one thread but double the cache size do better?
Jake___http://www.ZopeZone.comOn Tue, January 31, 2006 2:40 pm, Dieter Maurer said: Jens Vagelpohl wrote at 2006-1-31 15:07 +:
On 31 Jan 2006, at 15:01, Jake wrote: http://plone.org/documentation/how-to/threads-vs-cache-size
That article contains little information to back up the conclusions,and some of it is patently wrong. Another case of hearsay and half-thruths being propagated by well-meaning but uninformed parties.
 There is a convincing example (I think from Matt Kromer) what happens to mean response time when the number of threads is increased from 1 to 2: Assume you have 2 units of work. If you have a single
 thread, 1 unit is done, then the second. The mean response time is (1 + 2) / 2 = 1.5. Now assume you have two threads (but a single processor). Both threads work (quasi) parallel but have only half of the
 processor power. Both will take 2 time units to perform their unit of work. The mean response time is (2 + 2) / 2 = 2. You get the same ratios whenever you double the number of threads
 (but keep the number of processors and all your work is CPU bound). Things become more difficult when you have a mix of very small requests and very long requests. You then may want a higher
 level of concurrency to not let the small requests being blocked by the long ones. -- Dieter ___ 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-announcehttp://mail.zope.org/mailman/listinfo/zope-dev
 )___Zope maillist-Zope@zope.orghttp://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 )I would recommend exploring ZEO and Squid if you're *this* worried about performance. There's only so much that one machine can do. If I understand the Zope framework, the idea is that read-to-write ratio for the ZODB is going to be much greater than one, meaning that there are going to be a lot more reads than writes. In this case, having some load balancing and ZEO client caching will make overall performance faster. However, if you're doing lots of writing to the ZODB, you'll probably need to explore ZEO even more in the area of mounting different ZODBs at different places in your ZEO clients' trees.
Like some of the other people said, you probably should just tune it as needed. It's also a Bad Thing to be running your servers at or near capacity; you should leave plenty of headspace for usage spikes. I've certainly run into situations where Zope stuff was processor-bound and slowing everything down, but the RAM wasn't even 25% full. In cases like this, more zserver threads (or more ZEO clients) helps even things out. YMMV.
-- Floyd MaySenior Systems AnalystCTLN - CareerTech Learning Network[EMAIL PROTECTED]
___
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 )


[Zope] zserver-threads

2006-01-30 Thread Einar Næss Jensen
how many do I need, and how will I know?

--
--
Einar Næss Jensen
http://einar.nidelven-it.no/einarblog
http://www.homemade.no
tlf: +47 90990249
___
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] zserver-threads

2006-01-30 Thread Jens Vagelpohl


On 30 Jan 2006, at 22:43, Einar Næss Jensen wrote:


how many do I need, and how will I know?


You do not need to worry about it unless you have a really unusual  
setup. The default is fine for 99.9% of all situations.


jens

___
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] ZServer threads and pool-size question

2006-01-05 Thread Pascal Peregrina
Thanks, I will try that ;)

-Message d'origine-
De : Dieter Maurer [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 4 janvier 2006 19:52
À : Pascal Peregrina
Cc : Jens Vagelpohl; zope list user
Objet : RE: [Zope] ZServer threads and pool-size question

Pascal Peregrina wrote at 2006-1-4 13:34 -:
I understand.

So what is the typical value to use for pool-size given a certain threads 
number: n+3 ?

It depends on how intensively you are using additional (application level)
threads:

  Each thread using persistent objects requires in general (at least) one
  ZODB connection.

As such threads are relatively rare, additional 3 connections
is not too bad for the general case.



-- 
Dieter


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

___
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] ZServer threads and pool-size question

2006-01-04 Thread Pascal Peregrina
Because I use ZEO, I got lots of often modified objects, and on Zope servers I 
got lots of memory so I can give it a try ;)

Pascal

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jens Vagelpohl
Envoyé : mercredi 4 janvier 2006 14:45
À : zope list user
Objet : Re: [Zope] ZServer threads and pool-size question


On 4 Jan 2006, at 13:34, Pascal Peregrina wrote:

 I understand.

 So what is the typical value to use for pool-size given a certain  
 threads number: n+3 ?

There is no typical value. Changing the thread number and pool size  
puts you *way* off-road, fiddling with it should be avoided.

You will have to experiment if you really think you need to change  
that setting. More connections - more RAM usage.

Makes me wonder why you think that is necessary.

jens

___
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 )


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

___
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] ZServer threads and pool-size question

2006-01-04 Thread Jens Vagelpohl


On 4 Jan 2006, at 13:53, Pascal Peregrina wrote:

Because I use ZEO, I got lots of often modified objects, and on  
Zope servers I got lots of memory so I can give it a try ;)


Where do you see the gain? More threads and connection also means  
more caches that need to be updated/invalidated when you modify an  
object. You might slow your system down instead.


jens

___
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] ZServer threads and pool-size question

2006-01-04 Thread Pascal Peregrina
So, are you telling me that the ideal configuration is using all default values 
(connection objects cache size, ZEO cache size, threads and connection pool)?

Pascal

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jens Vagelpohl
Envoyé : mercredi 4 janvier 2006 15:02
À : zope list user
Objet : Re: [Zope] ZServer threads and pool-size question


On 4 Jan 2006, at 13:53, Pascal Peregrina wrote:

 Because I use ZEO, I got lots of often modified objects, and on  
 Zope servers I got lots of memory so I can give it a try ;)

Where do you see the gain? More threads and connection also means  
more caches that need to be updated/invalidated when you modify an  
object. You might slow your system down instead.

jens

___
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 )


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

___
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] ZServer threads and pool-size question

2006-01-04 Thread Jens Vagelpohl


On 4 Jan 2006, at 14:11, Pascal Peregrina wrote:

So, are you telling me that the ideal configuration is using all  
default values (connection objects cache size, ZEO cache size,  
threads and connection pool)?


The default values for thread number and connection pool covers all  
but the most exotic use cases. The cache sizes can benefit greatly  
from experimenting, but there is no standard recipe, it all depends  
on your specific software and hardware environment.


jens

___
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] ZServer threads and pool-size question

2006-01-04 Thread Pascal Peregrina
Ok, much clearer now... 

I might focus on cache sizes then.

Thanks.

Pascal

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jens Vagelpohl
Envoyé : mercredi 4 janvier 2006 15:17
À : zope list user
Objet : Re: [Zope] ZServer threads and pool-size question


On 4 Jan 2006, at 14:11, Pascal Peregrina wrote:

 So, are you telling me that the ideal configuration is using all  
 default values (connection objects cache size, ZEO cache size,  
 threads and connection pool)?

The default values for thread number and connection pool covers all  
but the most exotic use cases. The cache sizes can benefit greatly  
from experimenting, but there is no standard recipe, it all depends  
on your specific software and hardware environment.

jens

___
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 )


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

___
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] ZServer threads and pool-size question

2006-01-04 Thread Dieter Maurer
Pascal Peregrina wrote at 2006-1-4 13:34 -:
I understand.

So what is the typical value to use for pool-size given a certain threads 
number: n+3 ?

It depends on how intensively you are using additional (application level)
threads:

  Each thread using persistent objects requires in general (at least) one
  ZODB connection.

As such threads are relatively rare, additional 3 connections
is not too bad for the general case.



-- 
Dieter
___
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 )