XPerf 中的硬故障是什么
我正在尝试使用 XPerf 分析系统。 并看到当 HardFaults 中有活动时就会出现性能问题!
但是我无法弄清楚并在谷歌中找到 xperf 显示的这些硬故障是什么。 它们有什么关系? 它们表明什么? 对于这种情况有什么通用的补救措施吗? 硬故障表
I'm trying to profile a system with XPerf.
And see that performance problems occurs when there is activity in HardFaults !
But what I cant figure out and find in google what are these Hard Faults that xperf shows.
What are they related to?
What do they indicate?
Is there any universal remedy for such situations?
Hard faults table
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
的确。
首先,在早期版本的 Windows 中,“硬错误”以前被称为“页面错误”。也许从名称上看,页面错误更容易理解。当内存中某个地址的一部分发生错误时,就会发生硬错误。程序不再位于主内存中,而是被交换到分页文件中,使系统在硬盘上查找它。当这种情况发生很多时,会导致速度减慢并增加硬盘活动。严重的是,当程序停止响应,但硬盘继续运行很长一段时间时,就会出现硬盘抖动的情况,这在历史上被称为“进入页面文件”
。
http://www.brighthub.com/computing/windows-platform/articles /52249.aspx
但要小心本文的以下建议,因为这样做并不完全正确:
http://player.microsoftpdc.com/Session/1689962d-dea2-48bd -80d8-96e954fa5329
http://player.microsoftpdc.com/Session/1c97b279-d7e3-4a3e-9a76-0dac23dfddb5
Indeed.
"First of all, a "hard fault" was previously called a "page fault" in earlier versions of Windows. Perhaps page faults were more easily understood from the name, too. A hard fault happens when the address in memory of part of a program is no longer in main memory, but has been instead swapped out to the paging file, making the system go looking for it on the hard disk. When this happens a lot, it causes slowdowns and increased hard disk activity. When it happens an awful lot, the possibility of hard disk thrashing arises. That's when a program stops responding, but the hard drive continues to run for an extended period. This has historically been referred to as "getting into the page file."
Here is the article.
http://www.brighthub.com/computing/windows-platform/articles/52249.aspx
But be carefull with following suggestions of this article, because it is not quite correct to do so:
http://player.microsoftpdc.com/Session/1689962d-dea2-48bd-80d8-96e954fa5329
http://player.microsoftpdc.com/Session/1c97b279-d7e3-4a3e-9a76-0dac23dfddb5
硬故障是指请求进程专用页面或文件支持页面不在 RAM 中。已调出的分配以及对数据文件和可执行映像的访问都会发生硬故障。
页的类型将决定从何处读取数据。大多数硬故障不是针对页面文件中的数据,而是针对数据文件(例如,您的 Word 文档)。
A hard fault is when a the request process private page or file backed page is not in RAM. Hard faults occur for allocations that have been paged out, but also accesses to data file and executable images.
The type of page will determine where the data data will be read from. Most hard faults are not for data from teh page file, but for data files (your word doc, for example).
我隐约记得一个硬错误是当请求的虚拟内存块不再位于内存中并且需要从交换文件中调入时。
Vaguely I remember a hard fault is when the requested virtual memory block is not in memory anymore and needs to be paged-in from the swapfile.