Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1072373
  • 博文数量: 186
  • 博客积分: 4939
  • 博客等级: 上校
  • 技术积分: 2075
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-08 17:15
文章分类

全部博文(186)

文章存档

2018年(1)

2017年(3)

2016年(11)

2015年(42)

2014年(21)

2013年(9)

2012年(18)

2011年(46)

2010年(35)

分类: 系统运维

2011-04-25 11:03:24

    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。
阅读(879) | 评论(0) | 转发(0) |
0

上一篇:gzip和http1.1

下一篇:回源路由一个特例

给主人留下些什么吧!~~