如何更改 CPU 缓存的关联性?

发布于 2024-09-11 20:57:29 字数 83 浏览 0 评论 0原文

我想收集不同缓存关联性设置的二级缓存未命中数据。谁能告诉我如何改变关联性? 在 x86_64 Intel Core2 双核 CPU 上使用 Ubuntu

I'd like to collect data of L2 cache misses for different cache associativity settings . can anybody tell me how i could change the assocoiativity ?
uSing Ubuntu on x86_64 Intel Core2 duo CPU

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不必了 2024-09-18 20:57:29

据我所知,这是一个硬件设计参数,无法通过软件重新配置。

通常,这种事情是使用硬件模拟器进行优化的。人们已经对软件可配置缓存进行了研究,但我还没有听说有任何将其纳入流行的通用处理器的研究。

-要么是我的建筑知识已经过时了......

To the best of my knowledge this is a hardware design parameter that can't be reconfigured from software.

Typically, this kind of thing is optimized using hardware simulators. There has been research into software configurable caches, but I haven't heard of any making it into popular general purpose processors.

-either that or my architecture knowledge is way out of date...

月牙弯弯 2024-09-18 20:57:29

我认为Rob Cooke芯片的二级缓存不能用软件修改是正确的。但请查看 Cachegrind,这是一个允许您修改设置的分析器模拟缓存。

I think Rob Cooke is correct that the chip's L2 cache can't be modified in software. But have a look at Cachegrind, a profiler that allows you to modify the settings of a simulated cache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文