On Fri, April 2, 2004 4:29 pm, Jesse Guardiani said:
>
> Why would you want to run more than five threads concurrently on a single
> processor box? Queue the remaining connections (and make sure your queue
> is
> large enough) and you'll run more efficiently by avoiding thread context
> switching and such. 5 threads are quite capable of bringing my CPU to 0%
> idle.
>
> My mailserver doesn't reject any mail with only 5 threads. The high
> MaxConnectionQueueLength insures (or should insure) that incoming messages
> wait their turn to be processed. Having a lower thread count insures
> that my server isn't brought to it's knees by high incoming mail volume.
>
> If I had 2 CPUs on a Solaris, Linux, or FreeBSD 5.x box then I would
> probably
> run 10 threads. 4 CPUs would merit maybe 20-30 threads, etc...
>
> Anyway, that's my understanding of the way threading works. If you run too
> many threads concurrently then you end up wasting a lot of time switching
> context. If anyone has a good argument against that logic then please let
> me know.
>


Something interesting I'll throw into the mix here.  I'm putting together
specs and development plans for a clamav based antivirus scanning
appliance.

I've got a customer that needs to be able to scan a ton of incoming mail,
and wants to quickly be able to add in more antivirus appliances to handle
the load.

The idea I was putting together was small, boxes with alot of raw power
CPU wise running Linux 2.6.x, boot from flash, so no moving parts to fail
besides the CPU fan and power supply.

When you need more scanning power, power up another scanning appliance,
plug in ethernet (gig probably), adjust the configs to add this new
scanner to the pool of available devices, and boom, more scanning power.

Obviously, still in development stage.

-- 
Brian Bruns
The Summit Open Source Development Group
Open Solutions For A Closed World / Anti-Spam Resources
http://www.sosdg.org

The Abusive Hosts Blocking List
http://www.ahbl.org


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to