Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Optimal use of the L2 cache
@ 2001-06-15 20:48 Tobias Oed
  2001-06-15 22:22 ` Hoff Hoffman
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Oed @ 2001-06-15 20:48 UTC (permalink / raw)


Hi all,
after reading some of the posts here i'm affraid this 
is not the best newsgroup to ask this question, but
for lack of anything better let me try here. If you
know of a better place, please let me know.

I have a piece of code that does a large amount of 
floating point computations. In order to get it to 
run faster, I build a lookup table of ~4000 floating 
point values. This brought some improovment but it's 
still very slow. I access the elements of the table 
in a more or less random fashion and am affraid that 
I get a terrible cache performance.
After scanning thourgh the assembly (my last assembly 
dates back to the M68k), it apears that the rest of the 
computation is done entierly in registers, with just 
another array of 96 doubles in memory. If I am not 
mistaken, my EV67 has 64k of L2 data cache and 
everything should fit in there if it were not for 
aliasing. How could I convince the processor to keep
my arrays in that cache.
Would adding dummy values in the middle of the array 
help? How big should the chunks of used values be and
how many dummy ones should I insert between them?

Thanks for your input,
Tobias.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-06-16 20:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-15 20:48 Optimal use of the L2 cache Tobias Oed
2001-06-15 22:22 ` Hoff Hoffman
2001-06-15 23:23   ` Tobias Oed
2001-06-16  1:23     ` Hoff Hoffman
2001-06-16 17:42     ` Paul Hughett
2001-06-16 20:50       ` Tobias Oed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox