Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Tobias Oed <tobias@physics.odu.edu>
Subject: Optimal use of the L2 cache
Date: Fri, 15 Jun 2001 16:48:54 -0400	[thread overview]
Message-ID: <3B2A74B6.5F18718A@physics.odu.edu> (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.


             reply	other threads:[~2001-06-15 20:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-15 20:48 Tobias Oed [this message]
2001-06-15 22:22 ` Optimal use of the L2 cache 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
read-only archive

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