Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch > #32223 > unrolled thread

SMT ("Hyperthreading") experience in Skylake

Started byanton@mips.complang.tuwien.ac.at (Anton Ertl)
First post2015-12-28 08:57 +0000
Last post2016-01-02 13:44 +0000
Articles 20 on this page of 29 — 12 participants

Back to article view | Back to comp.arch


Contents

  SMT ("Hyperthreading") experience in Skylake anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-28 08:57 +0000
    Re: SMT ("Hyperthreading") experience in Skylake Quadibloc <jsavard@ecn.ab.ca> - 2015-12-28 07:40 -0800
      Re: SMT ("Hyperthreading") experience in Skylake Quadibloc <jsavard@ecn.ab.ca> - 2015-12-28 07:44 -0800
      Re: SMT ("Hyperthreading") experience in Skylake Melzzzzz <mel@zzzzz.com> - 2015-12-28 16:54 +0100
        Re: SMT ("Hyperthreading") experience in Skylake "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-28 08:04 -0800
      Re: SMT ("Hyperthreading") experience in Skylake Robert Wessel <robertwessel2@yahoo.com> - 2015-12-28 13:44 -0600
      Re: SMT ("Hyperthreading") experience in Skylake anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-02 14:33 +0000
    Re: SMT ("Hyperthreading") experience in Skylake "Paul A. Clayton" <paaronclayton@gmail.com> - 2015-12-28 07:44 -0800
      Re: SMT ("Hyperthreading") experience in Skylake Stephen Sprunk <stephen@sprunk.org> - 2015-12-28 11:19 -0600
        Re: SMT ("Hyperthreading") experience in Skylake "Paul A. Clayton" <paaronclayton@gmail.com> - 2015-12-28 11:09 -0800
          Re: SMT ("Hyperthreading") experience in Skylake EricP <ThatWouldBeTelling@thevillage.com> - 2015-12-28 15:09 -0500
            Re: SMT ("Hyperthreading") experience in Skylake "Paul A. Clayton" <paaronclayton@gmail.com> - 2015-12-28 19:23 -0800
              Re: SMT ("Hyperthreading") experience in Skylake EricP <ThatWouldBeTelling@thevillage.com> - 2015-12-29 14:21 -0500
      Re: SMT ("Hyperthreading") experience in Skylake anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-02 14:43 +0000
        Re: SMT ("Hyperthreading") experience in Skylake Stephen Fuld <SFuld@alumni.cmu.edu.invalid> - 2016-01-02 09:32 -0800
          Re: SMT ("Hyperthreading") experience in Skylake anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-02 18:45 +0000
    Re: SMT ("Hyperthreading") experience in Skylake MitchAlsup <MitchAlsup@aol.com> - 2015-12-29 15:58 -0800
      Re: SMT ("Hyperthreading") experience in Skylake Quadibloc <jsavard@ecn.ab.ca> - 2015-12-29 17:17 -0800
        Re: SMT ("Hyperthreading") experience in Skylake Ivan Godard <ivan@millcomputing.com> - 2015-12-29 17:56 -0800
          Re: SMT ("Hyperthreading") experience in Skylake Quadibloc <jsavard@ecn.ab.ca> - 2015-12-29 20:06 -0800
            Re: SMT ("Hyperthreading") experience in Skylake Ivan Godard <ivan@millcomputing.com> - 2015-12-29 22:03 -0800
              Re: SMT ("Hyperthreading") experience in Skylake "Paul A. Clayton" <paaronclayton@gmail.com> - 2015-12-30 10:26 -0800
                Re: SMT ("Hyperthreading") experience in Skylake Quadibloc <jsavard@ecn.ab.ca> - 2015-12-30 11:49 -0800
            Re: SMT ("Hyperthreading") experience in Skylake Stephen Sprunk <stephen@sprunk.org> - 2016-01-02 12:21 -0600
          Re: SMT ("Hyperthreading") experience in Skylake Robert Wessel <robertwessel2@yahoo.com> - 2015-12-29 23:47 -0600
          Re: SMT ("Hyperthreading") experience in Skylake Bruce Hoult <bruce.hoult@gmail.com> - 2016-01-01 10:54 -0800
        Re: SMT ("Hyperthreading") experience in Skylake MitchAlsup <MitchAlsup@aol.com> - 2015-12-30 09:15 -0800
          Re: SMT ("Hyperthreading") experience in Skylake Quadibloc <jsavard@ecn.ab.ca> - 2015-12-30 09:58 -0800
          Re: SMT ("Hyperthreading") experience in Skylake anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-02 13:44 +0000

