From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman)
Subject: Re: Optimal use of the L2 cache
Date: Sat, 16 Jun 2001 01:23:45 GMT [thread overview]
Message-ID: <ByyW6.1515$fi2.45211@news.cpqcorp.net> (raw)
In-Reply-To: 3B2A98FB.9C766616@physics.odu.edu
In article <3B2A98FB.9C766616@physics.odu.edu>, Tobias Oed <tobias@physics.odu.edu> 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 <rtfaq.h> -----------------------------
For additional, please see the OpenVMS FAQ -- www.openvms.compaq.com
--------------------------- pure personal opinion ---------------------------
Hoff (Stephen) Hoffman OpenVMS Engineering hoffman#xdelta.zko.dec.com
next prev parent reply other threads:[~2001-06-16 1:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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