Skip to content

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.

129 points53 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
129 · 93% up
Kind
Text
ID
11bilsy

Author

5
posts
14
comments
0
media
View profile

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.

60 points
unknown author6 hidden

Deleted before we saved it.

15 points

Well, you asked about official support. That's probably not going to happen anytime soon.

36 points

Why can't you just use that then? Not trying to be snarky, it just seems like they've already made what you want.

3 points

So after 2 years how is it going? Any progress?

I thought Arch is supposed to be on a bleeding edge.

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.

$ p -Qlq | grep x86_64_v3
/usr/bin/extra-x86_64_v3-build
/usr/bin/staging-x86_64_v3-build
/usr/bin/testing-x86_64_v3-build
/usr/share/devtools/makepkg-x86_64_v3.conf
/usr/share/devtools/pacman-extra-x86_64_v3.conf
/usr/share/devtools/pacman-staging-x86_64_v3.conf
/usr/share/devtools/pacman-testing-x86_64_v3.conf
/usr/share/devtools/setarch-aliases.d/x86_64_v3

TIL: https://wiki.cachyos.org/en/home/features

and: https://wiki.cachyos.org/en/home/Repo

25 points

IIRC, didn't testing reveal not much performance gain overall?

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.

17 points

Between v1 and v3? I highly doubt that.

7 points

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.

13 points

Between v1 and v3? I highly doubt that.

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.

3 points
unknown author

Deleted before we saved it.

1 points

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.

20 points

I'm using this too, but v3. Something like a year+ or so already, need to check pacman log to be precise.

2 points
unknown author1 hidden

Deleted before we saved it.

0 points

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.

2 points
unknown author17 hidden

Deleted before we saved it.

5 points

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

4 points
unknown author2 hidden

Deleted before we saved it.

6 points

Apps that do use it will benefit from it. And when those apps will end their work faster resources for apps that do not will be available faster. So even those apps which do not support this will benefit from it.

if app use avx512 like RPCS3 don't need my distro to complied with special flag to benefit use this extension

And it does not break compatibility for anything, on the contrary it adds it for newer hardware.

if you complied package with V3 any CPU that doesn't support this extension will not work with this package

4 points

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.

3 points
unknown author

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.

3 points

I think Arch devs are working on SVN to Git package migration. They will probably do x86_64_v3 afterwards.

2 points

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

1 points

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?

0 points

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.

4 points

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:

  • v1 SSE, SSE2
  • v2 SSE3, SSE4
  • v3 AVX, AVX2
  • v4 AVX512
2 points
unknown author

Deleted before we saved it.

2 points

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.

-2 points

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.

21 points

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.

4 points

Please don't. I have an old Core 2 Duo CPU and I'd really be sad to lose Arch Linux support.

-11 points
unknown author11 hidden

Deleted before we saved it.

13 points

It's just we who paid not so small amount of money

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.

7 points

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 am sure by that time those won't be even able to be used daily comfortably.

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?

-12 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.