Page 1 of 2  [1] 2  Next page →


#32223 — SMT ("Hyperthreading") experience in Skylake

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2015-12-28 08:57 +0000
SubjectSMT ("Hyperthreading") experience in Skylake
Message-ID<2015Dec28.095749@mips.complang.tuwien.ac.at>
To see what Intel's SMT implementation buys in Skylake, I ran our
latex benchmark <https://www.complang.tuwien.ac.at/anton/latex-bench/>
repeatedly and in parallel, with either 4 or 8 running in parallel (my
Core i7-6700K has 4 cores, with 2 threads each).

The results are:

Processes s/run cycles/run IPC
4         0.20s   0.86G    2.24
8         0.36    1.53G    1.27

So for this benchmark, SMT buys only a factor 1.12 over running two
benchmarks back-to-back, which is somewhat disappointing, especially
given that Skylake devotes more resources to SMT than previous Intel
CPUs.  However, this benchmark is quite cache-friendly.  I expect that
more memory-bound programs will benefit more from SMT.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html

[toc] | [next] | [standalone]


#32228

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-28 07:40 -0800
Message-ID<3a6f262e-06fd-4fe9-a7c8-c5d421a2b6c1@googlegroups.com>
In reply to#32223
On Monday, December 28, 2015 at 2:09:36 AM UTC-7, Anton Ertl wrote:
> However, this benchmark is quite cache-friendly.  I expect that
> more memory-bound programs will benefit more from SMT.

I am puzzled. I would have thought that cache-friendly programs benefit more from 
both having four cores and from having two threads on each core - while programs 
that use the memory a lot would run as if you had only one core and one thread 
even when you have more, because the unchanged bandwidth to and latency from the 
DRAM becomes what limits performance.

John Savard

[toc] | [prev] | [next] | [standalone]


#32229

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-28 07:44 -0800
Message-ID<1f4de7e9-b818-4119-8fde-26cf9d625314@googlegroups.com>
In reply to#32228
Speaking of Skylake: When I heard that HP was coming out with an ultrabook 
form-factor laptop that had not only 4 core Core i7 processors, but Xeon, 
available for it, I thought that despite the end of Dennart scaling, process 
improvements finally meant that the power consumption of bigger processors fell 
below a significant threshhold.

However, looking at the available Skylake chips, I find I was wrong; the lowest 
TDP for a 4 core Core i7 is still 45 watts, the same as it was five years ago. 
However, one thing _has_ changed; this level of chip is now available in a 
*smaller package*, that can physically fit, even with cooling added, in an 
ultrabook. (What sort of cooling, I wonder, since an ultrabook usually wouldn't 
have room for a fan...)

John Savard

[toc] | [prev] | [next] | [standalone]


#32231

FromMelzzzzz <mel@zzzzz.com>
Date2015-12-28 16:54 +0100
Message-ID<n5rlv6$hqq$2@news.albasani.net>
In reply to#32228
On 12/28/15 4:40 PM, Quadibloc wrote:
> On Monday, December 28, 2015 at 2:09:36 AM UTC-7, Anton Ertl wrote:
>> However, this benchmark is quite cache-friendly.  I expect that
>> more memory-bound programs will benefit more from SMT.
>
> I am puzzled. I would have thought that cache-friendly programs benefit more from
> both having four cores and from having two threads on each core - while programs
> that use the memory a lot would run as if you had only one core and one thread
> even when you have more, because the unchanged bandwidth to and latency from the
> DRAM becomes what limits performance.
>
> John Savard
>
HT benefits when cpu waits for memory. Other thread can execute. It 
can't physically execute two threads, rather mask latency.

[toc] | [prev] | [next] | [standalone]


#32232

From"Rick C. Hodgin" <rick.c.hodgin@gmail.com>
Date2015-12-28 08:04 -0800
Message-ID<2b4837dd-16a3-4f7b-8da3-a2e1a30382cb@googlegroups.com>
In reply to#32231
On Monday, December 28, 2015 at 10:54:16 AM UTC-5, Melzzzzz wrote:
> HT benefits when cpu waits for memory. Other thread can execute. It 
> can't physically execute two threads, rather mask latency.

Also when one thread requires FP scheduling, the other integer.

