Any progress about official support for x86_64_v3?
It was 2 years ago that i read about arch linux developers discussing about providing x86_64_v3 port for arch. https://www.phoronix.com/news/Arch-Linux-x86-64-v3-Port-RFC
It's already a decade that cpus with x86_64_v3 support exist and we do not take advantage of that :(
So after 2 years how is it going? Any progress?
I know about third party repos like this https://git.harting.dev/ALHP/ALHP.GO but i am interested in official support.
I thought Arch is supposed to be on a bleeding edge. This would help not only performance but also battery life for laptops. This kind of optimization is one of the reasons why intel clear linux performs better then any other linux distro.
EDIT: For anyone who does not understand. This does not affect any old hardware. This just adds support for new hardware features such as haswell and later cpus. They will work 10-15% faster on arch then before. This is one of reasons why intel clear linux is much faster then any other distro out there.
Edited 26 Feb 2023. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 129 · 93% up
- Kind
- Text
- ID
- 11bilsy
72 comments
Last public discussion was a year ago, and the problems still persist https://lists.archlinux.org/archives/list/arch-dev-public@lists.archlinux.org/thread/5QEXAPTOI5KGHHCWXGFS4AT2IMZQ7IJE/
I think the main blockers are still the tooling and the need for better build automation.
Deleted before we saved it.
Well, you asked about official support. That's probably not going to happen anytime soon.
The issue holding it up was not in ability to deliver the port (like that) but in building, managing, and delivering two versions of every package.
But they've not upstreamed it?
Why can't you just use that then? Not trying to be snarky, it just seems like they've already made what you want.
IIRC, didn't testing reveal not much performance gain overall?
I'd be looking into using the officially supported devtools to build my own packages if I wanted v3.
TIL: https://wiki.cachyos.org/en/home/features
and: https://wiki.cachyos.org/en/home/Repo
Testing IIRC showed ~10-15+% improvement across the board for things like the kernel, but it depends on the specific workloads. There wasn't a whole lot of difference for V2 except perhaps for ivy bridge, but even then it was smaller by the time you are at ivy you really want V3 minus a few calls not V2.
Between v1 and v3? I highly doubt that.
Well it's true.
Most applications that care already used advanced instructions opportunistically at runtime (like ffmpeg) or just link optimized libraries like BLAS or MKL (everything math/science related).
99 times out of 100 those cases are some execution kernel that it gets to run a million times — that's why it uses SIMD in the first place and why it doesn't care about a few measly branches at the beginning to support multiple archs.
IIRC, The potential for a performance improvement is there, if the additional capabilities are leveraged.
IE: when multi core processors became commonplace, it was not uncommon for applications to still use only one core, so in that case the potential gains were not utilized.
I'm not sure if these new extensions are leveraged on a per program level (which I have read), the compiler level, or whatever other possibilities exist and if this is even accurate. If only a small percentage of the applications capable of using these newer extensions do, seems that leaves a lot on the table for improved performance.
Hopefully someone more educated on this subject will follow up.
Deleted before we saved it.
I'm using this: https://git.harting.dev/ALHP/ALHP.GO
It is as simple as installing the aur package and adding the new repos to pacman.conf
Though I'm only using v2 because sandy bridge lol.
I'm using this too, but v3. Something like a year+ or so already, need to check pacman log to be precise.
Deleted before we saved it.
Oh I missed that, and yes you're right, though I'm planning to upgrade the cpu this year.
Also v2 doesnt have much improvement but it should have some measurable impact on power consumption, though I haven't personally measured that.
You can also use the CachyOS repos which have packages compiled with LTO as well.
I've added cachyos repos, is there any difference with https://git.harting.dev/ALHP/ALHP.GO?
Deleted before we saved it.
Deleted before we saved it.
Deleted before we saved it.
expect from FMA and AVX2 i don't you will see big improvement in performance
this will not effect app that dont use this extension
so there no reason to break compatibility for just that
Deleted before we saved it.
if app use avx512 like RPCS3 don't need my distro to complied with special flag to benefit use this extension
if you complied package with V3 any CPU that doesn't support this extension will not work with this package
If you care about this Sort of thing, try gentoo.
Its trivial to change compile flags... In the make config, you add -march=native and all is optimised for your specific CPU.
I am about to give it my own attempt at rebuilding all Arch packages for x86-64-v3 (and maybe also -O3, still unsure).
Within now and a week I will probably know if I was an idiot when I decided to invest in a build server exclusively for this project.
I do not think Arch should attempt a full switch to -v3 anytime soon. A significant amount of users, possibly even a majority, are still actively and happily running -v1/-v2 capable hardware.
But I would very much welcome a -v3 option for Arch Linux.
I think Arch devs are working on SVN to Git package migration. They will probably do x86_64_v3 afterwards.
CachyOS already did all the needed steps :) CachyOS provide all packages x86-64-v3 and also provide x86-64-v4 kernels.https://cachyos.org/
I believe the Arch Linux devs won't implement it. Let me show you example:
They need to adjust pacman for auto-detection of architecture, but they refused PR without reason. https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/52#note_87654
So default Arch Linux pacman can't know if you have x86-64-v1, v2, v3 or v4, thanks to Arch devs.
You can use CachyOS repo in your current Arch Linux installation https://github.com/CachyOS/linux-cachyos#cachyos-repositories
You can also use ALHP repo: https://git.harting.dev/ALHP/ALHP.GO
Will my CPU stop being supported if I still have x86_64-v2? I kind of don't want to switch to another distro just because of this.
Edit: I don't mind, but why am I being downvoted? Am I wrong not to want to switch to another distro or ask questions?
Last i heard the plan was a v1 and a v3 version in parallel.
All new processors should have v3. IIRC The x86_64_v3 ISA was first introduced in 2011 with AMD's "Bulldozer" processors, and it was later adopted by Intel with the release of their "Haswell" processors in 2013.
You can't really speak in terms of absolutes when it comes to this. The version definitions are really murky. They weren't even officially defined until just a few years ago and the boundaries are really weird.
In a nutshell:
My processor has v2, but thanks for the information.
No, they will not be removing support for existing CPUs.
Deleted before we saved it.
I’ve said it before and I’ll say it again but I really think Arch should not bother with the plan to provide both v3 optimized and unoptimized packages, and move forward with only v3 versions. Arch is a bleeding edge community distro that is well positioned to be once again known for being fast optimized and modern at the cost of stability. The desire to constrain Arch to only choices that maintain continued compatibility is at odds with it’s position in the wider ecosystem. Projects like Debian are much better suited to maintaining long term stability and compatibility.
It’s clear that things are stalled indefinitely with the need for tooling and automation to build multiple packages. So the team should not build multiple packages. Instead they could announce a move to v3 optimization in 1-2 years, let existing hardware that will be affected move to another distro, and then let Arch once again be the bleeding edge fast optimized distro at the head of the pack. Let Arch be Arch.
It's not the goal of Arch to be the fastest, most bleeding edge distro. It's a pragmatic, user-centric distro meant to fulfill the needs of those who contribute to it. How many users would it truly benefit for Arch to drop support for marginally old software versus the number of users who'd get screwed? I'd even argue that Arch is better known for breathing new life into older hardware than for being a bastion of ultra-optimisation.
Eh, I already have hardware that support has been dropped for (I assume “old software” is a typo). I simply moved it to another distro. It used to be the case that Arch was one of the more optimized distros and was it absolutely was ahead of the curve on moving to x64. It's true it has not pursued that the last 10 years but with Fedora raising to V2, I think it's foolish to give up Arch’s position in the wider ecosystem. And it would be the vast majority of CPUs in use now plus even more in a year or two which would show benefits.
I‘d argue focusing on improving the performance of Arch on nearly all hardware from the last decade is more pragmatic than leaving performance on the table for most users. I also think the original V3 proposal was early. I am advocating this go into effect around 5 years after the discussion started.
Deleted before we saved it.
Please don't. I have an old Core 2 Duo CPU and I'd really be sad to lose Arch Linux support.
Deleted before we saved it.
Oh, dang. Not sure I qualify then. I paid a mere USD 297 for my T480 (8th gen Intel CPU), will I be able to take advantage of v3?
Not sure why system cost matters.
Honestly sounds like you feel entitled to this because you gave a big amount of money to people who are not the Arch devs or community, in order to get better hardware in your personal home.
Do you think that that group you call "we who paid much money" should be more important than users who chose to not do that?
I hope that I will be able to use my system in 10 years the same way I can today. Why do you suggest otherwise? Because software is more and more unoptimized and made in a shitty way? Or because new functionality absolutely needs new hardware, and there's no way around that?