Name

max_open_disk_fds

Synopsis

This directive defines an upper limit on the number of file descriptors that Squid should open for reading and writing cache files on disk. It is relevant for only the ufs and aufs storage schemes. It is a relatively simple hack for measuring the level of Squid’s disk activity. Experience shows that performance degrades significantly when Squid hits a filesystem bottleneck.

If Squid reaches this limit, it doesn’t attempt to store subsequent cachable responses. Each time that happens, Squid increments the no.too_many_open_files counter (see Section 14.2.1.40). Note that hitting this limit has a negative impact on your hit ratio. You can monitor the number of open disk files by requesting the info page from the cache manager (see Section 14.2.1.24).

If you set this directive to 0, Squid doesn’t place any limits on the number of open disk file descriptors.

Syntax

max_open_disk_fds N

Default

max_open_disk_fds 0

Example

max_open_disk_fds 100

Get Squid: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.