Best regards,
Rick C. Hodgin

[toc] | [prev] | [next] | [standalone]


#32245

FromRobert Wessel <robertwessel2@yahoo.com>
Date2015-12-28 13:44 -0600
Message-ID<44438b5ll3a49nbbhao37racj0khacf400@4ax.com>
In reply to#32228
On Mon, 28 Dec 2015 07:40:49 -0800 (PST), Quadibloc
<jsavard@ecn.ab.ca> wrote:

>On Monday, December 28, 2015 at 2:09:36 AM UTC-7, Anton Ertl wrote:
>> However, this benchmark is quite cache-friendly.  I expect that
>> more memory-bound programs will benefit more from SMT.
>
>I am puzzled. I would have thought that cache-friendly programs benefit more from 
>both having four cores and from having two threads on each core - while programs 
>that use the memory a lot would run as if you had only one core and one thread 
>even when you have more, because the unchanged bandwidth to and latency from the 
>DRAM becomes what limits performance.


The second thread can run and generate more memory traffic until it
stalls too.  It might well be able to double the number of outstanding
memory transactions.  So the pipelined memory can finish serving all
the requests in less total time, since it can serve more of them in
parallel.

[toc] | [prev] | [next] | [standalone]


#32422

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2016-01-02 14:33 +0000
Message-ID<2016Jan2.153354@mips.complang.tuwien.ac.at>
In reply to#32228
Quadibloc <jsavard@ecn.ab.ca> writes:
>On Monday, December 28, 2015 at 2:09:36 AM UTC-7, Anton Ertl wrote:
>> However, this benchmark is quite cache-friendly.  I expect that
>> more memory-bound programs will benefit more from SMT.
>
>I am puzzled. I would have thought that cache-friendly programs benefit more from 
>both having four cores and from having two threads on each core - while programs 
>that use the memory a lot would run as if you had only one core and one thread 
>even when you have more, because the unchanged bandwidth to and latency from the 
>DRAM becomes what limits performance.

Bandwidth-limited workloads certainly won't benefit from more cores or
more threads per core.  But latency-limited programs that are not
bandwidth-limited would benefit; that was the idea of Tera.

As an extreme case, if you have 8 linked lists in main memory, and you
want to determine their length, and you want to use a simple routine
for it that processes only one linked list at a time, then running
this routine in 8 threads should give you a nice speedup (a factor of
8 if all lists have the same length and the memory subsystem supports
8 outstanding loads without penalty) over running one length-count
after the other.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html

[toc] | [prev] | [next] | [standalone]


#32230

From"Paul A. Clayton" <paaronclayton@gmail.com>
Date2015-12-28 07:44 -0800
Message-ID<9e05536f-17d2-4592-8298-e3bb133dbc83@googlegroups.com>
In reply to#32223
On Monday, December 28, 2015 at 4:09:36 AM UTC-5, Anton Ertl wrote:
> To see what Intel's SMT implementation buys in Skylake, I ran our
> latex benchmark <https://www.complang.tuwien.ac.at/anton/latex-bench/>
> repeatedly and in parallel, with either 4 or 8 running in parallel (my
> Core i7-6700K has 4 cores, with 2 threads each).
> 
> The results are:
> 
> Processes s/run cycles/run IPC
> 4         0.20s   0.86G    2.24
> 8         0.36    1.53G    1.27
> 
> So for this benchmark, SMT buys only a factor 1.12 over running two
> benchmarks back-to-back, which is somewhat disappointing, especially
> given that Skylake devotes more resources to SMT than previous Intel
> CPUs.  However, this benchmark is quite cache-friendly.  I expect that
> more memory-bound programs will benefit more from SMT.

From a brief look at the microarchitectural improvements 
for Skylake, most would benefit single-thread performance 
more than SMT performance, exceptions being the independent 
per thread retirement, more execution units, the greater 
µops per cycle for decode, and the parallel page table walking.

Better branch prediction generally helps single-threaded code 
disproportionately. Likewise the larger out-of-order window.

It is not obvious (to me) whether the reduced associativity of 
L2 would improve SMT _relative_ performance. While more L2 
misses would give SMT more latency to hide, SMT would tend to 
increase the conflict miss rate. Increased L2 fill bandwidth 
would seem to help SMT disproportionately. (I do wonder if 
some form of way group prediction would not provide better 
performance/energy.)

