mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Kanaber <akanaber@chiark.greenend.org.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Athlon cache-line fix
Date: Sat, 2 Nov 2002 23:09:45 +0000	[thread overview]
Message-ID: <20021102230945.A5273@chiark.greenend.org.uk> (raw)
In-Reply-To: <20021102005122.2205.AKIRA-T@suna-asobi.com>; from akira-t@suna-asobi.com on Sat, Nov 02, 2002 at 07:32:02AM +0000

Akira Tsukamoto wrote:
> For Athlon CPU, CONFIG_X86_MK7,
> the X86_L1_CACHE_SHIFT is set to 6, 128 Bytes

Eh? L1_CACHE_BYTES is defined as (1 << L1_CACHE_SHIFT) in
include/asm-i386/cache.h, which makes for a cache line size of 64 bytes
which is right. Perhaps you were assuming the cache line size was
2 << L1_CACHE_SHIFT ?

>  config X86_L1_CACHE_SHIFT
>         int
> -       default "5" if MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCRUSOE || MCYRIXIII || MK6 || MPENTIUMIII || M686 || M586MMX || M586TSC || M586
> +       default "5" if MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCRUSOE || MCYRIXIII || MK6 || MK7|| MPENTIUMIII || M686 || M586MMX || M586TSC || M586
>         default "4" if MELAN || M486 || M386
> -       default "6" if MK7
>         default "7" if MPENTIUM4

Regardless of the above this patch can't be right: the PIII's cache line
size is 32 bytes and the P4's is 128 bytes. Interesting that it increases
performance (on at least one benchmark) though.

Andrew

  parent reply	other threads:[~2002-11-02 23:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-02  6:03 Akira Tsukamoto
2002-11-02 19:40 ` steve roemen
2002-11-03  3:01   ` Akira Tsukamoto
2002-11-02 23:09 ` Andrew Kanaber [this message]
2002-11-03  3:26   ` Akira Tsukamoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021102230945.A5273@chiark.greenend.org.uk \
    --to=akanaber@chiark.greenend.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®