Maybe this has been asked before, but how does one find the optimal DCACHE_SIZE value? For linux on P4 systems, the default makefile says
12000 for the serial and 4000 for the MPI version... How can I determine the
correct value for DCACHE_SIZE for my system? Or are these values correct for
every linux system? I saw somewhere that for the serial version at least, using
Jurgen Furthmuller's fft, DCACHE_SIZE should be increased to 16000.
Any comments are welcome.
Thanks
<span class='smallblacktext'>[ Edited ]</span>
DCACHE_SIZE
Moderators: Global Moderator, Moderator
-
- Full Member
- Posts: 107
- Joined: Wed Aug 10, 2005 1:30 pm
- Location: Leiden, Netherlands
DCACHE_SIZE
While there's probably a well defined theoretical optimum for each architecture/CPU/chipset, it's hard to go past the suck it and see approach. (You don't get something for nothing. You'll have to do some work to get the benefit.)
Take a typical sized problem that you'll be working on and run it on your machine with executables compiled with different cache size parameters. Use the fastest!
Take a typical sized problem that you'll be working on and run it on your machine with executables compiled with different cache size parameters. Use the fastest!
Last edited by tjf on Thu Nov 09, 2006 1:42 pm, edited 1 time in total.
DCACHE_SIZE
I suspected as much. Oh well. Thanks
Last edited by Tyx on Fri Nov 10, 2006 2:37 pm, edited 1 time in total.
DCACHE_SIZE
Hi, you can find cache size in /proc/cpuinfo
Did you mean this?
Did you mean this?
Last edited by bandy on Tue Nov 14, 2006 7:40 pm, edited 1 time in total.