From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer To: development@lists.ipfire.org Subject: Re: [PATCH] BUG 11786 - squid: Remove setting for filter processes the number of Squid processes Date: Sat, 15 Dec 2018 14:24:22 +0100 Message-ID: <2e74c926-a425-1d32-b727-60b410c52986@ipfire.org> In-Reply-To: <074ab32112cf6adc5728207f0823b9f5abd32173.camel@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2067749030466099525==" List-Id: --===============2067749030466099525== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 30.10.2018 17:05, Michael Tremer wrote: > On Tue, 2018-10-30 at 15:37 +0100, Matthias Fischer wrote: >> On 30.10.2018 15:03, Michael Tremer wrote: >> > Hey, Hi, > ... > Looking at the options that we have ( > http://www.squid-cache.org/Doc/config/url_rewrite_children/), could you ple= ase > test this: >=20 > url_rewrite_children X startup=3DN idle=3DN queue-size=3D64 >=20 > With N being the number of cores that your system has. I do not think that = there > is any point in trying to run more than N queries at a time. >=20 > But squid doesn't start anything when it starts up. startup=3D changes that= and > idle=3D makes sure that all processes remain active. >=20 > A queue size of 64 seems sensible to me because that is probably what the > average tabloid newspaper page has. Maybe it should be 16 * N or so... > ... I tested this quite a while now. If I set 'queue-size' to 64, there will be occasional warnings: ... 2018/12/15 14:10:59 kid1| comm_udp_sendto FD 8, (family=3D2) 127.0.0.1:53: (1) Operation not permitted 2018/12/15 14:10:59 kid1| idnsSendQuery FD 8: sendto: (1) Operation not permitted 2018/12/15 14:11:09 kid1| comm_udp_sendto FD 8, (family=3D2) 127.0.0.1:53: (1) Operation not permitted 2018/12/15 14:11:09 kid1| idnsSendQuery FD 8: sendto: (1) Operation not permitted 2018/12/15 14:11:19 kid1| comm_udp_sendto FD 8, (family=3D2) 127.0.0.1:53: (1) Operation not permitted 2018/12/15 14:11:19 kid1| idnsSendQuery FD 8: sendto: (1) Operation not permitted ... With a value of '128' these warnings do not occur. Running on Duo Box. Corresponding 'squid.conf' line, latest 'squid 4.4', 32bit: ... url_rewrite_children 2 startup=3D2 idle=3D2 queue-size=3D128 ... Best, Matthias --===============2067749030466099525==--