From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7f84976ed48a7472,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-06-15 13:57:23 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!dispose.news.demon.net!demon!diablo.netcom.net.uk!netcom.net.uk!not-for-mail From: Tobias Oed Newsgroups: comp.sys.dec Subject: Optimal use of the L2 cache Date: Fri, 15 Jun 2001 16:48:54 -0400 Organization: Old Dominion University Sender: tobias@physics.odu.edu Message-ID: <3B2A74B6.5F18718A@physics.odu.edu> NNTP-Posting-Host: bernoulli.physics.odu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: taliesin.netcom.net.uk 992638136 14163 128.82.242.52 (15 Jun 2001 20:48:57 GMT) X-Complaints-To: abuse@corp.netcom.net.uk NNTP-Posting-Date: Fri, 15 Jun 2001 20:48:56 +0000 (UTC) X-Mailer: Mozilla 4.77 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: en Xref: archiver1.google.com comp.sys.dec:4499 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.