Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OT: P4- 3 GHz with hyper-threading

Author: Robert Hyatt

Date: 09:58:51 11/03/02

Go up one level in this thread


On November 03, 2002 at 10:01:15, Vincent Diepeveen wrote:

>On November 03, 2002 at 03:29:09, Gian-Carlo Pascutto wrote:
>
>>On November 03, 2002 at 02:00:41, Anthony Cozzie wrote:
>>
>>>If I understand SMT correctly, its even more than that.  A modern processor has
>>>a lot of functional units lying around.  An Athlon can in theory execute 3
>>>branches, 3 integer instructions, and 3 floating point instructions every
>>>cycle. In reality, most of the time those units are just sitting around. One
>>>of the ideas behind SMT is that you can run 2 threads, and split the
>>>functional units between them.
>>
>>The problem with this (and the reason I was surprised SMT works) is that
>>it only has 3 decoders and a single cache that is used by both processes.
>>
>>It is somewhat irrelevant that you have 9 function units if your
>>processor is decoder-limited (true for most modern cpus). I guess
>>all improvement from SMT is because of memory waiting as Robert
>>describes.
>
>1 decoder for P4 even. So if a program is not insane small and if a program
>doesn't fit in the 12K trace cache then you are history in advance.
>
>also there is other problems with registers. Just 40 registers to use for
>renaming. Too little.

40 is just fine.  How many cases do you have in a row where you do something
like


mov   eax, value
...


mov   eax, newvalue
...

That is where renaming is used, so that the second set of instructions can
use a "different" eax than the first.  You only have 4 general purpose registers
on the Intel IA32 machiens.  That means you can rename each of them 10 times.
I doubt that ever turns into a "logjam" problem.

Instruction fetching is simply another place where hyperthreading can help, as
now it is fetching two different instruction streams.  With posix "threads" the
two threads _share_ everything in cache anyway so it can work very well.




>
>
>
>>
>>--
>>GCP



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.