From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,ef107b9833276e64 X-Google-Attributes: gid111c93,public X-Google-Thread: f57db,ef107b9833276e64 X-Google-Attributes: gidf57db,public From: torvalds@transmeta.com (Linus Torvalds) Subject: Re: Linux vs. Tru64 Unix on the Alpha EV6 Date: 1999/07/31 Message-ID: <7nv8ao$qst$1@palladium.transmeta.com>#1/1 X-Deja-AN: 507344721 References: <7nshom$16am@news2.newsguy.com> <7nt12j$t70$1@palladium.transmeta.com> <37a2b018.1362649@news.lf.net> Organization: Transmeta Corporation, Santa Clara, CA Newsgroups: comp.benchmarks,comp.os.linux.alpha In article <37a2b018.1362649@news.lf.net>, Andreas Kaiser wrote: >On 30 Jul 1999 20:14:11 GMT, torvalds@transmeta.com (Linus Torvalds) > >>Actually, I doubt I'll _ever_ do page colouring. It only makes sense on >>architectures with limited cache associativity (ie direct mapped caches >>and 2-way associative), and I don't expect any interesting CPU's to show >>up with that particular braindamage in the forseeable future. > >K7/Athlon L1 and L2 caches are 2-way associative. Uninteresting? See, I don't care that much about getting the last 1% today. I care about what seems to be happening in the future. And direct-mapped caches are basically gone already, and 2-way set associativity is slowly on the way out. A cache miss is just too expensive these days, and people are doing everything they can to avoid them. Larger caches with higher associativity will be the order of the day, so says the oracle. Yes, there are still 2-way set-associative chips made today. Are they interesting from a system design standpoint? I don't think so. And we'll see. The Athlon may not beat a PIII (with 4-way caches) as soundly as AMD currently claims. It's hard to tell about unreleased chips. For all we know, the current benchmark numbers are from beefed up machines with 200MHz memory interfaces etc, and maybe there's somebody inside AMD that already works on the Athlon II with a bigger and better cache. Note that for most applications page coulouring actually HURTS. There's no win from it, because the access patterns aren't that regular anyway, and the loss comes from the overhead of doing colouring and the rules that imposes on the system. And even 2-way associativity is a huge win over direct-mapping: big enough that even in the few cases where cache colouring is a win, it's not as noticeable any more. Yes, you can construct special cases and especially benchmarks that make cache colouring appear like a huge advantage, but it's getting harder and harder to construct real-world applications that actually care. And I know that Fortran people think they are special. But the fact is that 99% of the worlds computing power (the part that isn't sitting idle, that is), is used for other things. There's a hell of a lot more floating point being done on games than on atomic simulations, I bet. And call me shallow, but I'll try to take care of the 99% rather than the 1%. If it turns out that some people prefer Tru64 because it does page colouring, that's fine with me. I really don't care, because I believe in the "best tool for the job" adage. I don't believe Linux is supposed to be the best tool for _everything_ - but I firmly believe that I should make my decisions on maintaining the thing 15 years from now. And 15 years from now, cache colouring will be another theoretical oddity, in class with Turing machines etc - taught in school, but not with any real-world relevance. And hey, I've been wrong before, I'll be wrong again. You can try to embarrass me in 15 years by archiving this stupid posting. I can't prove a single thing above, I'm going on gut feel all the way.. Linus