51Testing软件测试论坛

标题: 问下Pages/sec和Page Faults/sec两个计数器的区别 [打印本页]

作者: qitengfeng    时间: 2008-3-14 15:04
标题: 问下Pages/sec和Page Faults/sec两个计数器的区别
RT,网上的资料对这两个计数器写得太抽象,没看出有什么区别,有人能清晰点说出这两个计数器的区别么,谢谢
作者: qitengfeng    时间: 2008-3-14 16:22
快沉了,自己顶起来。。。
作者: 奥莉薇娅    时间: 2008-3-14 16:29
你指的是哪类计数器?
作者: qitengfeng    时间: 2008-3-14 16:33
不好意思,忘说了,是MEMORY的
作者: 奥莉薇娅    时间: 2008-3-14 16:50
在LR自带的帮助里抽搜过"pages/sec"可以找到一些相关资料呵.
Page Faults/sec :A count of the Page Faults in the processor. A page fault occurs when a process refers to a virtual memory page that is not in its Working Set in main memory. A Page Fault will not cause the page to be fetched from disk if that page is on the standby list, and hence already in main memory, or if it is in use by another process with whom the page is shared.
------------------------------------------
Pages/sec :The number of pages read from the disk or written to the disk to resolve memory references to pages that were not in memory at the time of the reference. This is the sum of Pages Input/sec and Pages Output/sec. This counter includes paging traffic on behalf of the system Cache to access file data for applications. This value also includes the pages to/from non-cached mapped memory files. This is the primary counter to observe if you are concerned about excessive memory pressure (that is, thrashing), and the excessive paging that may result.
区别就在于前者是每秒失败的页数,后者是每秒读和写操作的总页数.
作者: qitengfeng    时间: 2008-3-14 17:32
意思就应该是PAGES/SEC包括了所有的读写页面的操作,而PAGE FAULTS/SEC算是统计失败的页面数(包括软硬错误)




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2