Sharat Chandra
Sharat Chandra

Reputation: 4544

How do you change the associativity of the CPU cache?

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

Upvotes: 1

Views: 256

Answers (2)

Dan Breslau
Dan Breslau

Reputation: 11522

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.

Upvotes: 2

Rob Cooke
Rob Cooke

Reputation: 978

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

Upvotes: 2

Related Questions