如何更改 CPU 缓存的关联性?
我想收集不同缓存关联性设置的二级缓存未命中数据。谁能告诉我如何改变关联性? 在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,这是一个硬件设计参数,无法通过软件重新配置。
通常,这种事情是使用硬件模拟器进行优化的。人们已经对软件可配置缓存进行了研究,但我还没有听说有任何将其纳入流行的通用处理器的研究。
-要么是我的建筑知识已经过时了......
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...
我认为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.