New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pacman: Set default x86_64 march to core2
#3229
Conversation
I am still keeping a couple of machines alive with |
Do you suggest |
I don't know about AMD. I've dealt with an AMD X2 something, that also could run win10, but don't know how that fits into those intel codenames. Wikipedia says it has sse3 but doesn't mention ssse3 |
I still think we should try to support the same hardware as Windows does, for the Windows versions we support, unless there is a good reason.
edit: that doesn't mean that we shouldn't merge this PR, just wanted to mention it.. edit2: reqs for 8.1 are "PAE, NX, and SSE2, CMPXCHG16b, PrefetchW, and LAHF/SAHF " http://windows.microsoft.com/en-us/windows-8/system-requirements |
Would the result be same if a different version of mingw-w64-crt package is added with x86_64-v2? |
No, it affects all binaries/libraries. |
https://superuser.com/a/941175 has some CPU requirement info if we want to target 8.1 So If understand it correctly, in theory there are core2 that would run 8.1, but it's questionable how many people that affects. The next level up is nehalem, which is equivalent to x86-64-v2, so this looks fine to me I think. If we decide to drop core2. |
Some statistics:
FireFox Data Arch |
The difference between |
I tried to replicate the "openssl" benchmark used there (openssl speed rsa) with different arch values but there is no difference at all: https://gist.github.com/lazka/722b926e1ffe04ba99da7f33c625ef2b
Then I'd vote for @lhmouse fyi, if you run |
Thanks for the information. Updated. |
Maybe our OpenSSL is already optimized to choose the right CPU architecture at runtime, like OpenBLAS, svt-av1, dav1d, embree ... etc. |
yeah, likely that or asm. I was just wondering since they state some improvement here: https://gitlab.archlinux.org/archlinux/rfcs/-/blob/69bda815a157b3593f514d93f961da15ab3c59c1/rfcs/0002-march.rst#L89 |
the commit message needs updating too. |
This allows builtin atomic operations on 128-bit integers. Signed-off-by: LIU Hao <lh_mouse@126.com>
Oops, updated too. |
OpenSSL doesn't have runtime SIMD features detection. |
C-Ray benchmark:
x86-64:
x86-64-v2:
x86-64-v3:
|
I think that is the cut-off of core2. The only thing I'm questioning there is SSSE3 just because some AMD did not include that, but 99.5% having it is pretty darn good. |
x86-64-v2
core2
This allows SSE4.2 and CMPXCHG16, the same with RHEL 9.
Reference: https://developers.redhat.com/blog/2021/01/05/building-red-hat-enterprise-linux-9-for-the-x86-64-v2-microarchitecture-level
Signed-off-by: LIU Hao lh_mouse@126.com