Squid Web Cache Wiki

Squid Web Cache 文档

🔗 特定系统优化

本 FAQ 章节中详细介绍的设置是针对操作系统特定的设置的建议,这些设置在运行繁忙缓存时可能会有所帮助。建议使用 Cache Manager 来检查设置是否能达到预期的效果。

🔗 FreeBSD

🔗 文件描述符

对于繁忙的缓存,通过在 /etc/sysctl.conf 中设置,增加系统范围内可用的文件描述符数量是有意义的。

kern.maxfilesperproc=8192

🔗 Diskd

:warning: 此信息已过时,因为在较新的 FreeBSD 版本中,这些参数可以通过 sysctl 在运行时进行调整。我们正在寻找贡献者来更新此页面。

为了运行 diskd,您可能需要调整内核设置。尝试在内核配置文件中设置(对于非常繁忙的缓存可能需要更大的值)。

options         MSGMNB=8192     # max # of bytes in a queue
options         MSGMNI=40       # number of message queue identifiers
options         MSGSEG=512      # number of message segments per queue
options         MSGSSZ=64       # size of a message segment
options         MSGTQL=2048     # max messages in system

options SHMSEG=16
options SHMMNI=32
options SHMMAX=2097152
options SHMALL=4096
options MAXFILES=16384

回到 FAQ 索引

导航: 网站搜索网站页面分类🔼 向上