|
From: Mr L. <mrl...@ya...> - 2007-08-23 23:22:57
|
Hi,=0A=0AWhat is the maximum size I can set for Cachegrind L2 (and can I ge= t around that)?=0A=0AI am using Cachegrind for a project investigating work= load memory footprints. Some of the =0Aapplications I am studying require a= huge cache or main memory.=0A=0AI have successfully used Cachegrind for L2= =3D1GB, but not for L2=3D2GB. I get the following =0Aerror:=0A=0A--3017-- S= tartup, with flags:=0A--3017-- -v=0A--3017-- --tool=3Dcachegrind=0A--= 3017-- --D1=3D8388608,64,64=0A--3017-- --L2=3D2147483648,64,64=0A(...= omitted)=0A=3D=3D3017=3D=3D error: L2 cache size of -2147483648B <=3D line= size of 64B; aborting.=0A=0AIs this a problem with the valgrind version I = am using? Or is this a limitation within =0Acachegrind itself? And how can = I get around this problem?=0AOr=0ADo I need to use a 64-bit machine (but do= es valgrind support x86_64?)?=0A=0A=0AHelp or suggestions would be much app= reciated.=0A=0AThanks!=0A=0AAlbert=0A=0A=0A =0A______________________= ______________________________________________________________=0ATake the I= nternet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photo= s & more. =0Ahttp://mobile.yahoo.com/go?refer=3D1GNXIC |
|
From: Nicholas N. <nj...@cs...> - 2007-08-24 00:54:28
|
On Thu, 23 Aug 2007, Mr Lin wrote: > I am using Cachegrind for a project investigating workload memory > footprints. Some of the applications I am studying require a huge cache or > main memory. Is the memory huge or the cache? There's a big difference between those two. > I have successfully used Cachegrind for L2=1GB, but not for L2=2GB. I get > the following >error: > >--3017-- Startup, with flags: >--3017-- -v >--3017-- --tool=cachegrind >--3017-- --D1=8388608,64,64 >--3017-- --L2=2147483648,64,64 >(... omitted) >==3017== error: L2 cache size of -2147483648B <= line size of 64B; aborting. > >Is this a problem with the valgrind version I am using? Or is this a limitation within >cachegrind itself? And how can I get around this problem? >Or >Do I need to use a 64-bit machine (but does valgrind support x86_64?)? It's a limit in Cachegrind. If you change the 'line_size' field in the 'cache_t' and 'cache_t2' types from 'Int' to 'Long' and recompile it should work. Search for them in the files in the cachegrind/ directory. Are you really sure you want to simulate a 2GB cache? Nick |