From: Fabiano Ramos <ramos_fabiano@yahoo.com.br>
To: Valdis.Kletnieks@vt.edu
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: strange AMD x Intel Behaviour in 2.4.26
Date: Thu, 07 Oct 2004 17:19:36 -0300 [thread overview]
Message-ID: <1097180376.4161.3.camel@lfs.barra.bali> (raw)
In-Reply-To: <200410071845.i97Ijcv2025341@turing-police.cc.vt.edu>
On Thu, 2004-10-07 at 14:45 -0400, Valdis.Kletnieks@vt.edu wrote:
> On Thu, 07 Oct 2004 15:15:36 -0300, Fabiano Ramos said:
>
> > The code is producing correct results (same as ptrace, I mean)
> > but is RUNNING FASTER on a 500Mhz AMD K6-2 than on a 2.6Ghz HT
> > Pentium 4 !!!! The monitored code runs faster on P4 if not being
> > monitored, as expected.
>
> Most likely, the old slow AMD chipset doesn't take a big performance
> hit for each of the loops into debug-land, and the P4 chipset takes a
> big hit. Not sure if it's a pipeline-drain issue, or relative cost
> of L1/2 cache misses, or what - an architecture expert could probably
> say more. Basically, the AMD goes faster because it has less to forget
> at the end of each counted instruction, while the P4 gains much of its
> speed via a lot of caching/decoding/pipelining tricks, so it has to throw
> away more, and then re-establish state when it comes back.
>
yes, you are probably right. I thought about that, but in no way
I could imagine such a drastic situation. I was wondering if maybe
the kernel did different things for AMD and Pentium, but both
are treated the same, as a i386, RIGHT?????
I have just tried on another AMD core, a 1Ghz Duron, and it outperforms
the AMD K6 (as expected) and the 2.6Ghz P4 as well, probably due to the
same thing.
> Imagine 2 people walking down a hallway - one moves at 1 mile per hour
> when walking, the other at 5. However, every third step each of them drops
> the stack of papers they are carrying - and the slow person drops 5 sheets
> of paper and the fast one drops 200. Who reaches the end of the hall first?
>
> It's probably sort of like that....
:)
Thanks.
next prev parent reply other threads:[~2004-10-07 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-07 18:15 Fabiano Ramos
2004-10-07 18:45 ` Valdis.Kletnieks
2004-10-07 20:19 ` Fabiano Ramos [this message]
[not found] <2MLlk-5MH-5@gated-at.bofh.it>
2004-10-07 21:40 ` Andi Kleen
2004-10-07 22:25 ` Fabiano Ramos
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=1097180376.4161.3.camel@lfs.barra.bali \
--to=ramos_fabiano@yahoo.com.br \
--cc=Valdis.Kletnieks@vt.edu \
--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®