1 Koji is Fedora's build system
3 http://fedora.riscv.rocks/koji/
4 https://koji.fedoraproject.org/koji/
6 Doesn't use cross-compilation, and not possible with current design.
7 We must find a way to run a full build system somehow.
9 Discussion of primary architecture.
32 ## What hardware should we choose for RISC-V as a primary architecture?
34 * Milk-V Pioneer (SG2042)
35 * Sophgo 2U server (SG2042)
37 - Possible performance and quality issues [unverified]
39 - Likely to end up as e-waste soon.
44 - Doesn't support any recent extensions, esp. V, H
45 - No BMC, but might use BMC-on-PCIe card
47 * [Mystery manufacturer] future development board (under NDA)
49 * Single board computers (SBCs)
51 - VisionFive2 (StarFive JH7xxx), Lichee Pi 4A, ...
53 - Limited memory, cores
55 - Upfront & ongoing engineering headaches integrating into a 19" rack
59 - Performance numbers below, but not great
60 - Really using x86-64 hardware
61 - Hardware (x86-64) is well known and easy to manage
62 - No "e-waste", servers can be repurposed
63 - Supports all the latest extensions
64 - Supports any amount of RAM, large numbers of vCPUs
65 - We can add new extensions and fix bugs relatively easily
72 ## QEMU performance numbers
74 (Times in seconds, taken from recent Fedora Koji builds)
76 binutils openssl python3.12 mingw-gcc
78 i686 1589 1577 3411 4292
80 x86-64 1419 1172 2462 1827
82 aarch64 1573 811 (?) 1845 2521
84 ppc64le 2165 1291 3073 4388
86 s390x 2553 1380 1984 (?) 6824
88 ------------ ------------ ------------ ------------
90 [qemu-system-riscv64 16 cores, 16 GB; on AMD Ryzen 9 7950X server]
93 (LTO) 4493 3052 14502 12428
94 +217% +160% +489% +580%
96 (no LTO) 3267 1351 6353 (failed)
110 "TCG" is the name for QEMU's software emulation, eg. RISC-V fully
111 emulated guest on x86-64 host.
113 Works using Translation Blocks (TBs) which translate basic blocks of
116 Well understood (by me), easy to fix simpler issues.
118 - I posted a patch yesterday which gets ~ +6% performance gain
120 A few tips to make TCG run (a bit) fast(er):
122 - Compile with -march=native (+4%)
126 - Don't overprovision host CPUs
128 * However pinning vCPUs to pCPUs didn't really help
130 - Give it plenty of guest & host RAM
132 * Measured memory overhead on host is up to 40% after running
135 * Host TBs track guest page cache; as long as a translated
136 executable remains in the guest page cache, it will not be
139 - Don't restart the VM