Determing cache sizes -- request for testing

bearophile bearophileHUGS at lycos.com
Wed Sep 10 05:34:00 PDT 2008


Don:
> The value shown for L3 should be greater than the memory size, if there 
> is no L2 cache. (you never fall out of the L3 cache). So it's correct.

I don't understand. And I have L2 cache.
The results I expect from your code running on my PC are:

L1: 32 + 32 KB
L2: 1024 KB
L3: 0 MB
RAM: 2 GB

Or if you want an output more usable by an algorithm, it can output a dynamic array of longs:

Memory levels ==> [65536, 1048576, 2147483648]

Bye,
bearophile



More information about the Digitalmars-d mailing list