免费注册 查看新帖 |

Chinaunix

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

关于缓存命中率的查询 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-28 10:12 |只看该作者 |倒序浏览
前面看了个文章,unix下用sar -b来查询缓存命中率
可是我在linux下用sar发现 sar -b只统计IO数据,查不到缓存命中率
想请教一下各位,linux下查询缓存命中率的方法

论坛徽章:
0
2 [报告]
发表于 2008-05-28 12:03 |只看该作者
-r     Report memory and swap space utilization statistics.  The following values are displayed:

              kbmemfree
                     Amount of free memory available in kilobytes.

              kbmemused
                     Amount of used memory in kilobytes. This does not take into account memory used by the kernel itself.

              %memused
                     Percentage of used memory.

              kbbuffers
                     Amount of memory used as buffers by the kernel in kilobytes.

              kbcached
                     Amount of memory used to cache data by the kernel in kilobytes.

              kbswpfree
                     Amount of free swap space in kilobytes.

              kbswpused
                     Amount of used swap space in kilobytes.

              %swpused
                     Percentage of used swap space.

              kbswpcad
                     Amount of cached swap memory in kilobytes.  This is memory that once was swapped out, is swapped back in but still also is in the swap area (if mem-
                     ory is needed it doesn<A1><AF>t need to be swapped out again because it is already in the swap area. This saves I/O).

       -R     Report memory statistics. The following values are displayed:

              frmpg/s
                     Number of memory pages freed by the system per second.  A negative value represents a number of pages allocated by the system.  Note that a page has
                     a size of 4 kB or 8 kB according to the machine architecture.

              bufpg/s
                     Number of additional memory pages used as buffers by the system per second.  A negative value means fewer pages used as buffers by the system.

              campg/s
                     Number of additional memory pages cached by the system per second.  A negative value means fewer pages in the cache.

论坛徽章:
0
3 [报告]
发表于 2008-05-28 13:27 |只看该作者

回复 #2 qsxing 的帖子

看了一下,没有直接表示命中率的吧,可能我理解不是很好,兄弟能解释一下,用什么算法吗?能得出缓存命中率
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP