免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8587 | 回复: 10
打印 上一主题 下一主题

[proxy] 谈谈Squid服务中的缓存命中率 [复制链接]

论坛徽章:
6
丑牛
日期:2013-09-17 00:18:40未羊
日期:2013-10-31 12:10:47午马
日期:2013-12-07 01:58:50水瓶座
日期:2013-12-24 22:43:12水瓶座
日期:2014-03-15 21:12:13操作系统版块每日发帖之星
日期:2016-08-07 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-30 17:52 |只看该作者 |倒序浏览
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
2 [报告]
发表于 2008-06-30 18:24 |只看该作者
>如果是30%-60%的话就属于正常

我的节点命中率都是93-98%。60%太低了

论坛徽章:
0
3 [报告]
发表于 2008-06-30 18:55 |只看该作者
mark,明天看。

论坛徽章:
6
丑牛
日期:2013-09-17 00:18:40未羊
日期:2013-10-31 12:10:47午马
日期:2013-12-07 01:58:50水瓶座
日期:2013-12-24 22:43:12水瓶座
日期:2014-03-15 21:12:13操作系统版块每日发帖之星
日期:2016-08-07 06:20:00
4 [报告]
发表于 2008-06-30 21:10 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
5 [报告]
发表于 2008-06-30 21:29 |只看该作者
LZ方法不错,可以试下~~

你命中率93-98% 是全静态?

论坛徽章:
0
6 [报告]
发表于 2008-07-01 12:09 |只看该作者
/usr/local/squid/bin/squidclient -h localhost -p 3128 mgr:info
是lz说的方法2吗?我用上面的命令看的结果,命中率非常低。不知道什么原因?

论坛徽章:
6
丑牛
日期:2013-09-17 00:18:40未羊
日期:2013-10-31 12:10:47午马
日期:2013-12-07 01:58:50水瓶座
日期:2013-12-24 22:43:12水瓶座
日期:2014-03-15 21:12:13操作系统版块每日发帖之星
日期:2016-08-07 06:20:00
7 [报告]
发表于 2008-07-03 16:56 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
8 [报告]
发表于 2008-07-09 18:09 |只看该作者
我只做了透明代理,不知道什么原因命中率非常低。

论坛徽章:
6
丑牛
日期:2013-09-17 00:18:40未羊
日期:2013-10-31 12:10:47午马
日期:2013-12-07 01:58:50水瓶座
日期:2013-12-24 22:43:12水瓶座
日期:2014-03-15 21:12:13操作系统版块每日发帖之星
日期:2016-08-07 06:20:00
9 [报告]
发表于 2008-07-11 15:38 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2010-10-26 09:59 |只看该作者
# squidclient -h host-squid-01 -p 3128 mgr:info  
HTTP/1.0 200 OK
Server: squid/2.6.STABLE21
Date: Tue, 26 Oct 2010 01:55:42 GMT
Content-Type: text/plain
Expires: Tue, 26 Oct 2010 01:55:42 GMT
Last-Modified: Tue, 26 Oct 2010 01:55:42 GMT
X-Cache: MISS from jrcz-gw-01
X-Cache-Lookup: MISS from jrcz-gw-01:3128
Via: 1.0 host-squid-01:3128 (squid/2.6.STABLE21)
Proxy-Connection: close

Squid Object Cache: Version 2.6.STABLE21
Start Time:     Mon, 25 Oct 2010 05:00:00 GMT
Current Time:   Tue, 26 Oct 2010 01:55:42 GMT
Connection information for squid:
        Number of clients accessing cache:      43
        Number of HTTP requests received:       213934
        Number of ICP messages received:        0
        Number of ICP messages sent:    0
        Number of queued ICP replies:   0
        Request failure ratio:   0.00
        Average HTTP requests per minute since start:   170.4
        Average ICP messages per minute since start:    0.0
        Select loop called: 3648381 times, 20.651 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 23.9%, 60min: 24.2%
        Byte Hit Ratios:        5min: 13.7%, 60min: 11.3%
        Request Memory Hit Ratios:      5min: 21.9%, 60min: 14.3%
        Request Disk Hit Ratios:        5min: 38.6%, 60min: 36.5%
        Storage Swap size:      1776760 KB
        Storage Mem size:       65488 KB
        Mean Object Size:       15.78 KB
        Requests given to unlinkd:      7510
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.22004  0.35832
        Cache Misses:          0.35832  0.58309
        Cache Hits:            0.00091  0.00179    //怎么我的squid透明代理命中率这么低啊,只有0.091%--0.179%?
        Near Hits:             0.22004  0.44492
        Not-Modified Replies:  0.00091  0.00091
        DNS Lookups:           0.11926  0.36346
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        75342.146 seconds
        CPU Time:       334.829 seconds
        CPU Usage:      0.44%
        CPU Usage, 5 minute avg:        1.70%
        CPU Usage, 60 minute avg:       2.01%
        Process Data Segment Size via sbrk(): 101516 KB
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
        Total space in arena:  101648 KB
        Ordinary blocks:       100744 KB    290 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           244 KB      1 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:     903 KB
        Total in use:          100988 KB 99%
        Total free:               903 KB 1%
        Total size:            101892 KB
Memory accounted for:
        Total accounted:        91028 KB
        memPoolAlloc calls: 28820306
        memPoolFree calls: 28166509
File descriptor usage for squid:
        Maximum number of file descriptors:   1024
        Largest file desc currently in use:    538
        Number of file desc currently in use:  320
        Files queued for open:                   0
        Available number of file descriptors:  704
        Reserved number of file descriptors:   100
        Store Disk files open:                   0
        IO loop method:                     epoll
Internal Data Structures:
        113092 StoreEntries
         13297 StoreEntries with MemObjects
         13261 Hot Object Cache Items
        112595 on-disk objects


***************************************************************
   Cache Hits:            0.00091  0.00179    //怎么我的squid透明代理命中率这么低啊,只有0.091%--0.179%?
大虾帮忙给分析一下,谢谢!~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP