CachyOS / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the CachyOS performance optimized distribution
3 stars 0 forks source link

[Request] Clang optimized package repository #17

Open GrabbenD opened 7 months ago

GrabbenD commented 7 months ago

News

Clang 17 has surpassed GCC 13 in execution performance as demonstrated here: https://www.phoronix.com/review/intel-meteorlake-gcc-clang https://www.phoronix.com/news/LLVM-Clang-Chimera-Linux-2024

Why

Love to hear your guys opinions on this!

BlueSwordM commented 7 months ago

I agree, but let's start slow. I believe our default kernel build should become Clang+march=arch+LTO first and then we'll move on to packages :)

monarc99 commented 7 months ago

If you look at the benchmarks, it would be worth it. But only for selected packages. Also because it probably means a lot of work to get various packages compiled with clang. On the other hand, there are also packages that are significantly slower when compiled with clang than the gcc variants.

ptr1337 commented 7 months ago

Currently the "cachybuilder" does not support automatic custom patching for the automatic rebuild of the archlinux packages. Since not all packages are possible to build against clang, a lot of packages would fail.

Generally I think, it would be worth for selected packages. We are already moving a lot of custom packages, which gets PGOd to be clang built, see https://github.com/CachyOS/CachyOS-PKGBUILDS/

@BlueSwordM I don't think, if it is good to provide "linux-cachyos-lto" as the default package. There are still some issues, with (Thin)LTO build kernels, specially dkms modules. Also dkms has currently a very annoying bug, which affects ThinLTO: https://github.com/dell/dkms/issues/292

We should also look first, if the results from phoronix are reproduceable or does only affect specially metor lake builds, on top we should look how the performance of gcc14 does look and if they further improved it.