Thread View: comp.arch
34 messages
34 total messages
Started by John Savard
Fri, 20 Nov 2026 00:38
Very Depressing Video
Author: John Savard
Date: Fri, 20 Nov 2026 00:38
Date: Fri, 20 Nov 2026 00:38
13 lines
1479 bytes
1479 bytes
This YouTube video https://www.youtube.com/watch?v=1565YYsFmd4 is about the HiFive Premier 550. Apparently it's the fastest RISC-V board yet made available to enthusiasts and hobbyists. The good news was that the software situation for RISC-V... has improved, though it's still less than perfect. 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. John Savard
Re: Very Depressing Video
Author: Thomas Koenig
Date: Fri, 20 Nov 2026 19:46
Date: Fri, 20 Nov 2026 19:46
11 lines
1444 bytes
1444 bytes
OK, this is somewhat off-topic... I have something else: A quite catchy music vido, but the lyrics are quite interesting. https://www.youtube.com/watch?v=Z6_ENp_fO_Y "I'm a superhuman obfuscating sophistry machine." -- This USENET posting was made without artificial intelligence, artificial impertinence, artificial arrogance, artificial stupidity, artificial flavorings or artificial colorants.
Re: Very Depressing Video
Author: BGB
Date: Sat, 21 Nov 2026 00:26
Date: Sat, 21 Nov 2026 00:26
321 lines
14296 bytes
14296 bytes
On 11/19/2026 6:38 PM, John Savard wrote:
> This YouTube video
> https://www.youtube.com/watch?v=1565YYsFmd4
> is about the HiFive Premier 550.
>
> Apparently it's the fastest RISC-V board yet made available to
> enthusiasts and hobbyists.
> The good news was that the software situation for RISC-V... has
> improved, though it's still less than perfect.
> 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.
>
It is pros/cons:
Need to convince the RISC-V ISA people to address the most obvious
deficiencies in the ISA, and not just try to keep kicking the can down
the road.
In cases where "you don't really want this on a microcontroller" or
similar, just not put it on a microcontroller.
And maybe convince the hardware people that stuff like having the chips
use trap-and-emulate whenever they encounter a misaligned memory address
is not an acceptable option for the performance.
Or, that chasing stuff like RV-V, without addressing some of the more
fundamental issues, is a fool's game. Or, "We have V, so let's drop F/D
and just use V instead!" is profoundly stupid.
One can argue maybe my leaning toawrds using traps for TLB miss handling
is bad, but IMO it is still less bad than using traps for misaligned
handling or for FPU.
Well, since TLB misses can tend to stabilize towards a steady-state and
then sharply drop-off to a fairly low-level provided the TLB is big
enough to cover the working set (and one doesn't do a full TLB flush on
context switches, ...).
Contrast for misaligned, which happens every time a misaligned access
happens:
Best case, it is rare, so no big issue;
Less good case: performance tanks.
Likewise, V-only is also stupid for general use, more so when code is
already being built against RV64GC which includes F/D, so dropping them
in favor of V just means performance will be awful, and one will lack a
good way to do scalar floating point, except maybe Zfinx/Zdinx, but,
then they made them effectively mutually exclusive, and code that is
compiled against RV64GC wont work on Zdinx or vice-versa.
Well, absent the expectation that the compiler is smart enough to
auto-detect and-or do mutually-exclusive register allocation in the face
of "who knows whether it is the same register or different registers".
Which, compilers don't really do, and it would be kinda stupid to expect
them to do so "just in case" as this necessarily increases effective
register pressure for no real gain on either side of the balance.
Well, unless the idea is that basically everyone is going to rely on
hot-patching.
...
Also maybe ask people to tune things for general effectiveness, not just
to maximize scores on specific benchmarks. One could argue that my use
of 90s era games and similar could hardly be considered more general,
but IMO, this is missing the point.
Like, if someone thinks that they need a "carryless multiply"
instruction more than they need a non-terrible way to load elements from
arrays, or a good way to implement 32-bit zero-extension, they are
optimizing too much for the benchmarks.
...
But, then again, I can note that some people seem to approach ISA design
more like I approached image/video codecs, which itself ended up as a
bit of a jungle.
BTICxx:
1x: Mostly designs evolving from the RPZA approach.
Basically ended at 1H.
2x: JPEG/MPEG inspired designs.
Mostly ended up as UPIC, which mostly carries of the same patterns,
but diverged from the naming scheme.
Not strongly pursued as speed is difficult.
Similar mainstream codecs rely on special hardware acceleration.
Eg: H.26x, etc...
Hard otherwise to make it fast enough for 1080p/2160p.
3x: Quickly died, attempts to combine 1x and 2x.
4x: Like 1x (1H) but using 8x8 blocks rather than 4x4.
Going to larger blocks was detrimental from a complexity POV.
Can't just make the color-cell block bigger and expect good results.
5x: Another partial reboot of 1x, but with more MS-CRAM influence.
6x: A newer experiment involving a Cinepak inspired approach.
Initially looked poor, but has quickly gained effectiveness.
High encoder complexity, but reasonably fast to decode.
Can do 4K with a single-threaded decoder.
6A:
Current experiment, is fast enough to play 4K video on my PC with a
single threaded decoder; which for 30 fps video has a minimum decoder
speed of around 250 megapixels/second. In some of the FMV tests it can
reach around 500-700 to RGBA32, pushing against some of my color-cell
based designs.
Did debate how to best add transparency support to this:
An alpha layer would add cost/complexity;
The endpoint-ordering trick (used in the 5x line) does not apply;
...
Decided to go with an approach I had once used to glue transparency
support onto a tweaked version of the Xiph Theora codec:
Encode transparency mostly using out-of-gamut colors.
Large fully-transparent block: "Super Magenta" (Y=0, U/V=255);
Partial Block: adjust U/V such that Y=0 is out of gamut;
Use Y=0 for transparent, Y>=20 for non-transparent.
Hooks onto the normal out-of-gamut clamp handling path;
So, in-gamut colors are "safe" and pay no extra penalty here.
Did end up going and adding some tricks to try to skip memory copying
for "double plain skip" blocks, and to skim pixels off of copying rows
of blocks to client memory when it detects the client is using
single/double buffering.
Partly as it seems the codec is operating in a realm where intermediate
memory copying costs are eating into throughput (memcpy starts showing
up a fair bit in the profiler results in this case; where memcpy can
move RGBA32 pixel data at ~ 925 Mpix/sec; vs ~ 1850 for RGB555). It can
be moderately faster to detect the non-changed block status and skip
copying than to naively "just copy all the memory to the client" on P-Frame.
well, also can't really make the codebooks much larger as this
negatively effects speed.
Well, 4K entries for the 2x2 codebook is pushing it, but the gains in
compression were mostly enough to justify the modest speed cost
(1K/2K/4K is still small enough that bigger codebooks improve
compression, without the major performance tank that starts to happen
with an 8K or 16K codebook).
Although ATM the codebooks are too big to fit in the L1 cache, I suspect
the distant entries are being used infrequently enough as to not wreck
performance. Would mostly need to use a 1K codebook to keep things more
comfortably in the L1 cache though.
TBD how much of a "free lunch" effect there is due to the Xen having
associative caches though, so it could be that there would be a need to
drop back to 1K or 2K entry codebooks for a direct-mapped cache
(assuming the codec still works OK on my CPU core; and I probably will
need to add a special RGB555 fast-path in this case).
Well, say:
4K for 2x2 : ~ 24K cost (6B/entry)
2K for 4x4 : ~ 16K cost (8B/entry)
512 for 8x8 : ~ 4K cost (also 8B)
256 for 16x16: ~ 2K cost (also 8B)
So, say, this is 46K, well exceeding 32K of L1 cache.
Initial plan was more like:
1024 for 2x2 : ~ 6K cost (6B/entry)
512 for 4x4 : ~ 4K cost (8B/entry)
256 for 8x8 : ~ 2K cost (also 8B)
128 for 16x16: ~ 1K cost (also 8B)
Or, 13K, which while faster, does come at a noticeable Q/bpp penalty.
The smaller-sized codebooks are larger because they see a lot more
traffic and also tend to be longer-lived (whereas entries in the 8x8 or
16x16 codebooks tend to not live very long before the backing entries in
the smaller codebooks expire; and because they also "hit" less often).
Well, with each larger entry consisting of 4x 16-bit indices to the next
size down (vs the bottom level holding YYYYUV vectors).
Output pushes the YUV -> RGB stage pretty hard, but a fair bit of this
is memory-output and pointer-address twiddling rather than purely about
the transform.
It is possible I could make the final 4x4 transform stage a little
faster by flattening it out and maybe changing how the final 4x4 Hilbert
curve is handled.
...
Not much ISA design stuff from me as of late.
Having mostly run into a "seems like it is mostly good enough" wall.
And, main forward path is mostly continuing to try to debug/polish BGBCC
or to make TestKern into a more solid OS, which personally I am not
finding as interesting at the moment.
Though, the last time I started running into this wall, ended up
creating XG3, which did create a bit more activity for a while.
Compiled some stuff, noted BGBCC was crashing, then ended up dealing
with more broken edge cases in BGBCC's handling of C.
Though, in the process, now my "reducer" stage can evaluate stuff like:
(int)(&(((Foo *)0)->bar))
As a constant expression...
Well, along with finding a few more bugs in my compilers' handling of
the reachability graph (it was failing to traverse some expressions,
potentially resulting in reachable code/data not being reached until
after it was already marked as culled).
But, yeah, everything seems good sometimes, until more bugs show up.
Otherwise, the TestKern GUI subsystem is basically stalled, and I am
left debating whether I had been taking the wrong approach to the GUI
and Window Manager stuff.
Had sort of ended up thus far bolting the WM directly onto the kernel
and low/level drawing code. Debating if it would be better for this
stuff to be split up.
Or, say:
Application -> TKGDI (API)
TKGDI ?-> Window Manager
Window Manager -> Drawing-API (another TKGDI context?)
Maybe the TKGDI API remains as-is when used in the context of
interfacing with the display hardware interface, but some functionality
is folded off and "spring-boards" to the WM's API.
Other sub-goals:
Maybe try to get GUI stuff out of the TestKern kernel proper;
Also get TKRA-GL out of the kernel proper;
Maybe still hangs out with the WM in kernel space though.
Maybe rework the architecture enough that I can host/debug the WM code
natively on Windows (without direct dependency on Testkern kernel stuff).
Also would be nice to have some sort of desktop UI beyond just summoning
a shell/terminal window to be used to launch other stuff.
Also TODO:
Figure out better ways to generalize fonts and text-rendering;
Some sort of VfW style API and mechanism for loadable codec modules;
Will also need to address still-image decoding;
Implement a file browser and proper desktop (with icons and stuff);
...
Like, ideally, you don't want every program to necessarily need to
supply its own text-rendering and image-loading and video codec stuff
(even if in practice this stuff often ends up being duplicated across
nearly every program that deals with it; or use OS level APIs and
instantly become non-portable).
In an ideal case, the same fundamental APIs could be made portable
between targets and implementations, even if not necessarily as "clean"
as a purely native API.
In this case, a lot of this isn't so much about the code to do these
things, rather more about the structure and contents of the relevant
VTable objects.
Well, or do like older Windows style drivers and use a DriverProc
"do-everything function-pointer" based interfaces, but, this would kinda
suck. But, alas, it is where to draw the lines for things. The
DriverProc approach offers a for more general "what are you and what do
you do?" probing interface for drivers/etc.
Whereas, for VTables, kinda already need to know what the thing is. And,
function pointers can arguably allow for a "GETINTERFACE" style message
when it is necessary to switch to objects (or, alternatively, can use as
a wrapper to implement a "GetProcAddress" style mechanism as well,
rather than depending on ability to query DLL exports directly).
Or, ye olde:
UINT (*DriverProcFn)(HANDLE hInst, UINT uMsg,
LPVOID lpParm1, LPVOID lpParm2);
Though, if things are done well, the same modules code could be usable
both for running in TestKern and for debugging on Windows, since DLL
exports don't really care. More just the driver module needs a way to
call back into TestKern.
TDB: Could be lazy and just sort of scavenge parts of the VFW and ACM
interfaces and similar as-is for the driver level parts, but, TBD, this
is a gray area (well, beyond having already borrowed things like
BITMAPINFOHEADER and WAVEFORMATEX and similar...).
Well, this stuff being the "not particularly fun" parts of OS design.
Not sure if there are any useful insights to gain from historical
systems here.
Or, if there is really any point...
> John Savard
Re: Very Depressing Video
Author: Terje Mathisen
Date: Sat, 21 Nov 2026 07:32
Date: Sat, 21 Nov 2026 07:32
22 lines
2029 bytes
2029 bytes
Thomas Koenig wrote: > OK, this is somewhat off-topic... > > I have something else: A quite catchy music vido, but the lyrics > are quite interesting. https://www.youtube.com/watch?v=Z6_ENp_fO_Y > "I'm a superhuman obfuscating sophistry machine." I would not call it depressing, just eye-opening: No matter how much resources you started with, just 10-15 years ago that entire video would have been effectively impossible, even for a high-end movie studio. The lyrics could have been written by Elle Cordova (please look up her Grammarian series, or The Modern Day Typographer), but seems to be mostly Claude. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
Re: Very Depressing Video
Author: Thomas Koenig
Date: Sat, 21 Nov 2026 10:12
Date: Sat, 21 Nov 2026 10:12
24 lines
2020 bytes
2020 bytes
Terje Mathisen <terje.mathisen@tmsw.no> schrieb: > Thomas Koenig wrote: >> OK, this is somewhat off-topic... >> >> I have something else: A quite catchy music vido, but the lyrics >> are quite interesting. https://www.youtube.com/watch?v=Z6_ENp_fO_Y >> "I'm a superhuman obfuscating sophistry machine." > > I would not call it depressing, just eye-opening: > > No matter how much resources you started with, just 10-15 years ago that > entire video would have been effectively impossible, even for a high-end > movie studio. > > The lyrics could have been written by Elle Cordova (please look up her > Grammarian series, or The Modern Day Typographer), but seems to be > mostly Claude. Thanks for the Elle Cordova hint, I did like that! -- This USENET posting was made without artificial intelligence, artificial impertinence, artificial arrogance, artificial stupidity, artificial flavorings or artificial colorants.
Re: Very Depressing Video
Author: John Savard
Date: Sun, 22 Nov 2026 00:13
Date: Sun, 22 Nov 2026 00:13
10 lines
1408 bytes
1408 bytes
On Fri, 20 Nov 2026 19:46:22 -0000 (UTC), Thomas Koenig <tkoenig@netcologne.de> wrote: >I have something else: A quite catchy music vido, but the lyrics >are quite interesting. https://www.youtube.com/watch?v=Z6_ENp_fO_Y >"I'm a superhuman obfuscating sophistry machine." I take it that it's warning us against trusting AI too much. John Savard
Re: Very Depressing Video
Author: Waldek Hebisch
Date: Sun, 22 Nov 2026 02:04
Date: Sun, 22 Nov 2026 02:04
47 lines
2463 bytes
2463 bytes
John Savard <quadibloc@invalid.com> wrote:
> This YouTube video
> https://www.youtube.com/watch?v=1565YYsFmd4
> is about the HiFive Premier 550.
>
> Apparently it's the fastest RISC-V board yet made available to
> enthusiasts and hobbyists.
> The good news was that the software situation for RISC-V... has
> improved, though it's still less than perfect.
> 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.
I wondr what you consider to be comodity hardware. FYI
dhrystones and DMIPS ratings of some machines that I have:
Milkv-Duo-S, chinese Risc-V:
3198976 dhrystones, that is 1820.7 DMIPS
my 7 years old laptop:
5241090 dhrystones, that is 2982.97 DMIPS
Milkv-Mars, Risc-V, earlier SiFive chip:
5417118 dhrystones, that is 3083.16 DMIPS
RockPi-E, ARM64:
6784260 dhrystones, that is 3861.27 DMIPS
2 years old chinese mini-PC:
18115942 dhrystones, that is 10310.72 DMIPS
my desktop:
82918736 dhrystones, that is 47193.36 DMIPS
As you can see there is rather large spread of speeds, with
faster Risc-V that I have faster than my laptop.
You may criticize use of Dhrystones as a benchmark, but in
the past I saw reasonably good correlation between
Dhrystones and TeX (which is real world thing that I use).
It may actually underestimate Risc-V performance, on different
task the Risc-V board seem to have somewhat bigger advantage
over my laptop (Dhrystones seem to benefit quite a lot from
use of SIMD for string handling).
--
Waldek Hebisch
Re: Very Depressing Video
Author: John Savard
Date: Sun, 22 Nov 2026 14:04
Date: Sun, 22 Nov 2026 14:04
13 lines
1559 bytes
1559 bytes
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. John Savard
Re: Very Depressing Video
Author: BGB
Date: Sun, 22 Nov 2026 22:34
Date: Sun, 22 Nov 2026 22:34
86 lines
4570 bytes
4570 bytes
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
Re: Very Depressing Video
Author: John Savard
Date: Mon, 23 Nov 2026 01:04
Date: Mon, 23 Nov 2026 01:04
29 lines
2383 bytes
2383 bytes
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
Re: Very Depressing Video
Author: MitchAlsup
Date: Mon, 23 Nov 2026 18:45
Date: Mon, 23 Nov 2026 18:45
33 lines
2293 bytes
2293 bytes
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
Re: Very Depressing Video
Author: EricP
Date: Mon, 23 Nov 2026 20:13
Date: Mon, 23 Nov 2026 20:13
46 lines
3158 bytes
3158 bytes
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.
Re: Very Depressing Video
Author: MitchAlsup
Date: Mon, 23 Nov 2026 20:50
Date: Mon, 23 Nov 2026 20:50
75 lines
4433 bytes
4433 bytes
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. >
Re: Very Depressing Video
Author: BGB
Date: Mon, 23 Nov 2026 20:51
Date: Mon, 23 Nov 2026 20:51
169 lines
7113 bytes
7113 bytes
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
Re: Very Depressing Video
Author: MitchAlsup
Date: Tue, 24 Nov 2026 01:39
Date: Tue, 24 Nov 2026 01:39
69 lines
3236 bytes
3236 bytes
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}.
Re: Very Depressing Video
Author: Lawrence D’Oliveiro
Date: Tue, 24 Nov 2026 02:25
Date: Tue, 24 Nov 2026 02:25
10 lines
1748 bytes
1748 bytes
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?
Re: Very Depressing Video
Author: BGB
Date: Tue, 24 Nov 2026 04:28
Date: Tue, 24 Nov 2026 04:28
190 lines
7251 bytes
7251 bytes
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?...
...
Re: Very Depressing Video
Author: BGB
Date: Tue, 24 Nov 2026 05:07
Date: Tue, 24 Nov 2026 05:07
78 lines
4356 bytes
4356 bytes
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.
Re: Very Depressing Video
Author: Terje Mathisen
Date: Wed, 25 Nov 2026 11:31
Date: Wed, 25 Nov 2026 11:31
45 lines
3256 bytes
3256 bytes
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"
Pentium 4 (was: Very Depressing Video)
Author: Anton Ertl
Date: Wed, 25 Nov 2026 12:54
Date: Wed, 25 Nov 2026 12:54
50 lines
3487 bytes
3487 bytes
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>
Re: Pentium 4
Author: Terje Mathisen
Date: Wed, 25 Nov 2026 15:03
Date: Wed, 25 Nov 2026 15:03
71 lines
4676 bytes
4676 bytes
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"
Re: Pentium 4
Author: Anton Ertl
Date: Wed, 25 Nov 2026 16:45
Date: Wed, 25 Nov 2026 16:45
62 lines
4355 bytes
4355 bytes
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>
Re: Pentium 4
Author: Terje Mathisen
Date: Wed, 25 Nov 2026 21:07
Date: Wed, 25 Nov 2026 21:07
69 lines
4887 bytes
4887 bytes
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"
Re: Very Depressing Video
Author: Lawrence D’Oliveiro
Date: Wed, 25 Nov 2026 21:38
Date: Wed, 25 Nov 2026 21:38
9 lines
1745 bytes
1745 bytes
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.
Re: Very Depressing Video
Author: MitchAlsup
Date: Wed, 25 Nov 2026 22:04
Date: Wed, 25 Nov 2026 22:04
14 lines
1602 bytes
1602 bytes
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.
Re: Very Depressing Video
Author: Chris M. Thomasson
Date: Wed, 25 Nov 2026 22:13
Date: Wed, 25 Nov 2026 22:13
14 lines
2144 bytes
2144 bytes
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...
Re: Very Depressing Video
Author: Chris M. Thomasson
Date: Wed, 25 Nov 2026 22:14
Date: Wed, 25 Nov 2026 22:14
21 lines
2284 bytes
2284 bytes
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...
Re: Very Depressing Video
Author: Waldek Hebisch
Date: Thu, 26 Nov 2026 01:06
Date: Thu, 26 Nov 2026 01:06
35 lines
2667 bytes
2667 bytes
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
Re: Pentium 4 (was: Very Depressing Video)
Author: John Savard
Date: Thu, 26 Nov 2026 06:10
Date: Thu, 26 Nov 2026 06:10
101 lines
6302 bytes
6302 bytes
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
Re: Pentium 4 (was: Very Depressing Video)
Author: Lawrence D’Oliveiro
Date: Thu, 26 Nov 2026 07:01
Date: Thu, 26 Nov 2026 07:01
6 lines
1676 bytes
1676 bytes
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.
Re: Pentium 4 (was: Very Depressing Video)
Author: John Savard
Date: Thu, 26 Nov 2026 20:15
Date: Thu, 26 Nov 2026 20:15
15 lines
1925 bytes
1925 bytes
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
Re: Pentium 4
Author: Waldek Hebisch
Date: Fri, 27 Nov 2026 11:01
Date: Fri, 27 Nov 2026 11:01
48 lines
3416 bytes
3416 bytes
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
Re: Pentium 4
Author: Michael S
Date: Fri, 27 Nov 2026 12:00
Date: Fri, 27 Nov 2026 12:00
63 lines
4429 bytes
4429 bytes
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).
Re: Very Depressing Video
Author: Paul Clayton
Date: Sun, 29 Nov 2026 22:48
Date: Sun, 29 Nov 2026 22:48
70 lines
4675 bytes
4675 bytes
On 11/25/26 6:31 AM, Terje Mathisen wrote: > MitchAlsup wrote: [snip] >> 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. I think the trace cache implementation also contributed to the failure of the microarchitecture. If I recall correctly, the trace cache was filled by a slow, sequential decoder (one instruction per cycle) and had relatively small capacity (12k µops but "a hit rate similar to an 8 to 16 kilobyte conventional instruction cache", "The Microarchitecture of the Intel Pentium 4 Processor on 90nm Technology", Darrell Boggs et al., 2004). The maximum front-end fetch was three µops per cycle, so its per-cycle fetch/decode was already slower than the Pentium II (at least when software matches the 3-1-1(?) template; a sequence of two µop instructions would only decode two µops per cycle). Reducing the cost of branch misprediction by removing decoding latency and reducing the cost of taken branches by using traces makes sense for a high-frequency x86 design with then state-of- the-art branch prediction. µop caches were later widely adopted for the latency and power advantages of avoiding x86 decode. The small (16 KiB in Prescott, 90nm; 8 KiB in Williamette) Dcache may also have contributed to performance issues. The initial choice of Rambus DRAM hurt the product attractiveness initially (from what I read) from latency, power, and cost (though it provided higher streaming bandwidth), but that requirement was reverted somewhat quickly from what I recall. (Note that partial virtual tag way prediction introduced by Pentium 4 has also been widely adopted, though more delayed than µop caches and probably as much or more for energy than latency.) I seem to recall that for streaming media workloads, Rambus DRAM and hardware prefetching provided good bandwidth. The increase in laptop sales would make poorer performance per watt more unattractive for a larger fraction of the market. I think Pentium 4 also introduced "data free" reorder buffers, so data was not copied to architectural register storage on commitment. I am not convinced that staggered ALUs are necessarily a bad idea. Such provides a means to trade power and latency by exploiting the lower criticality of the more significant bits for most operations. (While a left shift has a dependency issue, such are not especially common and the added latency could be small.) Doing half an add per cycle might save a little energy (though most of the "back end" energy per compute operation, I think, is in the scheduler). > 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?) Apparently Willamette (180nm) shift latency was 4 (slow/main) cycles and multiply latency was 14 cycles. That is slow even if the frequency was twice has high (rather than perhaps 40% higher?).
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads