|
From: Junchang W. <jun...@gm...> - 2008-09-10 00:42:26
|
Hi Julian, Thank you very much for this suggestion. And it works. But the real size of L2 cache in my sever is 6M. Can Cachegrind support 6M L2 cache? On Tue, Sep 9, 2008 at 10:57 PM, Julian Seward <js...@ac...> wrote: > > > Then, I tried running vagrind with a specific L2 cache > > wangjc@pesc8:~/project/cct$ valgrind --tool=cachegrind > --L2=6291456,16,64 > > ./a.out > > and got following warnings, > > --8818-- warning: Unknown Intel cache config value (0x4e), ignoring > > --8818-- warning: L2 cache not installed, ignore L2 results. > > ==8818== error: L2 size of 6291456B not a power of two; aborting. > > > > I have checked Valgrind User Manual and the doc said it is not > particularly > > hard to write my own cache simulator. But I failed to find more useful > > messages about this topic. How can I write a simulator by myself? > > Well, I don't know the details of Cachegrind's cache simulator. But you > should at least be able to make progress by selecting a power of 2 > cache size, eg --L2=4194304,16,64. > > J > |