From: Matthias Fischer <matthias.fischer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: squid 5.1 gone stable
Date: Wed, 18 Aug 2021 18:42:02 +0200 [thread overview]
Message-ID: <b0ebb779-7a2d-2973-f71c-aab823a12534@ipfire.org> (raw)
In-Reply-To: <DA5494C5-C748-454A-8EEB-B2256EC5DB6D@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]
Hi,
On 16.08.2021 11:40, Michael Tremer wrote:
...
>> What makes me wonder: during build, 'squid' says it can open '32768',
>> during start its '4096'. If someone knows why, please enlighten me... ;-)
> 4096 is the default maximum number of files any process can open at the same.
>
> This is to protect the system from going crazy by having too many open files (because I think the file descriptor table used to be of a static size in older versions of the kernel).
>
>>> I suppose this is enough and I can live with 32k. We should remove the field from the UI then.
>> Me too, but are 4096 enough?
> No. I don’t know why the squid team isn’t handling this better. We are hitting this problem every time we update to a new version.
>
> I suppose this is fine for testing.
>
> You can try adding “ulimit -n 32768” to the squid init script and then it should be able to open up to 32k files.
...
Thanks for the clarification - I tested this with 'squid 5.1'. It seems
to work:
...
case "1$" in
start)
ulimit -n 32768
getpids "squid"
...
For my 'cache_peer' problem I opened a bug report
(https://bugs.squid-cache.org/show_bug.cgi?id=5147). Work in progress.
Best,
Matthias
next prev parent reply other threads:[~2021-08-18 16:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-07 16:13 Matthias Fischer
2021-08-13 9:22 ` Michael Tremer
2021-08-15 7:53 ` Matthias Fischer
2021-08-16 9:40 ` Michael Tremer
2021-08-18 16:42 ` Matthias Fischer [this message]
2021-08-19 13:57 ` Michael Tremer
2021-08-19 16:32 ` Matthias Fischer
2021-08-23 13:29 ` Michael Tremer
2021-08-23 16:25 ` Matthias Fischer
-- strict thread matches above, loose matches on Subject: below --
2021-08-02 16:12 Matthias Fischer
2021-08-02 16:39 ` Michael Tremer
2021-08-05 17:12 ` Matthias Fischer
2021-08-06 10:46 ` Michael Tremer
2021-08-06 17:55 ` Matthias Fischer
2021-08-07 8:40 ` 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=b0ebb779-7a2d-2973-f71c-aab823a12534@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