Readit News logoReadit News
haerwu commented on RISC-V Is Sloooow   marcin.juszkiewicz.com.pl... · Posted by u/todsacerdoti
echoangle · 5 days ago
Is there a simple explanation why RISC-V software has to be built on a RISC-V system? Why is it so hard for compilers to compile for a different architecture? The general structure of the target architecture lives inside the compiler code and isn’t generated by introspecting the current system, right?
haerwu · 5 days ago
Cross compilation of entire distributions requires such distributions to be prepated for it. Which is not a case when you use OpenEmbedded/Yocto or Buildroot to build it. But it gets complicated with distributions which are built natively.

Fedora does not have a way to cross compile packages. The only cross compiler available in repositories is bare-metal one. You can use it to build firmware (EDK2, U-Boot) or Linux kernel. But nothing more.

Then there is the other problem: testing. What is a point of successful build if it does not work on target systems? Part of each Fedora build is running testsuite (if packaged software has any). You should not run it in QEMU so each cross-build would need to connect to target system, upload build artifacts and run tests. Overcomplicated.

Native builds allows to test is distribution ready for any kind of use. I use AArch64 desktop daily for almost a year now. But it is not "4core/16GB ram SBC" but rather "server-as-a-desktop" kind (80 cores, 128 GB ram, plenty of PCI-Express lanes). And I build software on, write blog posts, watch movies etc. And can emulate other Fedora architectures to do test builds.

Hardware architecture slow today, can be fast in the future. In 2013 building Qt4 for Fedora/AArch64 took days (we used software emulators). Now it takes 18 minutes.

haerwu commented on RISC-V Is Sloooow   marcin.juszkiewicz.com.pl... · Posted by u/todsacerdoti
LeFantome · 5 days ago
If he expects it to be resolved by the end of the year (and I agree it likely will be), why is he writing a post like this?

Is this because Fedora 44 is going to beta?

haerwu · 5 days ago
Because I can.

Is it good enough answer?

haerwu commented on RISC-V Is Sloooow   marcin.juszkiewicz.com.pl... · Posted by u/todsacerdoti
haerwu · 5 days ago
I updated blog post after reading comments from Matrix/Slack/Phoronix/HN/Lobster/etc. places.

- mentioned which board had 143 minutes, added info about time on Milk-V Megrez board

- added section 'what we need hw-wise for being in fedora'

- added link to my desktop post to point that it is aarch64, not x86-64

- wording around qemu to show that I use it locally only

haerwu commented on Bought myself an Ampere Altra system   marcin.juszkiewicz.com.pl... · Posted by u/pabs3
lisper · 9 months ago
OK, this is something I know very little about so you may have to explain it like I'm a complete noob, but I still don't understand why, if all you want to do is boot 64-bit Linux, you couldn't use, say, a Raspberry Pi 4 instead of spending thousands of zloties on an 80-core machine that requires industrial cooling.
haerwu commented on Bought myself an Ampere Altra system   marcin.juszkiewicz.com.pl... · Posted by u/pabs3
szszrk · 9 months ago
Normal ARM64 80 core system with $1000 EATX motherboard? How is this typical?
haerwu · 9 months ago
Depends on how you look at it.

Would you call Threadripper system "a normal build"? For many people they are normal builds because they need more computing power or more PCIe lanes than "normal user" desktop has.

On the other side you have those who pretend to use raspberry/pi 3 as "an Arm desktop" despite only 1GB of ram and 4 sluggish cores.

haerwu commented on Bought myself an Ampere Altra system   marcin.juszkiewicz.com.pl... · Posted by u/pabs3
burnt-resistor · 9 months ago
1341 PLN / 371 USD isn't "cheap" for 25% more cores. That's almost double the price.

Q64-22 on eBay (US) for $150-200 USD / 542-723 PLN.

https://www.ebay.com/itm/365380821650

https://www.ebay.com/itm/365572689742

haerwu · 9 months ago
Those auctions are where we looked at. No answer from seller - probably they did not wanted to deal with sending packages outside of USA.
haerwu commented on Bought myself an Ampere Altra system   marcin.juszkiewicz.com.pl... · Posted by u/pabs3
rixed · 9 months ago
Why is it hard to get a mac or a pi?
haerwu · 9 months ago
Apple Mac you can buy now will have M3 or M4 cpu. While Asahi team supports only M1 and M2 families.

So you cannot run Linux natively on currently-in-store Mac hardware.

And raspberry/pi is a toy. Without any good support in mainline Linux.

haerwu commented on Bought myself an Ampere Altra system   marcin.juszkiewicz.com.pl... · Posted by u/pabs3
nubinetwork · 9 months ago
Radxa orion o6 claims to be the first arm v9 system available.
haerwu · 9 months ago
"claims" is very good summary

In my previous post https://marcin.juszkiewicz.com.pl/2025/06/20/the-hunt-for-a-... I wrote:

> There were “Arm V9” systems before it, so it was not “World’s First”. There were several blobs needed to run it, so it was not “Open Source”.

haerwu commented on Bought myself an Ampere Altra system   marcin.juszkiewicz.com.pl... · Posted by u/pabs3
zozbot234 · 9 months ago
Asahi Linux might support 64k pages on Apple Silicon hardware. Might require patching some of the software though, if it's built assuming a default page size.

It should also be possible to patch Linux itself to support different page sizes in different processes/address spaces, which it currently doesn't. It would be quite fiddly (which is why it hasn't happened so far) but it should be technically feasible.

IIRC ARM64 hardware also has some special support (compared to x86 and x86-64) for handling multiple-page "blocks" - that kind of bridges the gap between a smaller and larger page size, opening up further scenarios for better support on the OS side.

haerwu · 9 months ago
Apple Mx family of cpus supports only 4k and 16k page sizes. There is no way to run 64k binaries there without emulating whole cpu.
haerwu commented on Bought myself an Ampere Altra system   marcin.juszkiewicz.com.pl... · Posted by u/pabs3
lisper · 9 months ago
> some of the tests require booting systems with 64k pages

OK, but then why an 80-core CPU?

haerwu · 9 months ago
@lisper because Q32 is more expensive than Q64 and I got offer for Q80 one.

Amount of options for sensible AArch64 hardware is too small (or too expensive).

u/haerwu

KarmaCake day15January 11, 2020View Original