Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: torvalds@transmeta.com (Linus Torvalds)
Subject: Re: Why is our Alpha box so slow?
Date: 1998/08/04	[thread overview]
Message-ID: <6q6e4j$8c3$1@palladium.transmeta.com> (raw)
In-Reply-To: 6q55em$a58$1@mips.rhein-neckar.de

In article <6q55em$a58$1@mips.rhein-neckar.de>,
Christian Weisgerber <naddy@mips.rhein-neckar.de> wrote:
>
>The result on the Alpha box (Red Hat 5.1, 2.0.33, egcs-2.90.29, -O3) is
>bizarre:
>
>   1k:    149679693     *
>   2k:    149316456     *  8k 1st level cache
>   4k:    144773425     *
>   8k:    144881972     *
>  16k:    104659487     .
>  32k:    104677115     .
>  64k:    104652525     .
> 128k:    104110833     .  huh!? we have 1M
> 256k:     56204479        of 2nd level cache
> 512k:     40814057
>1024k:     32698979
>2048k:     26571787        continuously getting slower!?
>4096k:     24232887

You may have 1MB of L2 cache, but it's direct-mapped and physical, and
Linux (for good reasons) doesn't try to colour it.  So depending on how
your physical pages get spread out in memory you can't cache it all.

Anyway, it's not continuously getting slower, but the effect of the
cache is gradually getting less (you'd probably see it stagnating at
somewhere around 24000000 which would be your main memory index). 

The colouring doesn't show up for the L1, because while the L1 is
direct-mapped too, so is your memory (8kB pages), so there are no
virtual->physical translation issues for the low 13 bits of the address,
and you don't see the same effect. 

Now you know why newer CPU's tend to have multi-way associative caches. 
Much better degradation. 

			Linus



  reply	other threads:[~1998-08-04  4:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-01  4:00 Why is our Alpha box so slow? Christian Weisgerber
1998-08-01  4:00 ` Greg Lindahl
1998-08-03  4:00   ` Christian Weisgerber
1998-08-01  4:00 ` B. James Phillippe
1998-08-03  4:00   ` Christian Weisgerber
1998-08-05  4:00     ` B. James Phillippe
1998-08-03  4:00   ` Eric Christy
1998-08-01  4:00 ` Paul Tomblin
1998-08-02  4:00 ` Carlos Vidal
1998-08-03  4:00 ` Christian Weisgerber
1998-08-04  4:00   ` Linus Torvalds [this message]
1998-08-04  4:00     ` Robert Harley
1998-08-06  4:00     ` Christian Weisgerber
1998-08-14  4:00     ` bmeyer
1998-08-04  4:00   ` Chris Pirih, proverbs at wolfenet dot com
1998-08-05  4:00     ` David A Willmore
1998-08-12  4:00       ` Chris Pirih, proverbs at wolfenet dot com
1998-08-04  4:00   ` Christian Weisgerber
1998-08-06  4:00   ` Alex Rhomberg
1998-08-06  4:00     ` Christian Weisgerber
1998-08-06  4:00     ` Robert Harley
1998-08-06  4:00   ` B. James Phillippe
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