by exabrial · 3y ago · 0 comments
I saw a previous HN comment about this being due to memory bandwidth and cache latency, but I can't seem to substantiate that comment.
That being said, I'd love to have this sort of performance out of servers. Arm released https://www.anandtech.com/show/17575/arm-announces-neoverse-... in 2022, but it's not really available yet anywhere.
Nominally speaking, its inefficient at that point. You pretty much can make 2 cores fit inside of the M1 core, and each x86 core supports two threads (Would you rather have 4x x86 threads, or 1x M1 core??). I'm intrigued that people continue to find benefits from such a large core (even without SMT / Hyperthreading).
--------
But yes, M1 has huge L1 cache, huge reorder buffers, and extremely wide execution. I'd expect it to win clock-for-clock vs any other core in the market.
But I'm not fully convinced that its the best design / tradeoff. Intel's E-cores + P-cores suggests that modern CPU cores may have become overly big.
E cores work the problem the other way, if you narrow the core, you can get about half the work done per core, but in about a fourth the space. That's a win for throughput, but not for latency/interactivity. Drastically different per core performance makes OS schedulers work harder though.
You might get some interactivity benefits depending on your workload and core configuration... One P vs 4 Es is an easy choice, but 4-P vs 16-E, the 4-P is probably going to feel more interactive because UI latency is lower, even though throughput is lower.
[1] https://www.semianalysis.com/p/apple-m2-die-shot-and-archite...
[2] https://www.hwcooling.net/en/zen-4-architecture-chip-paramet...
Zen3 is 4mm^2 on 7nm process... a process that uses 4x the area per transistor than the 3nm process.
TSMC only just started mass production of 3nm like last week, nothing has shipped yet.
The opposite.
A lot of these chips are being designed as "dark silicon", with extremely specific hardware that is rarely used.
When the silicon is dark, they form a heatsink that can absorb excess heat from all other parts of the chip and help regulate the temperature.
I expect more-and-more extremely specific circuitry to be added to future chips, so that more and more silicon can be "dark" and serve as a place for heat to go inside of the microseconds of execution.
I an even imagine spacing functional nodes wider on the silicon, where size and latency limitations allow, to give them more heat-dissipating area.
At first I thought it would be the close integration of memory, but it seems the consistent instruction size makes the reorder buffers a lot simpler to implement than for x86, so you can get a much larger aarch64 reorder buffer for the same area of an x86 (amd64) one.
A ROB / Reorder Buffer is just RAM from my understanding. Since writes are all out of order, the ROB holds the "future values" of things for sections of code that have already executed (due to out-of-order scheduling), that are waiting for "earlier" code to execute.
Ex: If line#105 has been out-of-order executed, and knows that "MemoryLocationX = 100" happens there... the ROB holds it until line#90 through line#014 are done executing.
-----------------
Consistent instruction size would decrease:
* uop cache (AMD / Intel require a uop cache, where "decoded" instructions stay). This is more optional for ARM... and I'd personally expect this to be the "biggest cost" of x86 instructions.
* Decoder (due to the complexity of x86 instructions, the decoder on those chips is probably bigger).
The ROB / Reorder buffer is "after the decoder", probably just interacting with uops directly. I doubt that instruction set size-or-complexity has anything to do with ROB sizes.
Even the E-cores draw more power than the M1/M2 cores.
The interesting thing to me is die-area. Because that's what determines how many cores you get per chip.
But that ruins the original argument... Not that any amount of down clocking can let Intel or AMD get close on the perf/power graph. Besides heat is the main bottleneck on data center density and operational cost.
This is the denialist argument I keep seeing where people want to have their cake and eat it (or perpetually pin their hopes on Zen+1 that hasn't actually shipped).
If Intel could match M1/M2 power/perf they'd do it. But they can't. They can win the perf crown by absolutely burning power or they can get massively trounced to kinda get close on power. Zen is better but still has the same fundamental trade off.
Instead of saying M1/M2 are nothing special I'm super excited to see actual competition in the CPU space for the first time in a long time - competition that has proven a lot of conventional wisdom to be bunk.
the process (3nm, ...) too, to get a sense of what fits in an area
[1]https://www.anandtech.com/show/16823/intel-accelerated-offen... [2] https://wccftech.com/apple-5nm-m1-chip-for-arm-macs-2x-perfo...
Today, TSMC has taken the lead, and Apple pays the big bucks to be a prioritized customer above all others.
Some workloads are obviously faster on the big PC, but I haven't been this excited about a CPU since the Pentium 1.
My M1 Max MBPs absolutely do not "feel as fast" - but definitely feel proportionately faster for the cost.
I use my laptop as a thin client and have compute jobs running on the PC, which is now a Linux server. Best of both worlds I think.
Same arrangement as here. I wish I could transparently overflow to cloud when the local server gets bogged down by my demands.
I have XRDP setup, but primarily use the machine heedlessly.
At the office we all joked that the MBPs were preparing to take off.
I’m going to some personal benchmarks for all all 3 machines plus my new Ryzen 7950x. It still amazes me the fanless M1 Air is nearly as fast as my old desktop and laptop.
Seriously. The thermals the the last couple of intel apple laptops are atrocious. And I mean from a design standpoint point. With shitty coolers and fan arrangements etc. its kinda wild.
I'd certainly hate to have had an Intel Mac that was louder and hotter than it already was.
I think this conspiracy theory could go the other way: they let the thermals go nuts in old intels to make the M1s look better.
i watched this long time ago and i have a new appreciation for "my phone", not to speak of other general computing devices like laptops or desktops
You can compare Threadripper (4-channel memory), Threadripper Pro (8-channel memory, same as for EPYC servers) and M1 by memory bandwidth.
Example 1: https://www.phoronix.com/review/amd-threadripper-5965wx/5 - ClickHouse on Threadripper Pro with less number of cores but better memory bandwidth is faster than Threadripper with larger number of cores.
Example 2: https://benchmark.clickhouse.com/hardware/ various servers, while Aarch64 servers have good places, the top results are from EPYC servers. Never EPYC servers have 12-channel DDR-5 memory - sounds like a heaven for ClickHouse :)
I don't know if Apple has released any stats, but it makes a certain amount of sense. The technical reason to put memory and the CPU/GPU on a single package is to decrease memory latency (and possibly boost operating frequency). There's probably also the option to have a really wide memory bus.
Of course, a nice side benefit for Apple is that people can no longer buy 3rd part ram at market rates.
That being said...
> My M1 MacBook is significantly "faster" than my previous Intel 16", even though the per-core performance are roughly similar in CPU benchmarks (small advantage to M1).
The thing about benchmarks is, they're sometimes particular to a specific application, and even data sets. So M1 can be largely tied with an Intel chip across a broad range of benchmarks (e.g. Geekbench), but it can also be a lot faster on your specific workloads.
You've got that backwards, I think. Putting memory on package, or even just soldered on the PCB nearby rather than in removable DIMMs primarily helps hit higher frequencies or lower power at similar frequencies (GPUs and smartphones provide a wealth of examples). There's little or no impact on latency, because most DRAM latency occurs within the DRAM dies or inside the CPU's cache hierarchy rather than on the link between the CPU and DRAM.
The latency does seem improved in the last level cache and main memory, at least compared to AMD's Ryzen 5000 series. Sadly looks like Anandtech has lost the people who did the deep dives and I can't find similar latency numbers for cache and ram for the Ryzen 7000 series.
Apple's power efficiency allows for a 512 bit wide memory system in a laptop, 4 times any x86-64 laptop. I do hope that AMD or Intel ups their game and allows for more aggressive memory systems on laptops. Only similar design I know of is the Xbox series X and PS5, which both use AMD chips with improved memory systems to keep from bottlenecking the iGPU.
The 16" MBP, at least mine, thermally throttles at the drop of a hat. Teams video conf, backups, virus scan, even small builds, etc.
The M1 in comparison is quiet, cool, not sure I've heard the fan going. So sure the performance is similar, the perf/watt is not.