免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: jackbillow
打印 上一主题 下一主题

[proxy] 优化squid性能 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2008-06-16 18:01 |只看该作者

回复 #20 kevin.tan 的帖子

200终端左右的代理 我认为应该不成问题

一台PC p4 2.4 单核 1G RAM  sata 硬盘 80G 做了16G Cache  10M线路 squid 2.5

拖了800 - 1600 个客户端上网,现在也想再优化

各位有没有好的建议?

Squid Object Cache: Version 2.5.STABLE12-20051215
Start Time:     Sun, 15 Jun 2008 21:21:48 GMT
Current Time:   Mon, 16 Jun 2008 08:38:08 GMT
Connection information for squid:
        Number of clients accessing cache:      901
        Number of HTTP requests received:       3365898
        Number of ICP messages received:        0
        Number of ICP messages sent:    0
        Number of queued ICP replies:   0
        Request failure ratio:   0.01
        Average HTTP requests per minute since start:   4976.7
        Average ICP messages per minute since start:    0.0
        Select loop called: 14018219 times, 2.895 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 46.7%, 60min: 35.7%
        Byte Hit Ratios:        5min: 23.4%, 60min: 21.5%
        Request Memory Hit Ratios:      5min: 3.4%, 60min: 5.0%
        Request Disk Hit Ratios:        5min: 43.1%, 60min: 32.4%
        Storage Swap size:      8253240 KB
        Storage Mem size:       49144 KB
        Mean Object Size:       21.37 KB
        Requests given to unlinkd:      0
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.15048  0.16775
        Cache Misses:          0.37825  0.33943
        Cache Hits:            0.00865  0.01309
        Near Hits:             0.33943  0.37825
        Not-Modified Replies:  0.00379  0.00379
        DNS Lookups:           0.00573  0.00669
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        40580.237 seconds
        CPU Time:       26833.861 seconds
        CPU Usage:      66.13%
        CPU Usage, 5 minute avg:        80.71%
        CPU Usage, 60 minute avg:       85.55%
        Process Data Segment Size via sbrk(): 151416 KB
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 3
Memory usage for squid via mallinfo():
        Total space in arena:  151416 KB
        Ordinary blocks:       123070 KB   2730 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:          1920 KB      2 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:   28345 KB
        Total in use:          124990 KB 82%
        Total free:             28345 KB 18%
        Total size:            153336 KB
Memory accounted for:
        Total accounted:        90748 KB
        memPoolAlloc calls: 413997233
        memPoolFree calls: 412574679
File descriptor usage for squid:
        Maximum number of file descriptors:   7168
        Largest file desc currently in use:   2092
        Number of file desc currently in use: 1194
        Files queued for open:                   0
        Available number of file descriptors: 5974
        Reserved number of file descriptors:   100
        Store Disk files open:                  13
Internal Data Structures:
        386904 StoreEntries
          9982 StoreEntries with MemObjects
          9867 Hot Object Cache Items
        386176 on-disk objects

论坛徽章:
0
22 [报告]
发表于 2008-06-16 20:01 |只看该作者
to 楼上: 换到squid 2.6/3.0 + epoll/kqueue, 效果好很多的.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP