public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Matthias Fischer <matthias.fischer@ipfire.org>
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	[thread overview]
Message-ID: <2e74c926-a425-1d32-b727-60b410c52986@ipfire.org> (raw)
In-Reply-To: <074ab32112cf6adc5728207f0823b9f5abd32173.camel@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1732 bytes --]

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 please
> test this:
> 
>   url_rewrite_children X startup=N idle=N queue-size=64
> 
> 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.
> 
> But squid doesn't start anything when it starts up. startup= changes that and
> idle= makes sure that all processes remain active.
> 
> 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=2) 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=2) 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=2) 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=2 idle=2 queue-size=128
...

Best,
Matthias

  parent reply	other threads:[~2018-12-15 13:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-30 11:06 Daniel Weismüller
2018-10-30 13:54 ` Matthias Fischer
2018-10-30 14:03   ` Michael Tremer
2018-10-30 14:37     ` Matthias Fischer
2018-10-30 16:05       ` Michael Tremer
2018-10-30 17:12         ` Matthias Fischer
2018-11-02 14:13           ` Daniel Weismüller
2018-11-02 17:07             ` Michael Tremer
2018-11-02 17:34               ` Matthias Fischer
2018-12-15 13:24         ` Matthias Fischer [this message]
2018-12-17 19:05           ` Matthias Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2e74c926-a425-1d32-b727-60b410c52986@ipfire.org \
    --to=matthias.fischer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox