Squid is a single process application and can not make use of SMP. If you want to make Squid benefit from a SMP system you will need to run multiple instances of Squid and find a way to distribute your users on the different Squid instances just as if you had multiple Squid boxes.
Having two CPUs is indeed nice for running other CPU intensive tasks on the same server as the proxy, such as if you have a lot of logs and need to run various statistics collections during peak hours.
The authentication and group helper
s barely use any CPU and does not benefit from dual-CPU configuration.
结论:不支持多cpu,建议多个instance,和禁用smp超线程,这个需要升级内核或主板关闭。
以上可以在系统里,top 按1看到其他cpu都没使用得到验证。
此外,squid的cache有效期根据web服务器的http header和自身的refresh pattern来定的,这东西可以google,若是要主动删除某个cache,比如非法文章和图片,需要借助squidclient 的purge。
阅读(909) | 评论(0) | 转发(0) |