I am guessing that Skylake is (like many microarchitectures) 
limited to one store per cycle. This presumably limits 
throughput somewhat. (Supporting two stores per cycle might 
not help much, but it is an obvious bottleneck.)

[toc] | [prev] | [next] | [standalone]


#32234

FromStephen Sprunk <stephen@sprunk.org>
Date2015-12-28 11:19 -0600
Message-ID<n5rqqh$ike$1@dont-email.me>
In reply to#32230
On 28-Dec-15 09:44, Paul A. Clayton wrote:
> I am guessing that Skylake is (like many microarchitectures) limited
> to one store per cycle. This presumably limits throughput somewhat.

Why?

Assuming you have store-to-load forwarding, why would it matter how many
stores are queued up waiting to be sent to RAM?

Or is the limit on how fast stores can be put into that queue and thus
eligible for forwarding?

S

-- 
Stephen Sprunk         "God does not play dice."  --Albert Einstein
CCIE #3723         "God is an inveterate gambler, and He throws the
K5SSS        dice at every possible opportunity." --Stephen Hawking

[toc] | [prev] | [next] | [standalone]


#32243

From"Paul A. Clayton" <paaronclayton@gmail.com>
Date2015-12-28 11:09 -0800
Message-ID<eed7df84-c106-4272-97a8-341ae4491763@googlegroups.com>
In reply to#32234
On Monday, December 28, 2015 at 12:19:44 PM UTC-5, Stephen Sprunk wrote:
> On 28-Dec-15 09:44, Paul A. Clayton wrote:
> > I am guessing that Skylake is (like many microarchitectures) limited
> > to one store per cycle. This presumably limits throughput somewhat.
> 
> Why?
> 
> Assuming you have store-to-load forwarding, why would it matter how many
> stores are queued up waiting to be sent to RAM?
> 
> Or is the limit on how fast stores can be put into that queue and thus
> eligible for forwarding?

Traditionally, the limit is to one store-data µop, so it 
would limit forwarding speed.

However, even if the limit was at commitment, this would 
still limit throughput on Skylake since it can commit 
four µops *per thread* per cycle (IIRC). The benefit of 
this potential doubling of throughput would be reduced 
if one thread could commit fewer µops because both threads 
wanted to commit store-data µops.

Even without this factor, a one-store-per-cycle 
limit does place an obvious constraint on performance.
While buffering and out-of-order execution can smooth 
out demand for stores, this is a hard throughput limit.
As single-thread ILP increases, this limit is approached 
leaving less opportunity for SMT to improve performance.

I did not mean to imply that this was necessarily 
a substantial constraint in Skylake merely that it is 
an _obvious_ bottleneck. 

Some design choices are only justifiable for multithreaded 
operation and Intel seems less motivated to sacrifice 
single-thread performance for improved multithreading. 
This is just an example of the natural specialization 
and utilization tradeoffs. (I think many multithreading 
overheads can be made beneficial to single-threaded code, 
especially if one supports speculative multithreading, 
but there are limits.) (Interestingly, SMT can be viewed 
as primarily a generalization/sharing mechanism to 
increase utilization, while in this context it can be 
viewed as a specialization that has limited utilization.)

[toc] | [prev] | [next] | [standalone]


#32246

FromEricP <ThatWouldBeTelling@thevillage.com>
Date2015-12-28 15:09 -0500
Message-ID<VGggy.51642$MN2.11440@fx07.iad>
In reply to#32243
Paul A. Clayton wrote:
> 
> However, even if the limit was at commitment, this would 
> still limit throughput on Skylake since it can commit 
> four µops *per thread* per cycle (IIRC). The benefit of 
> this potential doubling of throughput would be reduced 
> if one thread could commit fewer µops because both threads 
> wanted to commit store-data µops.

