使用 Linux Perf 或其他 Perf 监视器测量缓存的脏驱逐
Linux perf 工具提供有关某些事件的缓存行为的数据,例如“LLC-load-misses”(对丢失 LLC 的读取进行计数)和“LLC-store-misses”对写入丢失进行计数。现在,这里的写未命中到底是什么?通常,由于写入未命中会在现代写入分配缓存中创建对下一级内存的读取请求,因此上述计数器(LLC-store-misses)中的这些写入未命中计数实际上代表了由于写入未命中而生成的读取请求?
我想知道是否有任何性能事件也跟踪脏逐出,或者它们在上述事件或类似事件中进行内部跟踪。
Linux perf tool provides data on cache behavior for some events like "LLC-load-misses" that counts reads that missed LLC and "LLC-store-misses" counts write misses. Now, what exactly is a write miss here? Typically, since a write miss would create a read request to the next level memory in modern write-allocate caches, so are these write miss counts from the above counter (LLC-store-misses) actually represents the read requests generated due to write miss?
And I wonder if there is any perf event that tracks dirty evicts too or they get tracked internally in above mentioned events or similar.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论