]> git.ipfire.org Git - thirdparty/squid.git/commit
AUFS: Raise I/O queue congestion limits
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Aug 2015 01:00:12 +0000 (18:00 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Aug 2015 01:00:12 +0000 (18:00 -0700)
commitc0cd0c6dfa85c4e116a3d54be7809deffc4b0fd8
treebe79c2c2cb7c4040539e889ad165661811220ff6
parent94aaf79eeaa2905b263455e33f1878c8a6b68308
AUFS: Raise I/O queue congestion limits

... from 8 to 8196 before initial congestion message appears.

Modern networks can be quite busy and even amateur installations have a
much higher I/O throughput than Squid was originally designed for. This
often results in a series of "Queue congestion" warnings appearing on
startup before Squid learns what the local environment requires.

The new limit helps to cater for this and reduce teh frequency of
unnecessary warnings. They may still occur, so debug output is also
updated to show what the queue length has grown to with each warning.

Also updating the congestion counter from 32-bit to 64-bit unsigned
since the new limit already consumes half the available growth bits in
32-bit integer.

NP: this update was triggered by reports from admin with proxies needing
    to expand AIO queues to over 4K entries on startup.
src/DiskIO/DiskThreads/aiops.cc
src/DiskIO/DiskThreads/aiops_win32.cc