Edward, are you forgetting that you had to patch your Oops to get to 
1000 threads under Linux (the default configuration in Oops under Linux 
used to set a hard limit of 256--there was a time, long long ago, when 
Linux didn't handle large thread pools very well).  It's the same 
process you used back then.  It may be that Oops defaults to a more sane 
maximum under Linux now, so you didn't have to patch it the last time 
you compiled--but I know you've patched it in the past, I remember 
telling you how to do it.  ;-)

Grep out that 1000 (like you did for 256) and up it to 1500, or whatever 
you need.  You may still see performance problems...that many threads 
will have a huge overhead on any OS (Linux moreso than some, less than 
most).

Linux kernel 2.4 and above have no reasonable thread limits that you're 
going to hit.  I'm guessing you can spawn a few thousand if you want to 
(but don't do that--thread overhead would kill you!).

BTW-The reason it stops working at around 980, is probably because Oops 
wants to spawn some number of threads that pushes it over the 1000 
limit.  Oops doesn't spawn just one when it runs out of free threads, it 
spawns a bunch of them (because spawning threads is expensive, but once 
they are running it is relatively cheap).  Someone correct me if my 
guess is incorrect (I haven't looked at the code--but I know Oops 
pre-spawns a pool of threads on startup).

Edward Millington wrote:
> HI there
> 
> Does anyone knows how I can increase the number of thread linux can 
> handle for oops? 
> 
> I find that linux could handle up to 950+ thread fairly well. At around 
> 980 threads, oops stops working.
 >
> Is there a way to solve this?
> 
> With this big problem, I am thing of going back to squid.
> 
> 
> Thank you very much.
-- 
Joe Cooper <[EMAIL PROTECTED]>
http://www.swelltech.com
Web Caching Appliances and Support

=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops-eng" in message body.
Archive is accessible on http://lists.paco.net/oops-eng/

Дати відповідь електронним листом