Hello [EMAIL PROTECTED]

Looks like default file descriptors number changed with Squid 2.7.

2.6 allocates 1024:

2008/02/28 20:08:56| Starting Squid Cache version 2.6.STABLE18 for
i386-unknown-openbsd4.3...
2008/02/28 20:08:56| Process ID 24835
2008/02/28 20:08:56| With 1024 file descriptors available
2008/02/28 20:08:56| Using kqueue for the IO loop
2008/02/28 20:08:56| DNS Socket created at 0.0.0.0, port 35846, FD 8
2008/02/28 20:08:56| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2008/02/28 20:08:56| Unlinkd pipe opened on FD 13
2008/02/28 20:08:56| Swap maxSize 16777216 KB, estimated 1290555 objects
2008/02/28 20:08:56| Target number of buckets: 64527
2008/02/28 20:08:56| Using 65536 Store buckets
2008/02/28 20:08:56| Max Mem  size: 8192 KB
2008/02/28 20:08:56| Max Swap size: 16777216 KB
2008/02/28 20:08:56| Store logging disabled

2.7 allocates 128:

2008/07/31 13:47:32| Squid Cache (Version 2.7.STABLE3): Exiting normally.
2008/08/02 08:58:31| Starting Squid Cache version 2.7.STABLE3 for
x86_64-unknown-openbsd4.4...
2008/08/02 08:58:31| Process ID 11499
2008/08/02 08:58:31| With 128 file descriptors available
2008/08/02 08:58:31| Using kqueue for the IO loop
2008/08/02 08:58:31| DNS Socket created at 0.0.0.0, port 4908, FD 8
2008/08/02 08:58:31| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2008/08/02 08:58:32| Unlinkd pipe opened on FD 18
2008/08/02 08:58:32| Swap maxSize 16777216 KB, estimated 1290555 objects
2008/08/02 08:58:32| Target number of buckets: 64527
2008/08/02 08:58:32| Using 65536 Store buckets
2008/08/02 08:58:32| Max Mem  size: 8192 KB
2008/08/02 08:58:32| Max Swap size: 16777216 KB
2008/08/02 08:58:32| Store logging disabled

and cache.log fills with

2008/08/03 13:30:02| WARNING! Your cache is running out of filedescriptors

"max_filedescriptors 1024" in /etc/squid/squid.conf remedies the problem but
this new default in 2.7 is really strange.

Additionally, changelog for 2.7 contains:

Changes to squid-2.7.STABLE1 (27 May 2008)
...
        - max_filedescriptor squid.conf option
        - Clean up filedescriptor limitations, and handle comm loop
          restrictions proper
...

So maybe number of filedescriptors was hardcoded in 2.6 to 1024 but it is
not true for 2.7 any more?

Thanks.

Alexey

Reply via email to