From eedca6e36c1131ce5542da5ccbfbb5667648c024 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 8 Jan 2019 03:33:37 +0100 Subject: [PATCH] squid: Run as many redirectors as we have CPU cores MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This makes sure that we use the optimal ratio of memory and CPU usage. Signed-off-by: Michael Tremer Tested-by: Daniel Weismüller Tested-by: Matthias Fischer --- html/cgi-bin/proxy.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index 92bebfe188..75f535151b 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -4083,7 +4083,10 @@ END if (($proxysettings{'ENABLE_FILTER'} eq 'on') || ($proxysettings{'ENABLE_UPDXLRATOR'} eq 'on') || ($proxysettings{'ENABLE_CLAMAV'} eq 'on')) { print FILE "url_rewrite_program /usr/sbin/redirect_wrapper\n"; - print FILE "url_rewrite_children ", &General::number_cpu_cores(), "\n\n"; + print FILE "url_rewrite_children ", &General::number_cpu_cores(); + print FILE " startup=", &General::number_cpu_cores(); + print FILE " idle=", &General::number_cpu_cores(); + print FILE " queue-size=", &General::number_cpu_cores() * 32, "\n\n"; } # Include file with user defined settings. -- 2.39.2