Really unfortunate move but it’s clear evidence for the need to distribute multiple x86 “versions” as long as these sorts of changes are being made.
I apologise for my ignorance but would you be so kind as to explain this please? It seems to me that if the current libraries, etc work fine for just about everyone then keeping them as a fallback option would allow for v3 capable systems to benefit from v3 libraries without sacrificing compatibility for any system currently operable.
Fallback is fine, it’s setting the baseline to v3 and not building v2 that I was speaking out against. Apologies for any confusion.
As you mentioned before doing builds a subset of packages on a different arch–level (v2/v3/v4) would require a lot more work/maintenance compared to just providing a full v3 rebuild of repos. That has it’s own costs (compute, storage, etc.), but the whole concept doesn’t require significant engineering resources.
Well, technically you can do a subset v2/v3/v4 as we do something like that in Fedora/RISCV land. We have different tags (e.g. f43-eswin, which is for ESWIN company SoC specific kernels which are non-upstream). When we generate repository (not via Pungi) we drop inheritance and this generates the delta only (e.g. just the kernels in the repo). In general we have 3 layers, and when we build images we layer them with repo priorities.
So the quick way would be to land redhat-rpm-config in each tag (v2/v3/v4) that defaults to a proper level, but then untag before generated repos, or see if this can be controlled via tag specific macros automatically without touching redhat-rpm-config.
Note it still would bring complexity as now you have more tags, and you would need to build more. You also no longer able to generate full v3 images with simply pointing DNF to a v3 repo.
Just adding (x86_64-v3) is simple and it’s a full rebuild thus easy to plug into existing DNF commands (changing repo) if you want to generate full v3 artifacts. DNF auto-pick arch level is a different part, that can come later on.
Thinking a bit more about this. If one would do a partial rebuild the changes in redhat-rpm-config might not be enough (not a 100% coverage rate). We probably would want to recompile GCC and LLVM to make sure they default to v3. Then probably also glibc to make sure v3 stuff is default/optimal without IFUNC (+ whatever is not covered by IFUNC).
For redhat-rpm-config there are two options: Use x86_64_v3 as default or make x86_64 to -march=x86-64-v3. The latter means that RPMs will be x86_64 and we don’t need to review/check SPECs for rebuilt packages. Of course manual and even AI assisted checks can be done on all ~24K packages. If we set arch as x86_64_v3, I think (I didn’t test), things like %ifarch x86_64 will no longer apply. Most (if not all) could probably move to:
rpm --eval '%{x86_64}'
x86_64 x86_64_v2 x86_64_v3 x86_64_v4 amd64 em64t
I am not deep diving into this yet, but somehow my brain keep going back to this topic. Most likely because in Fedora/RISCV land we want to support RVA23 at some point (sooner than later would be nice), but RV64GC (or RVA20) to RVA23 jump is much more significant than on x86_64 land to v3 from my point of view.
In general just doing x86_64_v3 rebuild reduced complexity a lot. Then if you want to do something hybrid like x86_64 + borrow packages from v3 you could do that.
On key decision is whether the x86_64_v3 version of the toolchain should default to x86-64-v3 code. Changing the toolchain default is desirable because it means that pip install and the like target the desired level regardless of the build system.
Would it be possible to build x86_64_v4 packages as well? At least a couple of years ago, the Fedora infrastructure was capable enough, but this may has changed.
That’s basically what I wanted to say with my last message. I think, we want to recompile toolchains and probably glibc with the new default too otherwise cannot get 100% coverage with RPM configs alone. You will get close, maybe 90+%, but not 100%.
If someone wants a sub-set of packages (let’s say v2/v3/v4), but not bring a new toolchain (which defaults to a proper hardware level) when we could split the toolchain into a separate repo ![]()
Again, back to Fedora/RISCV we do “layered” repo, and that’s just tag inheritance. Oversimplified example would be: f45 → f45-x86_64-v3-toolchain → f45-x86_64-v3.
The toolchain packages (which defaults to v3) would live in f45-x86_64-v3-toolchain, and all selected packages in f45-x86_64-v3.
As a user you could pick to just install packages from f45-x86_64-v3, but not bring in a toolchain that changes defaults. If you also pull in (i.e. enable repo) f45-x86_64-v3-toolchain you get toolchain too.
The key points would be:
- You have more tags. By default tag could incl. all inherited packages, or a subset.
- If you submit builds manually to Koji you would need to handle it. If it’s done via fedpkg (or similar) this could be adjusted to submit multiple builds. For example it could check if packages is enabled in v2/v3/v4 tags and submit all of those at once (or similar).
- This is non-blocking. In other words if, for example, you submit openssl to v2/v3/v4 tags and one of them fails it doesn’t block others. This is because the whole build happens in a different tag/target. We might need to be careful around packages that are likely to get CVE to make sure builds are in all expected tags. I don’t really expect for builds to fail between tags (v2/v3/v4), but low likelihood exist.
- There would be more repo files to ship (per tag, or tag + tag-toolchain). These need to have different priorities to layer them.
- The test matrix (if we wish) is now bigger (hopefully those are automated). Needs to be discussed how to expand it to validate all works.
- Need to check if Pungi can do repos without inheritance like koji dist-repos.
- This would have no impact (no blocking, etc) to traditional x86_64.
- You loose ability to generate full v3 image, unless if you decide to submit all packages in v3 tag.
- If you want to revet back to x86_64 it’s basically disabling repos and dnf distro-sync.
- Don’t know how this would look at Bodhi side.
- Easy to prototype on Koji side without direct impact to day-to-day operations. It’s all extra tags. We just need Pungi to generate repos without inheritance, and we can ship extra fedora-repos in COPR to experiment. We can choose which packages to rebuild (very small set) and test them on QEMU with different levels. If something doesn’t work out, or we don’t like we simply forget about these tags. Disable Pungi bits that generate them and disable COPR repo.
I think, you could start quickly without having an impact to day-to-day operations and continue testing/solving problems as you go. I am definitely missing something (like I don’t know Bodhi side of things). We could quickly prototype something if we could set some tags for it in Koji, or also can be done locally with mock + local repos to check that things work.
Anyways, I want to see what the authors vision.
v4 would be an issue for rpmfusion, the builders are v3, there are no plans to update them either.
I host one of the current power-builders, v4 isn’t even on the horizon for at least 5 years (unless someone gives me £1200 for the upgrade).
# inxi -FZi
System:
Host: buildvm-07.virt.rpmfusion.net Kernel: 6.19.12-200.fc43.x86_64
arch: x86_64 bits: 64
Console: pty pts/0 Distro: Fedora Linux 43 (Forty Three)
Machine:
Type: Kvm System: QEMU product: Standard PC (Q35 + ICH9, 2009)
v: pc-q35-10.1 serial: N/A
Mobo: N/A model: N/A serial: N/A Firmware: BIOS vendor: SeaBIOS
v: 1.17.0-10.fc44 date: 06/10/2025
CPU:
Info: 12x 1-core model: AMD Ryzen 7 5700 bits: 64 type: SMP cache:
L2: 12x 512 KiB (6 MiB)
Speed (MHz): avg: 3700 min/max: N/A cores: 1: 3700 2: 3700 3: 3700 4: 3700
5: 3700 6: 3700 7: 3700 8: 3700 9: 3700 10: 3700 11: 3700 12: 3700
Graphics:
Device-1: Red Hat Virtio 1.0 GPU driver: virtio-pci v: 1
Display: unspecified server: N/A driver: gpu: virtio-pci tty: 80x24
resolution: 1280x800
API: N/A Message: No API data available in console. Headless machine?
Info: Tools: x11: xdpyinfo, xprop, xrandr
Audio:
Message: No device data found.
Network:
Device-1: Red Hat Virtio 1.0 network driver: virtio-pci
IF-ID-1: enp1s0 state: up speed: -1 duplex: unknown mac: 52:54:00:e6:1d:15
IP v4: 192.168.1.26/24 type: dynamic noprefixroute scope: global
IP v6: 2a0e:cb01:7a:6800:75e7:6652:12e6:668b/64
type: dynamic noprefixroute scope: global
IP v6: fe80::7b9:769a:6afd:5725/64 type: noprefixroute scope: link
IF-ID-2: tun0 state: unknown speed: 10000 Mbps duplex: full mac: N/A
IP v4: 192.168.182.38 scope: global
IP v6: fe80::1946:8b44:dbb3:128a/64 virtual: stable-privacy proto
kernel_ll scope: link
WAN IP: 145.40.128.142
Drives:
Local Storage: total: 115 GiB used: 10.58 GiB (9.2%)
ID-1: /dev/vda model: N/A size: 115 GiB
Partition:
ID-1: / size: 105.75 GiB used: 10.58 GiB (10.0%) fs: ext4 dev: /dev/vda1
Swap:
ID-1: swap-1 type: partition size: 7 GiB used: 0 KiB (0.0%) dev: /dev/vda2
Sensors:
Src: lm-sensors+/sys Message: No sensor data found using /sys/class/hwmon
or lm-sensors.
Info:
Memory: total: 40.25 GiB available: 39.35 GiB used: 993 MiB (2.5%)
Processes: 284 Uptime: 19h 21m Init: systemd Shell: Bash inxi: 3.3.40
Not having x86_64_v4 packages in rpmfusion would actually be a good test case for compatibility. I think we expect rpmfusion to just keep working even if it has x86_64 packages only, even when using Fedora repositories with x86_64_v3 or x86_64_v4 packages.
I agree. There is no need for RPMFusion to support all v2/v3/v4 if we start allowing mixing/sub-set thing. In this case whatever level is supported by RPMFusion that’s what you get.
It’s likely we would provide v3 only for f45+
And will ExclusiveArch: x86_64 .... not apply to the subarches either? It sounds like we may need a mass-packaging change before this implemented to replace those usages with %{x86_64}. And also do the same for %foo_arches macros defined in redhat-rpm-config and various *-srpm-macros packages.
Yes. This was noted in the changes proposal. I also noted that in the comment (before noticing it again in the changes proposal).
rpm --eval '%{x86_64}'
x86_64 x86_64_v2 x86_64_v3 x86_64_v4 amd64 em64t
You can can do mass changes manually (shouldn’t be a significant job) or/and can use a help of AI tool to do/scan/verify things.
There is an option where you simply change x86_64 baseline in the arch tag, in that case you don’t need changes in the SPECS.
The question when is do you need RPM (and DNF, etc) to know that package is v2/v3/v4 or just knowing based from which repo you pull is enough.
Again, if we are doing a subset of packages for v2/v3/v4 (or any combination) we don’t need to roll the changes in ~24K packages.
Reminder, if we do different tag this is fully disconnected from f45 and f45-build and there is no need to rush, and this would notblock those default tags.
TL;DR I don’t think this is a major problem, and shouldn’t block existing daily Rawhide efforts.
If we would add x86_64_v3 as full primary arch (full rebuild, blocking like any other arch) we would need to change spec files before doing it, I think. We probably also would need to teach DNF abou arch-levels before rebuilding too. On RPM side all seems to be in place from a very quick check.
The question when is do you need RPM (and DNF, etc) to know that package is v2/v3/v4 or just knowing based from which repo you pull is enough.
I do know that stockfish, one of the packages that could get a huge speedup from this proposal, needs to have the precise set of ISA extensions to use configured explicitly at build time. If there’s no way to determine whether the build is v1, v2, or whatever, then there is no way for the package to benefit significantly. If things like %ifarch x86_64_v2 can work, then all is well. I freely admit that the stockfish package is very unusual, if not nearly unique, in this respect.
The first issue is intel atom processors from 5 years ago don’t support the v3 instructions. Issue? a bunch of older what chromebooks and tablets.
Where I do support it, is the changes need to be added to DNF5 and the rpms. There is no question some packages will benefit. most won’t.
-Having the ability to easily recompile for _v3 or v4 would be really nice. Other arches like ARM may also benefit from more easily using more advanced chip features as well.
optionally
-Having the updater notify and download the proper srpm would a nice feature as well as being able to use a directory on the filesystem as the repo so you can rebuild and dump the files in the directory that is a repository, that can be used by dnf. With all the updates, we regularly get having the updates be easily available isn’t necessarily bad.
The benefits to Fedora is there is no official v3 repo, thus less work. And people will start doing it right away, and hopefully reporting bugs and hopefully patches.
It allows power users easier access to performance tuning their systems.
Once you start performance tuning and building packages, some may want to get more involved in the project as maintainers or proven packagers, testers, etc. They will find bugs especially if they don’t use mock, which in itself is slow and bandwidth heavy. Which obviously there is are absolutely good reasons for Fedora to use it. Joe schmoe trying to speed up his gaming? eh.. it is just a different game. ![]()
I personally of the opinion we have a lot of people that don’t understand what they are doing so this gives people a way to f-around that is relatively safe and they are volunteering to do it.
It isn’t like I am performance tweaking every kernel released anymore, and rebuilding everything either. I used to optimize everything I used, and I have fun and learned a lot doing it. From RH 4 → Fedora 25, it was all custom kernels.
I was trying to check the status of this proposal out of curiosity, and I ended up just assuming this was either rejected or withdrawn because I couldn’t find any clearly communicated information whatsoever.
On pagure #3599, it seems stalled but the timing suggested on the last comment offering context (paraphrased: “revisit in ~3 weeks”) doesn’t appear to have been met (?).
What happened? Has the proposal been withdrawn? Has it been deferred to a later release? Rejected? Abandoned?
It did not happen for a couple of reasons, as I recall.
- lack of infra to host the v3 images
- lack of a plan for upgrade from pre-v3 to v3
- lack of a plan to get a pre-v3 set of images for max hardware compat
- no clear that it’s a overall performance improvement.
- there are ways that a package can provide pre-v3 and v3 images already that packages that will benefit can use today
This is the part of your response that I do disagree with. There isn’t currently any usable approach for individual packages to ship multiple builds targeting different microarchitecture levels. Shared libraries are said to be able to use the glibc-hwcaps mechanism, but as far as I can tell nobody has demonstrated this in practice anywhere in the distribution. Applications don’t have even that theoretical possibility.
Thanks for your reply. I was stuck (as seen in the linked ticket) at the point where this was specifically what was being evaluated from the Change Proposal owners, so that there is hard data to support either decision (accept/reject), or to at least introduce a “ground truth” for when this point is being brought up and debated.
I could not find any published comment that said if that evaluation happened at all, if there are plans for it to happen but it was delayed, if it was abandoned, etc. Every Change Proposal document I was able to find and access, shows this still as active, with a Milestone of F45, even if stalled.
All the points you listed in your reply seem to be a great summary of what was discussed in this thread, but was it decidedly posted somewhere I haven’t checked as a “decision X taken because of points A, B, C, …” ?
FESCo has not approved or rejected the Change. It is waiting on additional updates, impact analysis, and performance data from the Change Owners.