Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: torvalds@transmeta.com (Linus Torvalds)
Subject: Re: Linux vs. Tru64 Unix on the Alpha EV6
Date: 1999/07/31	[thread overview]
Message-ID: <7nv8ao$qst$1@palladium.transmeta.com> (raw)
In-Reply-To: 37a2b018.1362649@news.lf.net

In article <37a2b018.1362649@news.lf.net>,
Andreas Kaiser <ak@s.netic.de> 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



  reply	other threads:[~1999-07-31  4:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <FFo86F.33r@world.std.com>
1999-07-30  4:00 ` Linux vs. Tru64 Unix on the Alpha EV6 Doug Siebert
1999-07-30  4:00 ` Stefan A. Deutscher
1999-07-30  4:00   ` Greg Lindahl
1999-07-30  4:00     ` Linus Torvalds
1999-07-30  4:00       ` Greg Lindahl
1999-07-30  4:00         ` Linus Torvalds
1999-07-31  4:00         ` Eric Jones
1999-08-06  4:00           ` Jason Taylor
1999-08-06  4:00             ` Greg Lindahl
1999-07-31  4:00       ` Andreas Kaiser
1999-07-31  4:00         ` Linus Torvalds [this message]
1999-08-03  4:00           ` Johannes Nix
1999-08-02  4:00     ` Stefan A. Deutscher
1999-08-03  4:00     ` Jim Gettys
1999-08-05  4:00       ` Greg Lindahl
1999-07-30  4:00 ` Pierre Asselin
1999-07-30  4:00   ` JJ
1999-07-31  4:00     ` Greg Lindahl
1999-07-31  4:00   ` Robert McGwier
1999-07-31  4:00     ` Michal Jaegermann
1999-08-06  4:00 ` Cox
1999-08-07  4:00   ` Greg Lindahl
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