识别主要页面错误原因
我被要求查看一个用 C++ 编写并在 Linux 上运行的内部应用程序,该应用程序遇到了一些困难。 它会定期出现大量主要页面错误(~200k),这会导致挂钟运行时间增加 10+,然后在某些运行中它不会出现任何错误。
我尝试过隔离不同的代码片段,但在测试时很难重复页面错误错误。
对于从应用程序/Linux 中获取有关主要页面错误的更多信息,有人有任何建议吗?我所拥有的实际上只是一个总数。
I've been asked to look at an internal application written in C++ and running on Linux thats having some difficulties.
Periodically it will have a large amount of major page faults (~200k), which cause the wall clock run time to increase by x10+, then on some runs it will have none.
I've tried isolating different pieces of the code but am struggling to repeat the page fault errors when testing it.
Does anyone have any suggestions for getting any more information out of the application/Linux on major page faults? All I have really is a total.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能会考虑Valgrid,其主页上的描述如下:
具体来说,Valgrind 包含一个名为 Massif 的工具,以下(转述)概述手册中给出:
You may like to consider Valgrid, described on the home page as:
Specifically Valgrind contains a tool called Massif, for which the following (paraphrased) overview is given in the manual: