From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,5c187b9e0c78e85b X-Google-Attributes: gid111c93,public From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme) Subject: Re: Linux / Tru64 Fortran performance Date: 2000/05/08 Message-ID: <8f6up3$g9m$1@lead.zk3.dec.com>#1/1 X-Deja-AN: 620745094 References: <8e29bb$7th$1@nnrp1.deja.com> <3905E6E5.B4E2DFF5@moene.indiv.nluug.nl> <8e50ue$vu8$1@nnrp1.deja.com> <8e54sv$jt0$1@nntp6.u.washington.edu> <8e6uqk$3i3$1@nnrp1.deja.com> X-Complaints-To: iass@lead.zk3.dec.com X-Trace: lead.zk3.dec.com 957808227 16694 16.140.64.211 (8 May 2000 17:50:27 GMT) Reply-To: (Replace nobody with werme) nobody@zk3.dec.com NNTP-Posting-Date: 8 May 2000 17:50:27 GMT Newsgroups: comp.os.linux.alpha Leon Muratov 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 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 <> <> <> Compaq Computer Corp. <> <> <> http://people.ne.mediaone.net/werme <>