From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7f84976ed48a7472 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-06-15 18:23:49 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.mesh.ad.jp!uunet!osa.uu.net!sac.uu.net!news.compaq.com!news.cpqcorp.net!not-for-mail Newsgroups: comp.sys.dec Distribution: world X-Newsreader: mxrn 6.18-32B References: <3B2A74B6.5F18718A@physics.odu.edu> <3B2A98FB.9C766616@physics.odu.edu> From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman) Reply-To: hoffman@xdelta.zko.dec.nospam Subject: Re: Optimal use of the L2 cache Message-ID: Date: Sat, 16 Jun 2001 01:23:45 GMT NNTP-Posting-Host: 16.32.80.251 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 992654625 16.32.80.251 (Fri, 15 Jun 2001 18:23:45 PDT) NNTP-Posting-Date: Fri, 15 Jun 2001 18:23:45 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.sys.dec:4508 In article <3B2A98FB.9C766616@physics.odu.edu>, Tobias Oed writes: Yes, the current generation of Alpha systems have an eight kilobyte page size. Your table will fit onto a handful of hardware pages, but I didn't specifically check the math -- one obvious question involves everything else that is competing for the cache... Can you pass a pointer to the array and not the array? Try compiling -- and I don't know the Linux switches -- with an EV6 (or EV56) as the architecture target, and with either generic or EV6/EV67 as the optimization target. I don't know the details of the argument passing on Linux, but on OpenVMS you will want to keep to six arguments or less for heavily-called functions. More than six arguments means the stack and the registers get used. I'd tend to use IEEE native floating point format, S or T. Compaq C V6.4A is the current version, donno if that's on Linux. V6.2 does have ability to generate byte-word and similar, but there have been a number of changes since that version. With the versions of Compaq C on OpenVMS, the compiler will keep the data naturally aligned unless requested -- either explicitly or implicitly -- otherwise. I would check the generated code to ensure that the compiler has spoted and has re-ordered some of the quick_table memory accesses to try to reduce the potential for thrashing, and I'd look to load in some of the references (eg: [1826] looks popular) explicitly if the compiler is not spotting this. ---------------------------- #include ----------------------------- For additional, please see the OpenVMS FAQ -- www.openvms.compaq.com --------------------------- pure personal opinion --------------------------- Hoff (Stephen) Hoffman OpenVMS Engineering hoffman#xdelta.zko.dec.com