Hello,
On 13 Jan 2019, at 14:24, Bernhard Bitsch Bernhard.Bitsch@gmx.de wrote:
Gesendet: Sonntag, 13. Januar 2019 um 13:43 Uhr Von: "Matthias Fischer" matthias.fischer@ipfire.org An: "Michael Tremer" michael.tremer@ipfire.org Cc: "IPFire: Development-List" development@lists.ipfire.org Betreff: Re: Merge Window Closing Announcement for Core Update 127
Hi,
On 13.01.2019 13:14, Michael Tremer wrote:
I sent squid thousands of requests with ab (Apache Benchmark) and that worked fine with only one redirector.
Thanks for the feedback! Merged. ;-)
Nevertheless it's worth reasoning about multiprocessing ( #redirectors = #processors ) versus multitasking ( #redirectors = #task needed by the environment ). Even with only one processor it is possible to serve multiple requests. Using wait phases for other processes is a basic feature of multitasking.
This is not true for the redirectors though.
Our version of squidGuard takes only one request at a time. While processing that, it performs a database lookup (which is a btree) which is held in memory. So at no time it is reading anything from disk which would allow the kernel to interrupt the process and wait until the hard drive has responded.
Therefore it does not make any sense to run more than one process per CPU core.
I guess update accelerator might suffer a little bit in the instance that it finds a match. Squidclamav is a different thing. It makes absolutely no sense to use that any more.
-Michael
- Bernhard ( aka BeBiMa )