From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme)
Subject: Re: Linux / Tru64 Fortran performance
Date: 2000/05/08 [thread overview]
Message-ID: <8f6up3$g9m$1@lead.zk3.dec.com> (raw)
In-Reply-To: 8e6uqk$3i3$1@nnrp1.deja.com
Leon Muratov <lmuratov@my-deja.com> writes:
>In article <8e54sv$jt0$1@nntp6.u.washington.edu>,
> kargl@troutmask.apl.washington.edu (Steven G. Kargl) wrote:
>> In article <8e50ue$vu8$1@nnrp1.deja.com>,
>> Leon Muratov <lmuratov@my-deja.com> writes:
>> > In article <3905E6E5.B4E2DFF5@moene.indiv.nluug.nl>,
>> >
>> > So any ideas what can cause 50% slowdown on Linux?
>>
>> Memory management and I/O.
>>
>> As already mentioned Tru64 has page coloring while linux
>> doesn't. This can affect memory management which your
>> "benchmark" number suggest is the problem. Does your
>> program allocate/deallocate a large number of small
>> arrays? This could lead to misalignment and fragmentation
>> which may causes inefficient use of the cache.
>However, I was under impression that cache management is done mainly by
>hardware.
I haven't read the papers on page coloring and whatnot, and my area
of expertise leaves me in a position where I don't have to worry
about too much cache management. (It means I only have to think
about it every day, rather than every hour!)
Without getting technical, and without saying anything Alpha specific
(because I'd have to RTFM), consider an address, say 1234000. If you
access it, it will be loaded in the cache. Not anywhere in the cache,
but in one of a few cells that can be used for addresses that end in 000.
Suppose you have other data at 2345000, 3456000, and 4567000. All
those would also contend for the same cache locations. Some systems
can keep all four in the cache, some can't. I think the early Alpha
chips could keep two of them, I think current ones can handle four.
On the other hand, if you addresses were 1234000, 2345100, 3456200, and
4567300, each could fit in the cache without contention.
The Tru64 VM system tries to achieve the latter. It may do it by restricting
physical pages to particular virtual addresses, I'm just not sure. Sorry.
At any rate, given the disparity in speed between CPU and memory, it's
really important to spread the cache load throughout the cache and
avoid hotspots along the way.
Do it wrong and a 50% performance hit is quite believable.
There are a lot of Tru64 tools to help study cache performance on Alphas.
Check some of the performance tuning manuals, check man pages for
pfm, prof, pixie, etc.
If you look at profile runs at the instruction level you can often
see stunning delays mixed in with instructions that fly like the
wind.
Bottom line: cache is king.
--
<> Eric (Ric) Werme <> The above is unlikely to contain <>
<> ROT-13 addresses: <> official claims or policies of <>
<> <jrezr@mx3.qrp.pbz> <> Compaq Computer Corp. <>
<> <jrezr@zrqvnbar.arg> <> http://people.ne.mediaone.net/werme <>
next prev parent reply other threads:[~2000-05-08 4:00 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-24 4:00 Linux / Tru64 Fortran performance Leon Muratov
2000-04-24 4:00 ` Richard Maine
2000-04-25 4:00 ` Leon Muratov
2000-04-25 4:00 ` Dan Nagle
2000-04-25 4:00 ` Andrei A. Dergatchev
2000-04-25 4:00 ` James D. Freels
2000-04-27 4:00 ` Charles Hixson
2000-05-08 4:00 ` Carlos
2000-05-08 4:00 ` Andrei A. Dergatchev
2000-04-25 4:00 ` Greg Lindahl
2000-04-25 4:00 ` Michael Kagalenko
2000-04-25 4:00 ` Timothy J. Bogart
2000-04-25 4:00 ` Jeffrey J. Potoff
2000-04-25 4:00 ` Toon Moene
2000-04-25 4:00 ` Leon Muratov
2000-04-25 4:00 ` Dan Nagle
2000-04-25 4:00 ` Steven G. Kargl
2000-04-26 4:00 ` Leon Muratov
2000-04-29 4:00 ` Jochen K�pper
2000-04-29 4:00 ` Steve Lionel
2000-04-29 4:00 ` Toon Moene
2000-05-08 4:00 ` Richard Simpson
2000-05-08 4:00 ` Andrei A. Dergatchev
2000-05-08 4:00 ` Eric Werme - replace nospam with werme [this message]
2000-04-26 4:00 ` Emilio Lopes
2000-04-26 4:00 ` Toon Moene
2000-04-26 4:00 ` Massimiliano Fatica
2000-06-18 4:00 ` Tom Sevy
2000-06-19 4:00 ` Greg Lindahl
2000-06-19 4:00 ` Steve Lionel
2000-06-19 4:00 ` Serguei Patchkovskii
2000-06-19 4:00 ` Steve Lionel
2000-06-20 4:00 ` W Bauske
2000-06-20 4:00 ` W Bauske
2000-06-20 4:00 ` Toon Moene
2000-06-19 4:00 ` W Bauske
2000-06-19 4:00 ` Toon Moene
2000-06-19 4:00 ` W Bauske
2000-06-19 4:00 ` Serguei Patchkovskii
2000-06-20 4:00 ` W Bauske
2000-06-25 4:00 ` Jeff Sturm
2000-06-20 4:00 ` James Cownie
2000-06-20 4:00 ` SPEC CFP2000 Fortran declarations Jan Vorbrueggen
2000-06-20 4:00 ` Toon Moene
2000-06-21 4:00 ` Jan Vorbrueggen
2000-06-21 4:00 ` Toon Moene
2000-06-20 4:00 ` McCalpin
2000-06-20 4:00 ` Jan Vorbrueggen
2000-06-20 4:00 ` McCalpin
2000-06-20 4:00 ` Linux / Tru64 Fortran performance Greg Lindahl
2000-06-21 4:00 ` W Bauske
2000-06-22 4:00 ` Greg Lindahl
2000-06-20 4:00 ` Jan Vorbrueggen
2000-06-20 4:00 ` Jan Vorbrueggen
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