|
From: Marco E. <Mar...@mp...> - 2008-06-20 09:21:24
|
Hello, I like to run cachegrind with Intel E5400 processor parameters but suffer from two problems: 1) Hardware L2 cache size of 6MB is not recognized and a default of 256MB assumed 2) setting caching sizes manually fails with a "power of two" problem valgrind --L2=6291456,8,64 --tool=cachegrind error: L2 size of 6291456B not a power of two; aborting. How can I overcome this ? Marco IT-Support <Mar...@mp...> Max-Planck-Institute of Colloids Tel: +49-(0)331-567-9650 and Interfaces Fax: +49-(0)331-567-9612 Am Muehlenberg 1, D-14476, Golm, Germany |
|
From: Nicholas N. <nj...@cs...> - 2008-06-21 00:16:47
|
On Fri, 20 Jun 2008, Marco Ehlert wrote: > 1) Hardware L2 cache size of 6MB is not recognized and > a default of 256MB assumed > > 2) setting caching sizes manually fails with a "power of two" > problem > > valgrind --L2=6291456,8,64 --tool=cachegrind > > error: L2 size of 6291456B not a power of two; aborting. > > How can I overcome this ? You can't without rewriting the code in cachegrind/cg_sim.c to handle non-powers-of-two. Easier would be to run it using 4MB and 8MB and interpolate the results... Nick |