使用 Linux Perf 或其他 Perf 监视器测量缓存的脏驱逐

发布于 2025-01-14 22:58:49 字数 293 浏览 5 评论 0原文

  1. Linux perf 工具提供有关某些事件的缓存行为的数据,例如“LLC-load-misses”(对丢失 LLC 的读取进行计数)和“LLC-store-misses”对写入丢失进行计数。现在,这里的写未命中到底是什么?通常,由于写入未命中会在现代写入分配缓存中创建对下一级内存的读取请求,因此上述计数器(LLC-store-misses)中的这些写入未命中计数实际上代表了由于写入未命中而生成的读取请求?

  2. 我想知道是否有任何性能事件也跟踪脏逐出,或者它们在上述事件或类似事件中进行内部跟踪。

  1. 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?

  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文