by andai · 3mo ago · 0 comments
I always thought that was a case of "the tech is still catching up",[0] but it sounds like there are fundamental issues that prevent performant implementations?
If so... I heard China was investing heavily in RISC-V, which implies that either they're going to have to settle for permanently crippled perf, or find a way around the issues.
--
[0] Making chips is an extremely high tech process with decades of trial and error and proprietary secrets, so this would be the logical explanation to me regardless of architecture. But I'm not hardware guy, so I'd love to hear more about this!
Intel and AMD have proven that if you throw enough money at the problem, you can make fast microarchitectures despite a flawed ISA, and in many ways RISC-V is less flawed than x86. The things we are debating here are more along the lines of minor nitpicks.
The main roadblock to the existence of fast RISC-V cores is the entrenchment of large x86 and arm ecosystems.
I'd disagree with that, their existence and decades of a head start mean they've been much more well invested but that's one of the things we're starting to see change, even if it's because of what would appear to be political motivations. We're starting to see a lot of investment into it in China because it looks like it's a reasonable way for tech sovereignty against the x86 monopoly. They've got licenses to some older (not sure about newer) AMD processor designs, I think around Zen2 architecture, for one of their major manufacturing firms but that won't easily let them move forward since they've got to do a lot of work to keep it up with compatibility and performance for newer ISA additions and such. That's one of the reasons they've been subsiding development of LoongSong64 and RISC-V to the point where for a while the larger LoongSong64 cores were illegal to export to some countries[0].
And then you've got a lot of other companies building faster RISC-V cores, for yes more embedded style designs but not the usual traditional embedded designs either. You've got TensTorrent working on AI work loads with real hardware out there that at least for ML stuff can compete on inference if you can get your software to run on it, and then you've got Bolt doing similar for GPU workloads[1]. While both of those are closer to embedded since you're not going to use them as a desktop, they're still making really fast RISC-V cores that could be theoretically turned into a standard RVA23 core by adding the missing extensions to make it work. That's of course not trivial but the entrenchment of x86 and arm aren't quite as daunting as they might have originally seemed.
It's still not as fast as I'd like, simply because I want to start seeing some RISC-V mini pcs get made that are fine for a daily driver office pc to happen.
[0] https://www.tomshardware.com/news/china-bans-exports-of-its-...
And yes, there is a bunch of funding being pumped into it. I do have hope that some kind of RISC-V linux workstation will be viable in the next 5 years, without sacrificing too much performance or my wallet. I just wouldn't expect that to translate into making inroads into existing markets where x86 and arm have moats, like android/apple smartphones and more typical desktop/laptop workloads (even on linux).
I wouldn't count the AI/GPU stuff, those are generally pretty simple RISC pipelines with large vector units. Though TensTorrent do actually have a high-performance out-of-order rva23 core [1] that would be able to compete in this space. They are currently selling it as a "core for agentic workloads"
Not quite. RISC-V application class processors are a new development. They are starting from behind but they are improving faster than the competition. The SpacemiT K3 is 4 times faster than the K1 for example. The Alibaba C950 will be about Apple M1 level performance. And even faster designs are already in the works.
RISC-V is not “permenantly crippled”. It will catch up and maybe surpass ARM. It is more an economy of scale issue than anything.
In many ways it's not much different than Linux was in the 1990s. It was cheap and useful, but often not as performant as commercial OSes (UNIX or even windows) until big corporate money came in and started piling resources into it. Distribution fragmentation was also an issue, which could still cause headaches for RISC-V (especially if some companies start adding proprietary performance extensions that others can't). So I think it remains to be seen how RISC-V will pan out (eg will the cloud vendors see enough of an ROI supporting it for higher end computing than buying ARM licences).
Whatever leading-edge fab capacity (mostly TSMC) was available, is now tied up to supply the ongoing AI boom. And will remain so for the foreseeable future. Even if you'd have a RISC-V product for which demand/economics work out, chances are those fabs' order books are filled.
Also: design is done in many places, but actual fabrication of RISC-V SoCs in largely centered in China. Which (afaik) doesn't lack IC fabrication capacity. But does lag in leading-edge fab capacity. So: off to older nodes. Which may hurt perf/W, cost effectiveness or transistor budget. Or pay a premium (pricing products out of markets), limited production, or long lead times.
Of course this affects ARM based & other products too. But they've been in the optimization / mass fabrication / distribution pipeline much longer than most RISC-V based products. Catching up takes time, and top-tier fab capacity being swiped by Nvidia & co doesn't help to shorten that process.
I don't think it's a demand problem. Consumers don't care what powers their phone/tablet/laptop as long as it does its job. So in principle the market is there (yeah.. I understand issues like Google still working on Android-RISC-V, Windows users probably wanting x86 for legacy software etc).
That being said, demand from and via China (which has a geopolitical case for wanting to see risc-v succeed) will probably end up being what drives it forward.
Not having decently performing risc-v chips right now doesn't mean anything other than nobody spent enough time and money on accomplishing that.
But for SiFive's last silicon, the HiFive Premier P550, they claimed a specint2006 of 8.65/GHz. That should put the silicon only about 20% slower than an intel i5-6400. But if you look at geekbench scores it's about an order of magnitude slower.
Correct me if I'm wrong, but Tenstorrent has yet to ship any of their own cores? They do make very similar claims to SiFive.
Personally I'm very skeptical that these cores will be anywhere near Zen 3. I recon their performance claims are based on best-case CPU simulation, rather than a real measurement. I'd expect Raspberry Pi 4 levels of performance, a bit over double SiFive's current state of the art. An impressive improvement, but nowhere near Zen 3.
When I had brief access to a very early P870 devboard running at 2GHz it scored 2% worse than an 2.86GHz Cortex-X1 in the 7-zip benchmark compression (it was a 40% worse in decompression, but that has NEON optimized Arm assembly path and non for RISC-V). Because this was very early hardware still in bringup I expect them to get closer to the announced 2.7GHz.
But yeah, the RISC-V geekbench scores of publically available RISC-V processors are suprizingly low and idk why. Part of it is the lack of RVV support is certain workloads, but that doesn't explain the entire gap. When I looked at ST scalar performance my self it looked more comparible to similarly sized Arm CPUs.
I think I'll have to order a Pi5 (Cortex-A76) and investigate where it performes different to the SpacemiT K3 (SpacemiT X100).
On paper they should be very similar, both 2.4GHz, 4-wide decode, 3xALU, 1xBranch, (although the A76 has those on 4 execution units, while the X100 has 3 with one sharing ALU and Branch support), 2x load/store, 2xFP. The biggest obvious difference (appart from ISA), may be the cache setup after L1, with the K3 having a 4Mib L2 shared between 8 cores (no L3) and the Pi5 having a 512KiB L2 and a 2MB L3 shared between 8 cores.
Well, there is some speculation regarding these chips so no sense arguing too much about it.
That said, the SpacemiT K3 is already faster than a Pi 4 and even substantially faster than a Pi 5 for multi-core and vector stuff. And that is before counting the other 8 “AI cores” it has.
These chips will be quite a bit faster than a K3, so certainly much faster than a Pi 4.
Because, without neglecting the micro-architecture, we all know how critical the silicon process is for high-end performance.
The point is that RISC-V is not limited to lower performance by the ISA.
Yes, the fundamental problem is the fact that everybody involved in RISC-V wants to sell IP instead of a chip.
The problem with the RISC-V chips in non-embedded contexts (ie desktop or server) has absolutely nothing to do with the instruction set architecture (not entirely true but a really good first approximation). The problem is that performance is strongly dependent upon your high speed interfaces--memory, graphics, PCI, etc. And those blocks need to be strongly integrated in with your CPU interfaces.
However, if you buy a whole bunch of IP blocks and then just wire them together, your performance is going to be sub-par. And this is what every single RISC-V chip that I know of currently is.
It's not beyond someone to sit down and do the required integration like Apple did for ARM. There's just insufficient money in it so nobody is going to expend the engineers.
Riscv took all this information in, and designed a very, very good brick.
how will that pan out over the long term is really unclear and the reality is performance is actually catching up quickly
You cannot buy the company backing RISC-V to take out the competition. And if a RISC-V company stumbles, the ecosystem carries on. But if even one RISC-V company is in the right place at the right time, RISC-V can surge ahead. It is hard to imagine it does not dominate eventually.
But I also think this is an example of a slight disingenuity in RISC-V being referred to as open-source. It's borrowing the clout of open-source software projects where the end user has the freedom to compile them at home. I can't fabricate a CPU at home, I'm still beholden to whatever patents the manufacturer chooses to license. SiFive have a >billion dollar valuation, for a business based on selling licences.
Nowadays nobody will want to work on foundational open source work for free only to enrich everyone else that builds on top of it.
You get these kinds of responses when something is too close to perfection. It suddenly gets judged in a much different light.
What you're less likely to get is the consumer level PC and Laptop systems, as you'll need one large company to set the standard and others to adhere to it. So you could feasibly compile a program for a certain level of RISCV chip and have it run on many vendors processors. As it is there's several companies trying to push ARM for some sort of high end consumer PCs/Laptops but they all require different OSes and the chips aren't equivalent, so you have to compile software separately for those different platforms.
The biggest valid complaint is the lack of dedicated mask registers for vector processing, that's a huge design flaw in the vector instructions since it makes register renaming and shadow registers mandatory. In other words, the problem here is that they didn't stick with the RISC philosophy of making everything explicit.
Compressed instructions are mostly wasted encoding space, but from a performance perspective they don't matter. If they are slow then compilers will treat them as slow legacy instructions and stop using them or they will only emit aligned compressed instructions.
This has always been true, it is just this is one of those projects that gets some people very emotionally invested so such discussions do not happen in public.
See also Android, rust, webassembly, webgpu and so on.