How can I force an L2 cache miss?
<p>I want to study the effects of L2 cache misses on CPU power consumption. To measure this, I have to create a benchmarks that gradually increase the working set size such that core activity (micro-operations executed per cycle) and L2 activity (L2 request per cycle) remain constant, but the ratio of L2 misses to L2 requests increases.</p>

<p>Can anyone show me an example of C program which forces "N" numbers of L2 cache misses?</p>