I wonder how they commit 4 uOps per thread per cycle?
It makes sense as otherwise a non-commit by thread A could stall
commits by thread B as it would block the tail of the queue.
(and since stores don't actually happen until commit, could
allow thread A to stall B's stores).

But the thread uOps would be interleaved in a circular buffer.
They would have to be able to pick 2 sets of 4 arbitrary
locations out of that queue to test for commit and update.
They must have separate queue tails (oldest uOps pointer),
and would need 8 read-write ports just to address the
8 arbitrary instruction queue items for commit.
Sounds expensive.

Eric

[toc] | [prev] | [next] | [standalone]


#32252

From"Paul A. Clayton" <paaronclayton@gmail.com>
Date2015-12-28 19:23 -0800
Message-ID<d7bc0136-8181-496e-89bc-fd76de969429@googlegroups.com>
In reply to#32246
On Monday, December 28, 2015 at 3:10:32 PM UTC-5, EricP wrote:
> Paul A. Clayton wrote:
> > 
> > However, even if the limit was at commitment, this would 
> > still limit throughput on Skylake since it can commit 
> > four ľops *per thread* per cycle (IIRC). The benefit of 
> > this potential doubling of throughput would be reduced 
> > if one thread could commit fewer ľops because both threads 
> > wanted to commit store-data ľops.
> 
> I wonder how they commit 4 uOps per thread per cycle?
> It makes sense as otherwise a non-commit by thread A could stall
> commits by thread B as it would block the tail of the queue.
> (and since stores don't actually happen until commit, could
> allow thread A to stall B's stores).
> 
> But the thread uOps would be interleaved in a circular buffer.
> They would have to be able to pick 2 sets of 4 arbitrary
> locations out of that queue to test for commit and update.
> They must have separate queue tails (oldest uOps pointer),
> and would need 8 read-write ports just to address the
> 8 arbitrary instruction queue items for commit.
> Sounds expensive.

I would guess that the ROB is divided into chunks which 
are dynamically allocated. Such would facilitate banking 
optimizations at the modest extra cost of tracking 
chunk order (with smaller chunk-internal head and tail 
pointers) and modestly coarser granularity of allocation.

> 
> Eric

[toc] | [prev] | [next] | [standalone]


#32267

FromEricP <ThatWouldBeTelling@thevillage.com>
Date2015-12-29 14:21 -0500
Message-ID<B3Bgy.53728$TE6.416@fx41.iad>
In reply to#32252
Paul A. Clayton wrote:
> On Monday, December 28, 2015 at 3:10:32 PM UTC-5, EricP wrote:
>> Paul A. Clayton wrote:
>>> However, even if the limit was at commitment, this would 
>>> still limit throughput on Skylake since it can commit 
>>> four ľops *per thread* per cycle (IIRC). The benefit of 
>>> this potential doubling of throughput would be reduced 
>>> if one thread could commit fewer ľops because both threads 
>>> wanted to commit store-data ľops.
>> I wonder how they commit 4 uOps per thread per cycle?
>> It makes sense as otherwise a non-commit by thread A could stall
>> commits by thread B as it would block the tail of the queue.
>> (and since stores don't actually happen until commit, could
>> allow thread A to stall B's stores).
>>
>> But the thread uOps would be interleaved in a circular buffer.
>> They would have to be able to pick 2 sets of 4 arbitrary
>> locations out of that queue to test for commit and update.
>> They must have separate queue tails (oldest uOps pointer),
>> and would need 8 read-write ports just to address the
>> 8 arbitrary instruction queue items for commit.
>> Sounds expensive.
> 
> I would guess that the ROB is divided into chunks which 
> are dynamically allocated. Such would facilitate banking 
> optimizations at the modest extra cost of tracking 
> chunk order (with smaller chunk-internal head and tail 
> pointers) and modestly coarser granularity of allocation.

Or maybe separate the uOps in the common ROB instruction queue
into two parts: a trackOp used for tracking the life of
each threads' instructions, and an instruction instrOp
used for dispatching instructions to function units.

Then we have 2 trackOp queues, one for each thread,
and a single instrOp queue for the functional unit commands.
That leaves each trackOp queue in serial order for commit in its
trackOp queue. The instrOp's are dispatched OoO from their queue,
and on complete mark their associated trackOp "done".
The committer moves the tail of the trackOp queue ahead when they
are done and recovers its space. A scavenger machine can serially
recover "done" instrOp's from their queue.

  ThreadADecode            ThreadBDecode
        |--------->|<------------|
        v          v             v
   TrackQueueA->InstQueue <-TrackQueueB
        ^          ^             ^
        |          |             |
     CommitA    Scavenge      CommitB

Because space in each queue is recovered serially, each should
only require 1 read-write port for that function to select the
tail (oldest) slot plus the next 3 sequential slots after it
(which should just take wires and glue logic).

Eric

[toc] | [prev] | [next] | [standalone]


#32423

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2016-01-02 14:43 +0000
Message-ID<2016Jan2.154340@mips.complang.tuwien.ac.at>
In reply to#32230
"Paul A. Clayton" <paaronclayton@gmail.com> writes:
>On Monday, December 28, 2015 at 4:09:36 AM UTC-5, Anton Ertl wrote:
>From a brief look at the microarchitectural improvements=20
>for Skylake, most would benefit single-thread performance=20
>more than SMT performance,

Well, on the few benchmarks I have run yet the 6700K (Skylake 4GHz)
does not provide better single-thread performance than the 4790K
(Haswell 4GHz).

> exceptions being the independent=20
>per thread retirement, more execution units, the greater=20
>=B5ops per cycle for decode, and the parallel page table walking.

Yes; I was thinking particularly about the independent per-thread
scheduling stuff (don't remember if it was retirement or something
else).

>Better branch prediction generally helps single-threaded code=20
>disproportionately. Likewise the larger out-of-order window.

Not sure about that.  I expect that a larger out-of-order window
benefits SMT more than single threads, because the single thread is
farther into diminishing-returns country.

Not sure how better branch prediction helps single-threaded code more,
except maybe that a misprediction may hurt SMT less, if the other
thread can make use of resources while the first thread is working on
instruction fetching from the new branch target; but even that is not
sure, because it would require that the branch unit informs all of the
instructions in flight right away that they are no longer needed; I
expect that this does not happen, and instead the instructions
continue to consume resources happily until they arrive at retirement
and are finally thrown away.

Ok, another way in which mispredictions may hurt SMT less is by not
advancing each thread so deep into speculative territory.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html

[toc] | [prev] | [next] | [standalone]


#32431

FromStephen Fuld <SFuld@alumni.cmu.edu.invalid>
Date2016-01-02 09:32 -0800
Message-ID<n691ea$f0d$1@dont-email.me>
In reply to#32423
On 1/2/2016 6:43 AM, Anton Ertl wrote:
> "Paul A. Clayton" <paaronclayton@gmail.com> writes:
>> On Monday, December 28, 2015 at 4:09:36 AM UTC-5, Anton Ertl wrote:
>>From a brief look at the microarchitectural improvements=20
>> for Skylake, most would benefit single-thread performance=20
>> more than SMT performance,
>
> Well, on the few benchmarks I have run yet the 6700K (Skylake 4GHz)
> does not provide better single-thread performance than the 4790K
> (Haswell 4GHz).

Interesting.  Does the Skylake use DDR3 or DDR4 memory?


-- 
  - Stephen Fuld
(e-mail address disguised to prevent spam)

[toc] | [prev] | [next] | [standalone]


#32435

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2016-01-02 18:45 +0000
Message-ID<2016Jan2.194501@mips.complang.tuwien.ac.at>
In reply to#32431
Stephen Fuld <SFuld@alumni.cmu.edu.invalid> writes:
>On 1/2/2016 6:43 AM, Anton Ertl wrote:
>> "Paul A. Clayton" <paaronclayton@gmail.com> writes:
>>> On Monday, December 28, 2015 at 4:09:36 AM UTC-5, Anton Ertl wrote:
>>>From a brief look at the microarchitectural improvements=20
>>> for Skylake, most would benefit single-thread performance=20
>>> more than SMT performance,
>>
>> Well, on the few benchmarks I have run yet the 6700K (Skylake 4GHz)
>> does not provide better single-thread performance than the 4790K
>> (Haswell 4GHz).
>
>Interesting.  Does the Skylake use DDR3 or DDR4 memory?

DDR4, but these benchmarks did not exercise the memory subsystem much.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html

[toc] | [prev] | [next] | [standalone]


#32276

FromMitchAlsup <MitchAlsup@aol.com>
Date2015-12-29 15:58 -0800
Message-ID<46faf5ed-6dec-4c8a-b126-f517594d2284@googlegroups.com>
In reply to#32223
On Monday, December 28, 2015 at 3:09:36 AM UTC-6, Anton Ertl wrote:

> So for this benchmark, SMT buys only a factor 1.12 

I am continually amazed that anyone thinks that hyperthreading buys 
much at all, or can buy much, or ever will. The fact is that memory
is the bottleneck, not the CPU.

[toc] | [prev] | [next] | [standalone]


#32277

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-29 17:17 -0800
Message-ID<a9110c63-9435-41a8-8ebf-867b7834e6db@googlegroups.com>
In reply to#32276
On Tuesday, December 29, 2015 at 4:58:43 PM UTC-7, MitchAlsup wrote:
> On Monday, December 28, 2015 at 3:09:36 AM UTC-6, Anton Ertl wrote:
> 
> > So for this benchmark, SMT buys only a factor 1.12 
> 
> I am continually amazed that anyone thinks that hyperthreading buys 
> much at all, or can buy much, or ever will. The fact is that memory
> is the bottleneck, not the CPU.

Yes, memory is a horrible bottleneck.

But there's this thing called "cache", which apparently works quite well.

And multithreading helps make effective use of pipelined processors. Unlike 
out-of-order execution, if you've *got* another thread available, it's just 
about guaranteed to provide additional throughput.

John Savard

[toc] | [prev] | [next] | [standalone]


#32279

FromIvan Godard <ivan@millcomputing.com>
Date2015-12-29 17:56 -0800
Message-ID<n5vdej$ilm$1@dont-email.me>
In reply to#32277
On 12/29/2015 5:17 PM, Quadibloc wrote:
> On Tuesday, December 29, 2015 at 4:58:43 PM UTC-7, MitchAlsup wrote:
>> On Monday, December 28, 2015 at 3:09:36 AM UTC-6, Anton Ertl wrote:
>>
>>> So for this benchmark, SMT buys only a factor 1.12
>>
>> I am continually amazed that anyone thinks that hyperthreading buys
>> much at all, or can buy much, or ever will. The fact is that memory
>> is the bottleneck, not the CPU.
>
> Yes, memory is a horrible bottleneck.
>
> But there's this thing called "cache", which apparently works quite well.
>
> And multithreading helps make effective use of pipelined processors. Unlike
> out-of-order execution, if you've *got* another thread available, it's just
> about guaranteed to provide additional throughput.

You'd think so, wouldn't you? And for sure that's the way it's been sold.

Turns out not to be true in general, and only true in specific for 
certain kinds of loads. Anton's numbers are typical of many. MT seems to 
pay when there is a large number of unavoidable LLC misses, so the core 
is stalling on DRAM all the time; an example is large scale transaction 
processing where the data is many times larger than cache and is 
effectively random accessed. An important load to be sure, but not the 
kind of loads most of us see every day.

The problem with SMT is the top level caches, both code and data. The 
extra threads tend to have combined working sets that thrash in the TLC. 
By the time the DRAM load of thread 1 comes back, thread 2 has evicted 
what thread 1 is going to need next. Meanwhile, everybody pays for the 
core complexity that MT introduces.

This has nothing to do with pipelining or OOO. And nothing to do with 
mantissa sizes either. Mill is pipelined and in-order-issue, and we 
think that the area and power is best spent on more cores (with private 
caches) rather than more threads. This conclusion is despite the fact 
that the Mill has much denser code and double the icache of other 
architectures, and hence is less subject to icache thrashing.

This isn't religion; there's nothing in a Mill that precludes 
multithreading, and if we have a market in which it pays then we'll use 
it. But we don't expect to see it until we are competing with Big Iron.

[toc] | [prev] | [next] | [standalone]


#32280

FromQuadibloc <jsavard@ecn.ab.ca>
Date2015-12-29 20:06 -0800
Message-ID<b4e37494-fdbf-400d-a7b3-a3a5d7c11ffe@googlegroups.com>
In reply to#32279
On Tuesday, December 29, 2015 at 6:56:02 PM UTC-7, Ivan Godard wrote:

> The problem with SMT is the top level caches, both code and data. The 
> extra threads tend to have combined working sets that thrash in the TLC. 
> By the time the DRAM load of thread 1 comes back, thread 2 has evicted 
> what thread 1 is going to need next.

I can believe that multiple threads or multiple cores can require too large a 
working set to fit in the available cache.

But the way you describe it here is confusing to me. It makes me picture the 
situation in a normal single-thread computer where different processes get 
control of the computer for a while - until the request I/O, or, if they're 
compute-bound, until the next real-time clock interrupt.

But with multithreading, the processor alternates between threads on every 
cycle.

Of course, if one thread takes many cycles to do something - such as for a read 
to complete - the other thread has many cycles to do its work, and thus to need 
things of its own.

However, in the time it takes for a read to complete in one thread, the other 
thread only had time to do one read itself, and so either the cache is very 
small, or the chance of this happening should be small.

No doubt I'm misunderstanding you again.

John Savard

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.arch


csiph-web