8 ms·
Is ARM really the reason the M1 is so much better than the current x86 CPUs? If you have a look at the competition (Qualcomm), it sounds to me that it's Apple e
by Leherenn 5y ago
Is ARM really the reason the M1 is so much better than the current x86 CPUs? If you have a look at the competition (Qualcomm), it sounds to me that it's Apple expertise at designing a SoC and using a more advanced node that makes it such a good CPU, not really the architecture.
Said another way, I highly doubt we will see a non-Apple ARM CPU outclass the x86 competition in such a way anytime soon, so saying "never x86 again" might not be very wise. ARM is not a magic bullet.
- diroussel 5y agoARM isn’t _the_ reason. It is a reason. If we were to go back in time to before apple introduced it’s own SoC and before it had acquired chip design start ups, even before than ARM was on the table as that is what the iPhone ran. RISC-V wasn’t a thing back then. So the alternatives were MIPS, Power or maybe a home grown instruction set. So we just have to go with what the reality is now. The apple silicon has been well optimised for performance per watt. And it runs on an ARM instruction set that apple itself helped in the design of.
- deadmutex 5y ago100% agree. A lot of people asking for ARM based machines do not really realize that the reason is not because of ARM, but they just want faster/more efficient machines. I think to make a analogy for HN frontend sw devs, imagine a non-technical marketing person going to a developer and saying "I want this website in AMP, because AMP is fast.". And sure, a lot of sites with AMP framework are fast... but that doesn't mean that you have to build a site in AMP to make it fast. You could build a simple site with similar principles and get it fast too. Similarly, not all ARM laptops are fast. Even if the laptops hw is fast, you want something that can efficiently run x86 code as well for compatibility purposes for many years.
- NobodyNada 5y agoIt’s true that ARM alone isn’t the reason for the M1’s performance, but it’s definitely a significant factor. x86 is old — modern x86 chips are still backwards-compatible with the original 8086 from 1978 — and it’s stuck with plenty of design decisions that might have been the correct choice sometime within the past 45 years but no longer today. Whereas the M1 only implements AArch64, a complete redesign of the ARM architecture from 2012, so it doesn’t have to deal with legacy architectural baggage. (We’ve known x86 was the wrong design since the 80’s — hence why there’s no Intel chips in smartphones — but it hasn’t been realistic for anybody except Apple to spend 10 years and billions of dollars to make a high-performance non-x86 chip.) Some examples: - x86 guarantees strong memory ordering on multi-processor systems, which adds completely unnecessary overhead to every memory access. arm64 uses a weak memory model instead, providing atomic instructions with relaxed or acquire/release semantics (see https://youtu.be/KeLBd2EJLOU?t=28m19s https://youtu.be/KeLBd2EJLOU?t=28m19s for a more detailed discussion). This significantly improves performance all around the board, but especially with reference counting operations (which are extremely common and often a bottleneck in code written in ObjC/Swift): https://twitter.com/Catfish_Man/status/1326238434235568128 https://twitter.com/Catfish_Man/status/1326238434235568128 > fun fact: retaining and releasing an NSObject takes ~30 nanoseconds on current gen Intel, and ~6.5 nanoseconds on an M1 - x86 instruction decode is pretty awful, a significant bottleneck, and not parallelizable due to the haphazardly-designed variable-length CISC instruction set. arm64’s instruction set is highly regular and easy to decode, so Apple can decode up to 8 instructions per clock (as opposed to 4 for x86 chips). Most sources agree this is why the M1 can have such a big out-of-order-execution window and achieve such high instruction-level parallelism compared to Intel/AMD. - x86_64 has only 16 architectural registers, compared to 32 for arm64. This means the compiler has a much harder time generating efficient, parallelizable code and must resort to spilling registers much more often.
- smoldesu 5y agoThe issue for me is that ARM is also really old now. I mean, just look at the ISA Apple has to use to run their MacOS on it: it's littered with NEON extensions and more cruft than you can shake a stick at. Simply put, Apple's implementation of ARM is decidedly CISC. On top of this, I'm still dumbfounded by the fact that they didn't go for a chiplet design where ARM could truly shine: if Apple had went the chiplet route, the M1 could have had a much higher IO ceiling and might have a shot at addressing more than 16 gigs of RAM. Apple has a much bigger issue, though. ARM doesn't scale: it's a fundamental conceit of the architecture, one that a lot of people are probably willing to take on a laptop that will mostly be used for Twitter and YouTube. This presents issues for the rest of the market though, and it will be fascinating to see how Apple retains their pro userbase while missing out on the high-performance hardware sector entirely. I think x86 is pretty terrible too, if it's any consolation, but really it's the only option you've got as a programmer in the 21st century. I hopped on the Raspberry Pi bandwagon when I was still in middle school, I grew up rooting for the little guy here. Looking out on the future landscape of computer hardware though, I really only see RISC-V. ARM is an improvement on x86, but I don't think it's profound enough to make people care. RISC-V, on the other hand, blows both of them out of the water. On consumer hardware, it's able to accelerate pretty much any workload while sipping a few mW. On professional hardware, you can strap a few hundred of those cores together and they'll work together to create highly complex pipelines for data processing. On server hardware, it will probably move like gangbusters. Even assuming that cloud providers pocket half the improvements, a 5x price/performance increase will have the business sector racing to support it. So yeah, it is a pretty complex situation. Apple did a cool thing with the M1, but they have a long ways to go if they want to dethrone x86 in it's entirety.
- klelatti 5y agoWhere to start? > ARM is really old now. Well aarch64 was announced in 2011 so not really that old. > Apple’s implementation of ARM is decidedly CISC. CISC is a description of the instruction set not the implementation. > ARM doesn’t scale. No idea what this means but you can get 128 core Arm CPUs and address huge amounts of memory but perhaps you have another definition of scaling. And so on.
- throw63738 5y agoM1 has very fast memory and BUS access. It takes money and is not so sexy for marketing, but it works.
- AnonC 5y agoOn the competition, like Qualcomm, many Apple engineers (IIRC several tens of them) from the chip design team left and formed a new company called Nuvia, which was then acquired by Qualcomm in the beginning of this year. Apple has had a big lead on SoCs for some years, but I wonder when/if Qualcomm’s acquisition will start beating Apple’s lead here.
- Tagbert 5y agoFrom listening to interviews of Apple tech folks, they also have done a lot of optimization of their CPUs based on calls frequently used by Mac OS. I don’t recall specific examples but the fact that they can control both the hardware and software allows them to profile and tune the system as a whole.
- klelatti 5y agoAgreed that architecture is only a (possibly small) part but Arm’s business model and the other things that Arm brings to the table are also relevant. For example the small / large core approach that Apple uses hasn’t previously been an x86 feature (although clearly that is changing). Also non Apple Arm CPUs do outclass x86 in a huge segment of the cpu marketplace - on smartphones and tablets. I’d don’t think that anyone previously has thrown the amount of cash at laptop / desktop / server Arm designs that Intel spends on x86 designs - we are now seeing a number of firms having a serious go (AWS / Ampere / Qualcomm / Nvidia possibly) so with Intel fighting back on its process issues it will be an interesting few years!
- ziml77 5y agoI'm curious to see how Alder Lake's clone of the ARM big.LITTLE design performs. I wouldn't be surprised if at the very least it lets Intel beat out AMD in the mobile CPU space. (Which would be great simply because Ryzen 4000 laptops are near impossible to get)
- sharikous 5y agoARM is not a magic bullet but the M1 stems from the trend of phone processors growing up to be competitive in the PC market. Since almost (all?) mobile phones use ARM I can see a similar process of adapting other ARM processors to the PC market. But of course Apple is so far ahead that we really don't know wether and when there will be a competitive alternative, so it may as well be a streamlined x64, or a new ISA, sure. It seems to all depend on some very experienced CPU design teams and it seems that actually Apple lost some of them in the last year, I would track these news to get a better model of predicting the future than the ARM/x64 divide.