开发者

How do you change the associativity of the CPU cache?

开发者 https://www.devze.com 2023-01-09 13:52 出处:网络
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 ?

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 Ubunt开发者_开发知识库u on x86_64 Intel Core2 duo CPU


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消