• Re: Very Depressing Video

    From BGB@cr88192@gmail.com to comp.arch on Sun Nov 22 16:34:12 2026
    From Newsgroup: comp.arch

    On 11/22/2026 8:04 AM, John Savard wrote:
    On Fri, 20 Nov 2026 00:38:48 GMT, quadibloc@invalid.com (John Savard)
    wrote:

    The bad news... although it's the fastest RISC-V currently generally
    available, it's far slower than modern commodity hardware using
    popular architectures like x86 and ARM.

    Another video I encountered about this board says the speed is
    comparable to a Core 2 Duo. Since that's already an OoO chip, I feel
    less bad, but I still did regard the video as bad news because of what
    it seemed to say about the prospects for Concertina III.


    Probably true.


    That said, excluding things like excessive paging or similar (and
    limited number of cores), a typical "Core 2 Duo" isn't that much slower
    than the newer hardware.

    Like, at pure CPU benchmarks, a late 2000s "Merom-2M" or "Xeon E5410"
    isn't all that much slower than a Xen+, more so if normalizing for
    clock-speed (like, much of the observed CPU-bound speed difference being attributable to 3700 MHz vs 1800 or 1333 MHz).

    Well, and even then, it wasn't until my current PC that my main PC could consistently beat the old E5410 (my prior FX-8350 would still loose to
    the E5410 on some tests, despite the E5410's lower clock speed).


    They "Kaby Lake" based CPU in a newer cheap laptop is also a pretty
    solid contender, but also not wildly faster.

    Curiously, said laptop is also faster than my Xen+ based main PC in some cases, but slower in others. My main PC still holds up better under load though, mostly due to having a whole lot more RAM (and, when the 112GB
    of RAM falls short, there is around 344GB of pagefile as backup).


    To some extent though, does seem like much of the claimed performance
    gains of the past 20 years are mostly an illusion though. Most of what
    exists due more to "more and faster RAM" than due to the CPUs themselves actually getting all that much faster. Like, the 2000s era computers
    didn't have slow CPUs, they had a small amount of slow RAM (and people
    then blamed the CPU for the RAM's deficiencies).

    People can disagree, but this is just what my experience seems to suggest.

    ...



    In my case...

    I have for a long time been stuck within the effective general
    performance limits somewhere between a 486 and Pentium 1, with some
    edge-cases where it somewhat exceeds this.

    It is not going to be significantly faster, absent adoption by a company making actual chips, and even then limited by what that technology can produce.

    Well, with a margin of potential 30-60% speedup vs plain RV64G, but the
    high probability that these gains will be less on an OoO chip than on in-order, because an OoO will likely be able to hide much of the latency
    from inefficient multi-instruction sequences.


    I could make it faster in an emulator, yes, but alas.
    In both cases, running either XG3 or RV64G in an emulator on another CPU
    will be faster than running on the "actual hardware" that can exist.


    Well, it is sort of like "fast ARM64" devices exist, but ironically:
    Cheaper device: ARM64, but not particularly fast
    (vs a desktop PC or similar);
    Faster device:
    A cheapish PC on wins perf/$ vs high-end ARM64 HW.
    Even with as much as PC hardware costs at this point.

    ...


    John Savard

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From quadibloc@quadibloc@invalid.com (John Savard) to comp.arch on Mon Nov 23 01:04:07 2026
    From Newsgroup: comp.arch

    On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:

    To some extent though, does seem like much of the claimed performance
    gains of the past 20 years are mostly an illusion though. Most of what >exists due more to "more and faster RAM" than due to the CPUs themselves >actually getting all that much faster. Like, the 2000s era computers
    didn't have slow CPUs, they had a small amount of slow RAM (and people
    then blamed the CPU for the RAM's deficiencies).

    People can disagree, but this is just what my experience seems to suggest.

    You are correct that ever since Dennart scaling died, CPUs haven't
    been getting faster by leaps and bounds the way they used to. Still,
    in addition to more RAM, there have still been...

    small incremental improvements in clock speed with scaling,
    more cores,
    more cache,
    more aggressive out-of-order execution

    Since Core 2 Duo was the revival of the Pentium 3 after the death of
    Dennard scaling took the Pentium 4 with it, indeed it is squarely in
    the period during which improvement was slow.

    Still, the reviewer claimed that in no way could a modern A-list game
    be successfully ported to this RISC-V setup, it just didn't have the
    power. So presumably there was some difference.

    John Savard
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From MitchAlsup@user5857@newsgrouper.org.invalid to comp.arch on Mon Nov 23 18:45:38 2026
    From Newsgroup: comp.arch

    quadibloc@invalid.com (John Savard) posted:

    On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:

    To some extent though, does seem like much of the claimed performance >gains of the past 20 years are mostly an illusion though. Most of what >exists due more to "more and faster RAM" than due to the CPUs themselves >actually getting all that much faster. Like, the 2000s era computers >didn't have slow CPUs, they had a small amount of slow RAM (and people >then blamed the CPU for the RAM's deficiencies).

    People can disagree, but this is just what my experience seems to suggest.

    You are correct that ever since Dennart scaling died, CPUs haven't
    been getting faster by leaps and bounds the way they used to. Still,
    in addition to more RAM, there have still been...

    small incremental improvements in clock speed with scaling,
    more cores,
    more cache,
    more aggressive out-of-order execution

    Since Core 2 Duo was the revival of the Pentium 3 after the death of
    Dennard scaling took the Pentium 4 with it, indeed it is squarely in
    the period during which improvement was slow.

    Power consumption killed P4

    Still, the reviewer claimed that in no way could a modern A-list game
    be successfully ported to this RISC-V setup, it just didn't have the
    power. So presumably there was some difference.

    John Savard
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From EricP@ThatWouldBeTelling@thevillage.com to comp.arch on Mon Nov 23 15:13:30 2026
    From Newsgroup: comp.arch

    On 2026-Nov-23 13:45, MitchAlsup wrote:
    quadibloc@invalid.com (John Savard) posted:

    On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:

    To some extent though, does seem like much of the claimed performance
    gains of the past 20 years are mostly an illusion though. Most of what
    exists due more to "more and faster RAM" than due to the CPUs themselves >>> actually getting all that much faster. Like, the 2000s era computers
    didn't have slow CPUs, they had a small amount of slow RAM (and people
    then blamed the CPU for the RAM's deficiencies).

    People can disagree, but this is just what my experience seems to suggest. >>
    You are correct that ever since Dennart scaling died, CPUs haven't
    been getting faster by leaps and bounds the way they used to. Still,
    in addition to more RAM, there have still been...

    small incremental improvements in clock speed with scaling,
    more cores,
    more cache,
    more aggressive out-of-order execution

    Since Core 2 Duo was the revival of the Pentium 3 after the death of
    Dennard scaling took the Pentium 4 with it, indeed it is squarely in
    the period during which improvement was slow.

    Power consumption killed P4

    It was my understanding that one cause was a replay cyclone
    where a missed schedule for one instruction would trigger
    all the following instructions to replay over and over.
    One cause of the missed schedule was because the clock was
    so fast it had a pipelined scheduler, and this meant it
    had to predict when to launch a uOp so that it would
    arrive at its FU at the proper time, including transit
    latency across the chip. If it predicts wrong then the
    uOp arrives too early or late, and triggers the replay loop.

    Replay: Unknown Features of the NetBurst Core, 2005 https://web.archive.org/web/20160306140603/http://www.xbitlabs.com/articles/cpu/print/replay.html

    Rather than a monolithic, complex, pipelined scheduler, in my simulated
    uArch I went for a design with simple distributed schedulers located
    beside each FU. This appears to be the design that many have adopted.

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From MitchAlsup@user5857@newsgrouper.org.invalid to comp.arch on Mon Nov 23 20:50:37 2026
    From Newsgroup: comp.arch

    EricP <ThatWouldBeTelling@thevillage.com> posted:

    On 2026-Nov-23 13:45, MitchAlsup wrote:
    quadibloc@invalid.com (John Savard) posted:

    On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:

    To some extent though, does seem like much of the claimed performance
    gains of the past 20 years are mostly an illusion though. Most of what >>> exists due more to "more and faster RAM" than due to the CPUs themselves >>> actually getting all that much faster. Like, the 2000s era computers
    didn't have slow CPUs, they had a small amount of slow RAM (and people >>> then blamed the CPU for the RAM's deficiencies).

    People can disagree, but this is just what my experience seems to suggest.

    You are correct that ever since Dennart scaling died, CPUs haven't
    been getting faster by leaps and bounds the way they used to. Still,
    in addition to more RAM, there have still been...

    small incremental improvements in clock speed with scaling,
    more cores,
    more cache,
    more aggressive out-of-order execution

    Since Core 2 Duo was the revival of the Pentium 3 after the death of
    Dennard scaling took the Pentium 4 with it, indeed it is squarely in
    the period during which improvement was slow.

    Power consumption killed P4

    It was my understanding that one cause was a replay cyclone
    where a missed schedule for one instruction would trigger
    all the following instructions to replay over and over.

    I/we saw plenty of replay storms in K9.

    One cause of the missed schedule was because the clock was
    so fast it had a pipelined scheduler, and this meant it
    had to predict when to launch a uOp so that it would
    arrive at its FU at the proper time, including transit
    latency across the chip. If it predicts wrong then the
    uOp arrives too early or late, and triggers the replay loop.

    We used a 1-cycle integer section and a 2 cycle FP section.

    When the reservation station fired an integer instruction,
    a piece of the stored OpCode was used to "predict" that the
    execution would be 1 cycle, so the RS output was used as
    RS input tag on the subsequent cycle to achieve back-to-back
    integer operations at a target of 5 GHz in 35nm.

    The FP units were 1 cycle farther down the pipe, so a result
    was on the FP result bus in cycle n and on the integer result
    bus on cycle n+1. When consumed by a FP unit, it looked like
    back-to-back latency, when consumed in an integer unit it
    looked like 1-cycle of unexpected latency. Overall, since there
    were few FP->int sequences, it worked well. FP RS did not have
    to predict FP FU latency.

    In order to shrink FMUL, we found out that Athlon and Opteron
    Multiplier trees had a (2048±bit) flip-flop two 4-2 compressor
    stages before the final adder and those FFs were as big as the
    multiplier tree! So, in K9 we used 2 trees on even and odd clock
    cycles and the rest of FMUL was a standard FPU pipeline.

    Replay: Unknown Features of the NetBurst Core, 2005 https://web.archive.org/web/20160306140603/http://www.xbitlabs.com/articles/cpu/print/replay.html

    Rather than a monolithic, complex, pipelined scheduler, in my simulated
    uArch I went for a design with simple distributed schedulers located
    beside each FU. This appears to be the design that many have adopted.

    That is how all of my GBOoO machines have worked.

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From BGB@cr88192@gmail.com to comp.arch on Mon Nov 23 14:51:10 2026
    From Newsgroup: comp.arch

    On 11/22/2026 7:04 PM, John Savard wrote:
    On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:

    To some extent though, does seem like much of the claimed performance
    gains of the past 20 years are mostly an illusion though. Most of what
    exists due more to "more and faster RAM" than due to the CPUs themselves
    actually getting all that much faster. Like, the 2000s era computers
    didn't have slow CPUs, they had a small amount of slow RAM (and people
    then blamed the CPU for the RAM's deficiencies).

    People can disagree, but this is just what my experience seems to suggest.

    You are correct that ever since Dennart scaling died, CPUs haven't
    been getting faster by leaps and bounds the way they used to. Still,
    in addition to more RAM, there have still been...

    small incremental improvements in clock speed with scaling,
    more cores,
    more cache,
    more aggressive out-of-order execution


    Probably also true.


    I have noted that, for example, the speed of Zstd seems to vary widely depending on what hardware it runs on.

    So, there is something about these older CPUs that doesn't seem to work
    well, and is highly independent of the memcpy speeds. It also seems to
    perform comparably poorly on the RasPi's.

    On a lot of these targets, it gives performance slightly worse than
    zlib, but on new/high-end hardware sees a big jump and pulls
    significantly ahead of zlib. Where zlib also seems to follow a flatter
    curve more directly tied to CPU clock speed (and not so much based on
    the memcpy curve).

    This leaves it as a bit on an oddity (may need investigation).
    In any case though, Zstd does beat zlib on compression ratio.

    Just sort of a mystery why it would seemingly follow the CPU speed curve
    on older machines (with ~ zlib performance), then suddenly jump up
    closer to the "actually fast" byte-based LZ compressors, but only on newer/fancier hardware.


    Well, so seemingly something significant happened...
    But, only for certain types of programs.



    I have not tested my RP2 Huffman post-compressor on the Merom or
    Athlon-XP, it is possible that it might crash into the same wall as Zstd
    on these, as its use of a 4-way interleaved Huffman decoding strategy is vaguely similar to the approach used by Zstd.

    Where, say, one interleaves 4 streams of Huffman coded symbols, and then decodes 4 symbols in a row from each stream, for 16 symbols per loop iteration.

    So, seemingly, something changed between ~ 2010-2015 or so (with Intel
    and AMD), that led to a fairly sudden jump in Zstd speeds; but with
    relatively modest effects to other areas.



    The speed curve for LZ4 is much flatter, but across all of the Intel
    style CPUs, LZ4 is fast and scales roughly with memcpy speed.

    Similar with RP2 (mostly follows a similar curve to LZ4 here).


    LZ4 seems to take a comparably larger (relative) performance hit on AMD hardware in general, and on particularly on older AMD hardware.

    Say, for decode speed:
    Xen+: LZ4 and RP2 are tied
    Kaby Lake: LZ4 wins
    Merom and E5410: LZ4 wins
    Piledriver and Athlon XP: RP2 wins
    XG2 / XG3: RP2 wins.

    Though, speed is usually close enough to be more decided based on ratio,
    but as noted:
    RP2 tends to win on ratio for general data compression;
    LZ4 tends to win on ratio for machine-code.

    So, RP2 did not displace LZ4 in the case of compressing PE/COFF images.



    Had noted, that there seems to be a machine-dependent thing on the
    relative speed of the method used for copying a sequence of
    self-overlapping bytes.

    Branch/shift method:
    if(d==1)
    {
    tv=((byte *)dst)[-1];
    tv|=tv<<8;
    tv|=tv<<16;
    tv|=tv<<32;
    ((u64 *)dst)[0]=tv;
    ((u64 *)dst)[1]=tv;
    }else if(d==2)
    {
    tv=((u16 *)dst)[-1];
    tv|=tv<<16;
    tv|=tv<<32;
    ((u64 *)dst)[0]=tv;
    ((u64 *)dst)[1]=tv;
    }else
    ...
    Vs, raw byte-copy method:
    src=dst-d;
    dst[0]=src[0];
    dst[1]=src[1];
    dst[2]=src[2];
    dst[3]=src[3];
    dst[4]=src[4];
    dst[5]=src[5];
    dst[6]=src[6];
    dst[7]=src[7];
    ...

    On most of the targets, the former is significantly faster, but
    seemingly on the Intel side, the naive raw byte-copy method sees a large
    boost (and so is not quite so slow in comparison).


    Can note that on Piledriver, it was preferable to avoid misaligned
    access whenever possible, and for copy loops, to instead use shifting
    and masking to fake misaligned bulk copies and similar.

    This approach was notably slower on pretty much everything not
    Piledriver; at least excluding a lot of the RISC-V SoC's where suddenly
    this approach looks attractive again (because the only other option is
    copying bytes one at a time, which also sucks).



    In any case though, it seems like a comparably much more gradual curve
    than the orders of magnitude gains I had seen some people claim.

    And, many of the speedups that are seen, are difficult to fully separate
    from "More RAM, faster RAM".


    Since Core 2 Duo was the revival of the Pentium 3 after the death of
    Dennard scaling took the Pentium 4 with it, indeed it is squarely in
    the period during which improvement was slow.

    Still, the reviewer claimed that in no way could a modern A-list game
    be successfully ported to this RISC-V setup, it just didn't have the
    power. So presumably there was some difference.


    OK, I don't really play many modern AAA games, so I don't know there.


    I do know that neither of my older laptops can run Minecraft though, but
    this could be more due to the lack of RAM and old/weak graphics hardware.

    My own 3D engines held up a fair bit better though.


    John Savard

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From MitchAlsup@user5857@newsgrouper.org.invalid to comp.arch on Tue Nov 24 01:39:58 2026
    From Newsgroup: comp.arch

    BGB <cr88192@gmail.com> posted:

    On 11/22/2026 7:04 PM, John Savard wrote:
    On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:

    To some extent though, does seem like much of the claimed performance
    gains of the past 20 years are mostly an illusion though. Most of what
    exists due more to "more and faster RAM" than due to the CPUs themselves >> actually getting all that much faster. Like, the 2000s era computers
    didn't have slow CPUs, they had a small amount of slow RAM (and people
    then blamed the CPU for the RAM's deficiencies).

    To be fair, we blamed the system.

    People can disagree, but this is just what my experience seems to suggest.

    You are correct that ever since Dennart scaling died, CPUs haven't
    been getting faster by leaps and bounds the way they used to. Still,
    in addition to more RAM, there have still been...

    small incremental improvements in clock speed with scaling,
    more cores,
    more cache,
    more aggressive out-of-order execution
    ------------
    Had noted, that there seems to be a machine-dependent thing on the
    relative speed of the method used for copying a sequence of
    self-overlapping bytes.

    Branch/shift method:
    if(d==1)
    {
    tv=((byte *)dst)[-1];
    tv|=tv<<8;
    tv|=tv<<16;
    tv|=tv<<32;
    ((u64 *)dst)[0]=tv;
    ((u64 *)dst)[1]=tv;
    }else if(d==2)
    {
    tv=((u16 *)dst)[-1];
    tv|=tv<<16;
    tv|=tv<<32;
    ((u64 *)dst)[0]=tv;
    ((u64 *)dst)[1]=tv;
    }else
    ...
    Vs, raw byte-copy method:
    src=dst-d;
    dst[0]=src[0];
    dst[1]=src[1];
    dst[2]=src[2];
    dst[3]=src[3];
    dst[4]=src[4];
    dst[5]=src[5];
    dst[6]=src[6];
    dst[7]=src[7];
    ...

    On most of the targets, the former is significantly faster, but
    seemingly on the Intel side, the naive raw byte-copy method sees a large boost (and so is not quite so slow in comparison).

    When memcopy() is an instruction, small machines can run at cache-width,
    and large machines can run at cache-width × ports ...

    When memcopy is for(i = 0; i < count; i++ ) to[i] = from[i]; your vVM
    unit can run it at SIMD-widths {say 512-bits copied per cycle}.

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.arch on Tue Nov 24 02:25:58 2026
    From Newsgroup: comp.arch

    On Tue, 24 Nov 2026 01:39:58 GMT, MitchAlsup wrote:

    When memcopy() is an instruction, small machines can run at
    cache-width, and large machines can run at cache-width × ports ...

    When memcopy is for(i = 0; i < count; i++ ) to[i] = from[i]; your
    vVM unit can run it at SIMD-widths {say 512-bits copied per cycle}.

    Do SIMD instructions have access to wider or faster memory channels
    than regular CPU instructions do?
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From BGB@cr88192@gmail.com to comp.arch on Mon Nov 23 22:28:04 2026
    From Newsgroup: comp.arch

    On 11/23/2026 7:39 PM, MitchAlsup wrote:
    BGB <cr88192@gmail.com> posted:

    On 11/22/2026 7:04 PM, John Savard wrote:
    On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:

    To some extent though, does seem like much of the claimed performance
    gains of the past 20 years are mostly an illusion though. Most of what >>>> exists due more to "more and faster RAM" than due to the CPUs themselves >>>> actually getting all that much faster. Like, the 2000s era computers
    didn't have slow CPUs, they had a small amount of slow RAM (and people >>>> then blamed the CPU for the RAM's deficiencies).

    To be fair, we blamed the system.


    Blaming the whole system is a bit too coarse grained...

    Like, there is no denying, say, that 20+ year old laptops are "not
    exactly fast".

    But, the question is more what part in particular makes the 20 year old
    laptop slow...

    Many act like it is solely a CPU thing, I suspect it is not.



    People can disagree, but this is just what my experience seems to suggest. >>>
    You are correct that ever since Dennart scaling died, CPUs haven't
    been getting faster by leaps and bounds the way they used to. Still,
    in addition to more RAM, there have still been...

    small incremental improvements in clock speed with scaling,
    more cores,
    more cache,
    more aggressive out-of-order execution
    ------------
    Had noted, that there seems to be a machine-dependent thing on the
    relative speed of the method used for copying a sequence of
    self-overlapping bytes.

    Branch/shift method:
    if(d==1)
    {
    tv=((byte *)dst)[-1];
    tv|=tv<<8;
    tv|=tv<<16;
    tv|=tv<<32;
    ((u64 *)dst)[0]=tv;
    ((u64 *)dst)[1]=tv;
    }else if(d==2)
    {
    tv=((u16 *)dst)[-1];
    tv|=tv<<16;
    tv|=tv<<32;
    ((u64 *)dst)[0]=tv;
    ((u64 *)dst)[1]=tv;
    }else
    ...
    Vs, raw byte-copy method:
    src=dst-d;
    dst[0]=src[0];
    dst[1]=src[1];
    dst[2]=src[2];
    dst[3]=src[3];
    dst[4]=src[4];
    dst[5]=src[5];
    dst[6]=src[6];
    dst[7]=src[7];
    ...

    On most of the targets, the former is significantly faster, but
    seemingly on the Intel side, the naive raw byte-copy method sees a large
    boost (and so is not quite so slow in comparison).

    When memcopy() is an instruction, small machines can run at cache-width,
    and large machines can run at cache-width × ports ...

    When memcopy is for(i = 0; i < count; i++ ) to[i] = from[i]; your vVM
    unit can run it at SIMD-widths {say 512-bits copied per cycle}.


    I would think you would need something special to handle self-overlap /
    RLE cases though.

    Could maybe be useful if there were SIMD instructions to help with self-overlapping RLE.



    If it behaves like a "memmove()", this can work for many use-cases, but
    is not what is typically needed for an LZ decompressor.


    Well, there are different ways to do things, but this was more
    specifically about self-overlapping LZ copies, say:
    Most copies are ~ 4-16 bytes;
    Can almost specialize the "16 bytes or less" into its own category.
    For speed, can allow all copies to be padded up;
    Say, up to next multiple of 16, with up to 31 bytes of "stomp";
    Copying an exact number of bytes comes with a large penalty.
    With an a skew of distance probabilities (less than 8 bytes).
    Most to least common: 1, 2, 4, 3, 5, 6, 7
    Only applicable when dist<sz.
    Else:
    Just use the short-match non-overlap-copy case.

    Then a question of, what is the fastest way to deal with them.

    The most canonical answer might be:
    for(i=0; i<sz; i++)
    dst[i]=src[i];
    But, this is also the slowest.

    Some might unroll, and be like "branches are evil", but it is still slow.



    If/else is still imperfect, but seemingly the lesser evil, if organized roughly according to the probability distribution.

    Idea is, say, to pull out 1/2/4 first, then deal with 3/5/6/7 with a
    binary tree structure, say:
    if(d<6)
    {
    if(d==3)
    { ... 3 }
    else
    { ... 5 }
    }else
    {
    if(d==6)
    { ... 6 }
    else
    { ... 7 }
    }


    Which is, kinda bulky and ugly, but also works reasonably well at self-overlapping copies.

    Could "switch()" but switch is usually slower in this case.

    In this case, the switch will typically compile into the equivalent of:
    if(d==1) goto case_1;
    if(d==2) goto case_2;
    if(d==3) goto case_3;
    ...

    Some experiments had noted fastest patters were typically:
    1/2/4: Same basic pattern from prior post.
    3: Mask off low 24 bits, OR onto itself, then 3 stores at 6-byte stepping; 5/6/7: Load 64 bits, then do multiple stores to fill the 16-bytes.


    Though, more specifically, this is what was typically fastest on my main
    PC in my testing.


    For short non-overlap copy, can do, say:
    tv0=((u64 *)src)[0];
    tv1=((u64 *)src)[1];
    ((u64 *)dst)[0]=tv0;
    ((u64 *)dst)[1]=tv1;

    ...


    I guess the relevant question would be how much a lot of this stuff is
    likely to differ from one machine to another.

    Or, if there are actually machines where "just use a linear sequence of
    byte loads/stores is fastest".


    There are also possible variants to be friendly to machines which use aligned-only loads/stores, but this is a level of "dark magic" I am less inclined to write out in a post... Or accept the hit and fall back to
    loading and storing individual bytes.


    I guess, related to this:
    How would someone try to implement something like LZ4 decompression semi-efficiently on a CPU like the original form of the DEC Alpha?...

    ...


    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From BGB@cr88192@gmail.com to comp.arch on Mon Nov 23 23:07:53 2026
    From Newsgroup: comp.arch

    On 11/23/2026 8:25 PM, Lawrence D’Oliveiro wrote:
    On Tue, 24 Nov 2026 01:39:58 GMT, MitchAlsup wrote:

    When memcopy() is an instruction, small machines can run at
    cache-width, and large machines can run at cache-width × ports ...

    When memcopy is for(i = 0; i < count; i++ ) to[i] = from[i]; your
    vVM unit can run it at SIMD-widths {say 512-bits copied per cycle}.

    Do SIMD instructions have access to wider or faster memory channels
    than regular CPU instructions do?

    This would depend a lot on the target.


    Can note that in my current CPU core:
    64-bit loads/stores are freely misaligned.
    128-bit loads/stores normally require a 64-bit alignment.
    A misaligned variant is possible, but has a higher resource cost.
    So, HW support for misaligned 128-bit is assumed optional.

    Though, in this case, it is partly because the free 64-bit load/store
    works in terms of an internal 128-bit window for extract/insert, and the cheapest way to do 128-bit load/store is simply to bypass the
    extract/insert part.

    Meanwhile, misaligned 128-bit effectively requires working with a
    256-bit window internally.

    Though, in this case, its primary use is as a load/store pair
    instruction for function prologs/epilogs, with SIMD use as secondary.

    There are not currently any wider paths available.


    In my case, the internal ringbus in my designs was 128-bit wide.

    This is an uncommon approach though, more popular in the FPGA space
    being to use 32 or 64-bit wide FIFO-driven hub-and-spoke busses.

    Where, say, the CPU sends requests to read/write 32-bits at a time from
    a given address. Then people try to prioritize minimizing
    request/response latency over said bus (because otherwise, it sucks).

    As noted, I took a different approach:
    128 bits data + address + control tags.

    Then messages move along the but at one position per clock cycle, and components deal with messages that apply to them (removing messages,
    replacing them with a response, or adding new messages during "idle" slots).

    Then there were a few "shortcut paths" or "pinches" to reduce average
    case latency by avoiding sending through parts of the ring they don't
    need to travel through.


    From some past things I had seen, it seemed also both Intel and IBM had
    used similar bus designs in their CPUs.

    Though, usually they had used two counter-rotating rings rather than a
    single ring (say, a request ring traveling one way, and a response ring traveling the other), but two rings would cost more than one ring.


    Well, rather than being like:
    Well, imma request 32 bits from this address;
    Now I wait for a response to come back;
    Now, request 32-bits from the next address;
    And wait for the response;
    ...

    Or they get fancy and allow for sequential bursts with flow-rate-control signaling.


    I don't feel that bad about going against the trend here.


    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Terje Mathisen@terje.mathisen@tmsw.no to comp.arch on Wed Nov 25 12:31:32 2026
    From Newsgroup: comp.arch

    MitchAlsup wrote:
    quadibloc@invalid.com (John Savard) posted:

    On Sun, 22 Nov 2026 16:34:12 -0600, BGB <cr88192@gmail.com> wrote:

    To some extent though, does seem like much of the claimed performance
    gains of the past 20 years are mostly an illusion though. Most of what
    exists due more to "more and faster RAM" than due to the CPUs themselves >>> actually getting all that much faster. Like, the 2000s era computers
    didn't have slow CPUs, they had a small amount of slow RAM (and people
    then blamed the CPU for the RAM's deficiencies).

    People can disagree, but this is just what my experience seems to suggest. >>
    You are correct that ever since Dennart scaling died, CPUs haven't
    been getting faster by leaps and bounds the way they used to. Still,
    in addition to more RAM, there have still been...

    small incremental improvements in clock speed with scaling,
    more cores,
    more cache,
    more aggressive out-of-order execution

    Since Core 2 Duo was the revival of the Pentium 3 after the death of
    Dennard scaling took the Pentium 4 with it, indeed it is squarely in
    the period during which improvement was slow.

    Power consumption killed P4

    Power consumption was probably the final nail in the coffin.

    IMHO the fact that they broke both shifts and integer MUL in their quest
    for double-speed inner core meant that a lot of code which needed
    complicated addressing, like multi-dimensional array access without dope vectors, suffered quite badly.

    Also, every switch between a sequence of inner core double-speed opcodes
    and anything else caused a significant bubble. (Probably also adding to
    the power drain?)

    Terje
    --
    - <Terje.Mathisen at tmsw.no>
    "almost all programming can be viewed as an exercise in caching"
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From anton@anton@mips.complang.tuwien.ac.at (Anton Ertl) to comp.arch on Wed Nov 25 12:54:03 2026
    From Newsgroup: comp.arch

    Terje Mathisen <terje.mathisen@tmsw.no> writes:
    MitchAlsup wrote:
    Power consumption killed P4

    Power consumption was probably the final nail in the coffin.

    If the Pentium 4 had had the IPC of the Pentium III or better, as the
    designers probably expected when they threw that much hardware at it*,
    the Power consumption would have been considered acceptable; or the
    design could have been sold at a lower clock (and lower power
    consumption), and still would have had leading performance. And
    compared to recent Intel CPUs with their power limit of 250W
    (short-time) and 125W (permanent), the worst Pentium 4 with its 115W
    looks almost frugal.

    So what killed the Pentium 4 IMO was the low IPC, apparently coming
    from replay storms.

    * E.g., The Pentium 4 Northwood has a 126-entry ROB while the
    Coppermine (Pentium III) has 40 ROB entries, and even the Penryn
    (after the Pentium 4) has 96.

    IMHO the fact that they broke both shifts and integer MUL in their quest
    for double-speed inner core meant that a lot of code which needed >complicated addressing, like multi-dimensional array access without dope >vectors, suffered quite badly.

    So it has some Achilles' heel in that area. But given that
    multiplications and also shifts have been expensive in earlier
    machines, most code avoids that anyway, and the code that cannot avoid
    it is not that frequent.

    Also, every switch between a sequence of inner core double-speed opcodes
    and anything else caused a significant bubble.

    This is the first time I read about that. And I have not seen it in
    my own measurements, but then, maybe I did not measure the right
    things. Can you elaborate: E.g., give a sequence, and explain how big
    the bubble for that sequence is.

    In any case, starting with Prescott, the double-clocked ALU gave way
    to a conventional ALU. The IPC was still not significantly better (or
    worse) than for the Willamette/Northwood Pentium 4s, so any bubble
    from swithing between the double-clocked ALU and the rest of the core apparently was not decisive.

    - anton
    --
    'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
    Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Terje Mathisen@terje.mathisen@tmsw.no to comp.arch on Wed Nov 25 16:03:08 2026
    From Newsgroup: comp.arch

    Anton Ertl wrote:
    Terje Mathisen <terje.mathisen@tmsw.no> writes:
    MitchAlsup wrote:
    Power consumption killed P4

    Power consumption was probably the final nail in the coffin.

    If the Pentium 4 had had the IPC of the Pentium III or better, as the designers probably expected when they threw that much hardware at it*,
    the Power consumption would have been considered acceptable; or the
    design could have been sold at a lower clock (and lower power
    consumption), and still would have had leading performance. And
    compared to recent Intel CPUs with their power limit of 250W
    (short-time) and 125W (permanent), the worst Pentium 4 with its 115W
    looks almost frugal.

    So what killed the Pentium 4 IMO was the low IPC, apparently coming
    from replay storms.

    * E.g., The Pentium 4 Northwood has a 126-entry ROB while the
    Coppermine (Pentium III) has 40 ROB entries, and even the Penryn
    (after the Pentium 4) has 96.

    IMHO the fact that they broke both shifts and integer MUL in their quest
    for double-speed inner core meant that a lot of code which needed
    complicated addressing, like multi-dimensional array access without dope
    vectors, suffered quite badly.

    So it has some Achilles' heel in that area. But given that
    multiplications and also shifts have been expensive in earlier
    machines, most code avoids that anyway, and the code that cannot avoid
    it is not that frequent.

    Also, every switch between a sequence of inner core double-speed opcodes
    and anything else caused a significant bubble.

    This is the first time I read about that. And I have not seen it in
    my own measurements, but then, maybe I did not measure the right
    things. Can you elaborate: E.g., give a sequence, and explain how big
    the bubble for that sequence is.

    I don't remember exactly, but believe it was on the order of 1-3
    (external) clock cycles either way. Even at the lower limit, this meant
    losing 4 double-clocked ops in overhead to execute a single slow opcode
    like SHR.

    All the fast opcodes did half the register (16 bits) in each half-cycle,
    so any instruction like shift right which needed access to the high bits before it could start had to wait for that before the full-size result
    could be sent out of the inner core, then do the intended instruction,
    then move the result back into the inner core.


    In any case, starting with Prescott, the double-clocked ALU gave way
    to a conventional ALU. The IPC was still not significantly better (or
    worse) than for the Willamette/Northwood Pentium 4s, so any bubble
    from swithing between the double-clocked ALU and the rest of the core apparently was not decisive.

    No, but simply needing more power for the same performance was a killer
    for anything which would eventually run in a laptop, or on a data center
    with total power & cooling limits.

    I'm perfectly willing to accept that replay storms was the actual/stated reason for giving up on the architecture.

    Terje
    --
    - <Terje.Mathisen at tmsw.no>
    "almost all programming can be viewed as an exercise in caching"
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From anton@anton@mips.complang.tuwien.ac.at (Anton Ertl) to comp.arch on Wed Nov 25 16:45:22 2026
    From Newsgroup: comp.arch

    Terje Mathisen <terje.mathisen@tmsw.no> writes:
    Anton Ertl wrote:
    Terje Mathisen <terje.mathisen@tmsw.no> writes:
    Also, every switch between a sequence of inner core double-speed opcodes >>> and anything else caused a significant bubble.

    This is the first time I read about that. And I have not seen it in
    my own measurements, but then, maybe I did not measure the right
    things. Can you elaborate: E.g., give a sequence, and explain how big
    the bubble for that sequence is.

    I don't remember exactly, but believe it was on the order of 1-3
    (external) clock cycles either way. Even at the lower limit, this meant >losing 4 double-clocked ops in overhead to execute a single slow opcode
    like SHR.

    AFAIK SHR was not just slow because it was not executed in the
    double-clocked ALU, but because it was executed in the mmxsh subunit
    according to Agner Fog's instruction tables. His tables list latency
    4+1 for shifts by immediate values and 6+0 for shifts by cl; the +1 or
    +0 happens if the execution unit of the next instruction is different
    from the current one.

    From what I read, shift and multiply shipped the operands over to
    functional units elsewhere (mmxsh in this case), losing a cycles or so
    each time a clock domain is crossed. So let's see how fast the MMX
    shifts are: An instruction like PSRLD with a mmx register operand and
    an immediate operand costs 2+1 cycles. So apparently shipping the GPR
    value over to the MMX shift unit costs 1 cycle there and 1 cycle back.
    For PSRLD xmm, xmm the cost is also 2+1; apparently SHR reg, CL has to
    do something extra.

    All the fast opcodes did half the register (16 bits) in each half-cycle,
    so any instruction like shift right which needed access to the high bits >before it could start had to wait for that before the full-size result
    could be sent out of the inner core, then do the intended instruction,
    then move the result back into the inner core.

    The most common instructions that are not in the double-speed ALU are
    loads, and for MOV r32,m Agner Fog lists 2+0 cycles of latency. For
    an ALU instruction like ADD r,r Agner Fog lists 0.5 + 0.5..1 cycles of
    latency.

    So for sequences of n repetitions of ADD r,r; MOV r,(r) the total
    latency is 3*n cycles.

    And for sequences of n repetitions of ADD r,r; ADD r,r; MOV r,(r) the
    total latency of n*4 cycles. Neither is worse than if there was no double-clocked ALU.

    Looking up Prescott (later Pentium 4s without double-clocked ALU and
    partially with AMD64 support) numbers, Agner Fog lists 1+0 cycles
    latency for SHR r32,imm and 2+0 for SHR r32,CL, and alu1 as the unit,
    so the integer ALU now can shift. ADD r,r has a latency of 1+0, and
    MOV r32,m has a latency of 2+0. So for Prescott these latencies are
    quite ok. What is strange is that the LEA latencies are listed as 2.5
    and 3.5.

    - anton
    --
    'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
    Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Terje Mathisen@terje.mathisen@tmsw.no to comp.arch on Wed Nov 25 22:07:26 2026
    From Newsgroup: comp.arch

    Anton Ertl wrote:
    Terje Mathisen <terje.mathisen@tmsw.no> writes:
    Anton Ertl wrote:
    Terje Mathisen <terje.mathisen@tmsw.no> writes:
    Also, every switch between a sequence of inner core double-speed opcodes >>>> and anything else caused a significant bubble.

    This is the first time I read about that. And I have not seen it in
    my own measurements, but then, maybe I did not measure the right
    things. Can you elaborate: E.g., give a sequence, and explain how big
    the bubble for that sequence is.

    I don't remember exactly, but believe it was on the order of 1-3
    (external) clock cycles either way. Even at the lower limit, this meant
    losing 4 double-clocked ops in overhead to execute a single slow opcode
    like SHR.

    AFAIK SHR was not just slow because it was not executed in the
    double-clocked ALU, but because it was executed in the mmxsh subunit according to Agner Fog's instruction tables. His tables list latency
    4+1 for shifts by immediate values and 6+0 for shifts by cl; the +1 or
    +0 happens if the execution unit of the next instruction is different
    from the current one.

    From what I read, shift and multiply shipped the operands over to
    functional units elsewhere (mmxsh in this case), losing a cycles or so
    each time a clock domain is crossed. So let's see how fast the MMX
    shifts are: An instruction like PSRLD with a mmx register operand and
    an immediate operand costs 2+1 cycles. So apparently shipping the GPR
    value over to the MMX shift unit costs 1 cycle there and 1 cycle back.
    For PSRLD xmm, xmm the cost is also 2+1; apparently SHR reg, CL has to
    do something extra.

    All the fast opcodes did half the register (16 bits) in each half-cycle,
    so any instruction like shift right which needed access to the high bits
    before it could start had to wait for that before the full-size result
    could be sent out of the inner core, then do the intended instruction,
    then move the result back into the inner core.

    The most common instructions that are not in the double-speed ALU are
    loads, and for MOV r32,m Agner Fog lists 2+0 cycles of latency. For
    an ALU instruction like ADD r,r Agner Fog lists 0.5 + 0.5..1 cycles of latency.

    So for sequences of n repetitions of ADD r,r; MOV r,(r) the total
    latency is 3*n cycles.

    And for sequences of n repetitions of ADD r,r; ADD r,r; MOV r,(r) the
    total latency of n*4 cycles. Neither is worse than if there was no double-clocked ALU.

    Looking up Prescott (later Pentium 4s without double-clocked ALU and partially with AMD64 support) numbers, Agner Fog lists 1+0 cycles
    latency for SHR r32,imm and 2+0 for SHR r32,CL, and alu1 as the unit,
    so the integer ALU now can shift. ADD r,r has a latency of 1+0, and
    MOV r32,m has a latency of 2+0. So for Prescott these latencies are
    quite ok. What is strange is that the LEA latencies are listed as 2.5
    and 3.5.

    Did I make a typo, or just didn't remember?

    You are correct, it was both MUL and LEA which got much slower at the
    same time, taking away most ways to calculate addresses quickly.

    Terje
    --
    - <Terje.Mathisen at tmsw.no>
    "almost all programming can be viewed as an exercise in caching"
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.arch on Wed Nov 25 21:38:26 2026
    From Newsgroup: comp.arch

    On Wed, 25 Nov 2026 12:31:32 +0100, Terje Mathisen wrote:

    Also, every switch between a sequence of inner core double-speed
    opcodes and anything else caused a significant bubble. (Probably
    also adding to the power drain?)

    The way I saw it, the Pentium 4 was like a race car built for sheer straight-line speed, even if that meant sacrificing maneouvrability on
    the corners. But real-world tracks aren’t built like that.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From MitchAlsup@user5857@newsgrouper.org.invalid to comp.arch on Wed Nov 25 22:04:39 2026
    From Newsgroup: comp.arch

    Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> posted:

    On Wed, 25 Nov 2026 12:31:32 +0100, Terje Mathisen wrote:

    Also, every switch between a sequence of inner core double-speed
    opcodes and anything else caused a significant bubble. (Probably
    also adding to the power drain?)

    The way I saw it, the Pentium 4 was like a race car built for sheer straight-line speed, even if that meant sacrificing maneouvrability on
    the corners. But real-world tracks aren’t built like that.

    Drag races are--which is why I do not consider any race lasting
    less than 20 minutes a race.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Chris M. Thomasson@chris.m.thomasson.1@gmail.com to comp.arch on Wed Nov 25 14:13:54 2026
    From Newsgroup: comp.arch

    On 11/25/2026 1:38 PM, Lawrence D’Oliveiro wrote:
    On Wed, 25 Nov 2026 12:31:32 +0100, Terje Mathisen wrote:

    Also, every switch between a sequence of inner core double-speed
    opcodes and anything else caused a significant bubble. (Probably
    also adding to the power drain?)

    The way I saw it, the Pentium 4 was like a race car built for sheer straight-line speed, even if that meant sacrificing maneouvrability on
    the corners. But real-world tracks aren’t built like that.

    Was it an early P$ that had the hyperthreading alias problem that caused
    false sharing on l2 cachelines? Iirc, 128 byte line was in order, also
    with offsetting the threads stacks via alloc or some other means...
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Chris M. Thomasson@chris.m.thomasson.1@gmail.com to comp.arch on Wed Nov 25 14:14:45 2026
    From Newsgroup: comp.arch

    On 11/25/2026 2:13 PM, Chris M. Thomasson wrote:
    On 11/25/2026 1:38 PM, Lawrence D’Oliveiro wrote:
    On Wed, 25 Nov 2026 12:31:32 +0100, Terje Mathisen wrote:

    Also, every switch between a sequence of inner core double-speed
    opcodes and anything else caused a significant bubble. (Probably
    also adding to the power drain?)

    The way I saw it, the Pentium 4 was like a race car built for sheer
    straight-line speed, even if that meant sacrificing maneouvrability on
    the corners. But real-world tracks aren’t built like that.

    Was it an early P$

    P4! Sorry for the typos! ;^o


    that had the hyperthreading alias problem that caused
    false sharing on l2 cachelines? Iirc, 128 byte line was in order, also
    with offsetting the threads stacks via alloc or some other means...

    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From antispam@antispam@fricas.org (Waldek Hebisch) to comp.arch on Thu Nov 26 01:06:46 2026
    From Newsgroup: comp.arch

    Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
    On Tue, 24 Nov 2026 01:39:58 GMT, MitchAlsup wrote:

    When memcopy() is an instruction, small machines can run at
    cache-width, and large machines can run at cache-width × ports ...

    When memcopy is for(i = 0; i < count; i++ ) to[i] = from[i]; your
    vVM unit can run it at SIMD-widths {say 512-bits copied per cycle}.

    Do SIMD instructions have access to wider or faster memory channels
    than regular CPU instructions do?

    Normally yes. Note that "memory" here mostly means L1 cache.
    Normal operations read from cache and write to it. Traffic
    with deeper level of memory hierarchy are handled by cache
    controller. Nontemporal SIMD changes this somewhat, but not
    too much. Fastest data path are between registers and ALU.
    Normal registers have 64-bit width and are connected by
    64-bit bus(es) to ALU. Since single tranfer can handle
    at most 64 bits also bus(es) to cache are 64-bit.

    SIMD instruction can operate on longer units. In low end
    models SIMD ALU and data paths may be narrower than official
    (architectural) width, on higer models widths may be the
    same. AFAIK 16 byte, 32 byte and 64 bytes widths are
    currently in use.

    Theoretically regular CPU instructions could execute in SIMD
    ALU, but normally this would be a waste. But special cases
    like REP MOVSB (or Mitch vVM) may be recoginized by CPU and
    executed using wider data paths (possibly SIMD, possibly using
    extra hardware).
    --
    Waldek Hebisch
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From quadibloc@quadibloc@invalid.com (John Savard) to comp.arch on Thu Nov 26 06:10:03 2026
    From Newsgroup: comp.arch

    On Wed, 25 Nov 2026 12:54:03 GMT, anton@mips.complang.tuwien.ac.at
    (Anton Ertl) wrote:

    If the Pentium 4 had had the IPC of the Pentium III or better, as the >designers probably expected when they threw that much hardware at it*,
    the Power consumption would have been considered acceptable; or the
    design could have been sold at a lower clock (and lower power
    consumption), and still would have had leading performance. And
    compared to recent Intel CPUs with their power limit of 250W
    (short-time) and 125W (permanent), the worst Pentium 4 with its 115W
    looks almost frugal.

    So what killed the Pentium 4 IMO was the low IPC, apparently coming
    from replay storms.

    It is true that any chip microarchitecture could be modified to run at
    a lower clock speed, thereby lowering its power consumption. AMD is
    doing this a lot in its current designs, to limit the number of
    different cores it has to design; it just clocks the same core at a
    different speed.

    So you're not wrong. But I don't think that everyone else is wrong
    either; the Pentium 4 was historically abandoned by Intel specifically
    because it produced more heat than was expected. So they went back to
    a Pentium III-based design that could provide more performance for
    less heat.

    So one objection I am raising is that this is a distinction without a difference; a chip that fails to deliver the desired performance
    without also running too hot... can be said to fail because it didn't
    deliver the desired performance when clocked so as not to run too hot,
    or to fail because it ran too hot when delivering the intended
    performance. Those two are the same thing.

    But why do most people prefer to say "heat" and not "performance" as
    the reason the Pentium 4 failed?

    What is the *distinguishing feature* of the Pentium 4
    microarchitecture? The Pentium 4, like Bulldozer from AMD, and like
    current IBM z/Architecture mainframe processors... has instruction
    pipelines in which *the number of gate delays per clock cycle* has
    been reduced below what is the usual practice.

    Bulldozer failed because of low performance instead of running too
    hot. IBM's mainframes avoided failure... because their processors are
    in modules with fancy liquid cooling.

    Right there, this suggests that comparing a Pentium 4 to a Pentium III
    in terms of IPC - instructions per _clock_ - is misleading. It's sort
    of like comparing apples with oranges. If you want to compare what a
    Pentium 4 and a Pentium III will do if *running at the same voltage*
    and *fabricated by the same process*, then you should be comparing
    IPGD - instructions per *gate delay*.

    These comparable Pentium 4 and Pentium III processors will differ in
    clock speed - the Pentium 4 will have a higher clock speed. Here, I do
    differ a bit from the conventional wisdom. I don't think the Pentium 4
    was designed the way it was just as a marketing decision, to have
    bragging rights for a bigger number. Even if that was an important consideration.

    Because while the _latency_ of a Pentium 4 was proportional to its
    gate delays, the _throughput_ of a Pentium 4 was proportional to its
    clock speed. If it had 1.25 times the clock speed of a comparable
    Pentium 3 design, it could also execute 1.25 times as many
    instructions as that Pentium 3. Provided they belonged to more
    threads.

    Because chopping up the logic into more single-clock stages means each instruction takes more cycles to execute. The gate delays required for finishing an instruction don't change, and so the time before the next instruction that depends on its result doesn't change.

    But if there are more clock cycles, your pipeline is longer, and in
    between those two instructions, you can insert more instructions that
    are not part of the dependency chain.

    And this is where the heat problem comes from. Your pipeline is now
    handling 1.25 times as many instructions, and so 1.25 times as many
    transistors are switching in that pipeline, which is why it consumes
    1.25 times as much power.

    But in that case, how exactly is the Pentium 4 wrongheaded, while
    dual-core chips are the right way to go instead? Don't they do exactly
    the same thing - using twice as much power to do twice as much work,
    without any latency improvement?

    The reason for trying the Pentium 4 is that the extra threads are
    still very tightly coupled; they use the same registers; they run on
    the same die. So if you can have an extra thread as long as it has
    good communications with the other threads, your code can benefit.
    Multiple cores also provide more throughput, but they can't be as
    beneficial to a single application in which some instruction-level
    parallelism was found.

    The reason dual-core and quad-core chips didn't run hotter than the
    Pentium 4... is because now the heat they did generate was spread over
    a larger die area, and so the chip, even with high power consumption,
    could actually be cooled by conventional means.

    John Savard
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.arch on Thu Nov 26 07:01:03 2026
    From Newsgroup: comp.arch

    On Thu, 26 Nov 2026 06:10:03 GMT, John Savard wrote:

    It is true that any chip microarchitecture could be modified to run
    at a lower clock speed, thereby lowering its power consumption.

    My guess is, that’s a simplistic view.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From quadibloc@quadibloc@invalid.com (John Savard) to comp.arch on Thu Nov 26 20:15:13 2026
    From Newsgroup: comp.arch

    On Thu, 26 Nov 2026 07:01:03 -0000 (UTC), Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> wrote:

    On Thu, 26 Nov 2026 06:10:03 GMT, John Savard wrote:

    It is true that any chip microarchitecture could be modified to run
    at a lower clock speed, thereby lowering its power consumption.

    My guess is, that’s a simplistic view.

    That may be, but since what I was doing in that sentence was conceding
    a point from Anton Ertl's argument, even if there are exceptions to
    this, that wouldn't invalidate my argument.

    John Savard
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From antispam@antispam@fricas.org (Waldek Hebisch) to comp.arch on Fri Nov 27 11:01:51 2026
    From Newsgroup: comp.arch

    John Savard <quadibloc@invalid.com> wrote:
    On Wed, 25 Nov 2026 12:54:03 GMT, anton@mips.complang.tuwien.ac.at
    (Anton Ertl) wrote:

    If the Pentium 4 had had the IPC of the Pentium III or better, as the >>designers probably expected when they threw that much hardware at it*,
    the Power consumption would have been considered acceptable; or the
    design could have been sold at a lower clock (and lower power
    consumption), and still would have had leading performance. And
    compared to recent Intel CPUs with their power limit of 250W
    (short-time) and 125W (permanent), the worst Pentium 4 with its 115W
    looks almost frugal.

    So what killed the Pentium 4 IMO was the low IPC, apparently coming
    from replay storms.

    It is true that any chip microarchitecture could be modified to run at
    a lower clock speed, thereby lowering its power consumption. AMD is
    doing this a lot in its current designs, to limit the number of
    different cores it has to design; it just clocks the same core at a
    different speed.

    So you're not wrong. But I don't think that everyone else is wrong
    either; the Pentium 4 was historically abandoned by Intel specifically because it produced more heat than was expected. So they went back to
    a Pentium III-based design that could provide more performance for
    less heat.

    I think that reason for talking about heat is slightly different.
    Namely, Pentium 4 had relatively small "double pumped" core.
    Much of performance degradation (compared to what clock would
    suggest) was due to relatively frequent instructions that were
    not included in the fast core. With no heat problem, as process
    improved (and maybe even in original design) they would be able
    put more in fast core resolving at least part of performance problem.
    Replay storms would remain. But heat alone was enough to kill
    future developement: adding more functionality to fast core was
    not practical.

    Or to say it a bit differently: Pentium 4 design utilized and
    depended on fast gates. Heat meant that fast gates were not
    practical, so Intel needed architecture that could work with
    slower gates. Of course, one can debate if problem of replay
    storms were resolvable. But AFAICS problem of heat was
    resolvable.
    --
    Waldek Hebisch
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Michael S@already5chosen@yahoo.com to comp.arch on Fri Nov 27 14:00:58 2026
    From Newsgroup: comp.arch

    On Fri, 27 Nov 2026 11:01:51 -0000 (UTC)
    antispam@fricas.org (Waldek Hebisch) wrote:

    John Savard <quadibloc@invalid.com> wrote:
    On Wed, 25 Nov 2026 12:54:03 GMT, anton@mips.complang.tuwien.ac.at
    (Anton Ertl) wrote:

    If the Pentium 4 had had the IPC of the Pentium III or better, as
    the designers probably expected when they threw that much hardware
    at it*, the Power consumption would have been considered
    acceptable; or the design could have been sold at a lower clock
    (and lower power consumption), and still would have had leading >>performance. And compared to recent Intel CPUs with their power
    limit of 250W (short-time) and 125W (permanent), the worst Pentium
    4 with its 115W looks almost frugal.

    So what killed the Pentium 4 IMO was the low IPC, apparently coming
    from replay storms.

    It is true that any chip microarchitecture could be modified to run
    at a lower clock speed, thereby lowering its power consumption. AMD
    is doing this a lot in its current designs, to limit the number of different cores it has to design; it just clocks the same core at a different speed.

    So you're not wrong. But I don't think that everyone else is wrong
    either; the Pentium 4 was historically abandoned by Intel
    specifically because it produced more heat than was expected. So
    they went back to a Pentium III-based design that could provide
    more performance for less heat.

    I think that reason for talking about heat is slightly different.
    Namely, Pentium 4 had relatively small "double pumped" core.
    Much of performance degradation (compared to what clock would
    suggest) was due to relatively frequent instructions that were
    not included in the fast core. With no heat problem, as process
    improved (and maybe even in original design) they would be able
    put more in fast core resolving at least part of performance problem.
    Replay storms would remain. But heat alone was enough to kill
    future developement: adding more functionality to fast core was
    not practical.

    Or to say it a bit differently: Pentium 4 design utilized and
    depended on fast gates. Heat meant that fast gates were not
    practical, so Intel needed architecture that could work with
    slower gates. Of course, one can debate if problem of replay
    storms were resolvable. But AFAICS problem of heat was
    resolvable.


    Not just resolvable. More like resolved - Cedar Mill was running at
    3.6 GHz with TDP of 65W. There was also Pressler - Pentium-D variant of
    Cedar Mill that at the same frequency had TDP of 95W.

    But it was much slower that 3.0 GHz Conroe (a desktop variant of Merom)
    that had two cores running at TDP of 65W.

    Of course, Conroe was faster than Cedar Mill not only due to superior
    core. Uncore was better too - much bigger and faster L2 cache, faster
    FSB (1333 MT/s vs 800 MT/s).



    --- Synchronet 3.21e-Linux NewsLink 1.2