You are not logged in.

#1 2021-06-06 17:01:52

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,248
Website

Has anyone experimented with a kernel built with clang

Just wondering what experiences have been building a kernel with clang now that lto has been merged for 5.12.y.  Here is a modified PKGBUILD that builds the 5.12.9 kernel with clang and thin lto.
  I haven't been able to find any controlled comparison/benchmarks assessing the performance of a gcc compiled kernel vs clang compiled kernel.  Perhaps someone else has a link to share?

EDIT: if you use dkms, you might need to tweak the headers as it may have issues.  See: https://aur.archlinux.org/cgit/aur.git/ … trous#n160 (note that I haven't verified this myself/I do not use dkms).

source: https://www.phoronix.com/scan.php?page= … LTO-Merged

Last edited by graysky (2021-06-06 17:11:32)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2021-06-06 19:32:27

loqs
Member
Registered: 2014-03-06
Posts: 13,448

Re: Has anyone experimented with a kernel built with clang

Are you going to create a gcc based build with CONFIG_GCC_PLUGIN_STRUCTLEAK disabled to compare against the clang build?

Offline

#3 2021-06-06 19:49:44

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,248
Website

Re: Has anyone experimented with a kernel built with clang

I didn't plan to do any benchmarking myself, just asking here for experience and links.  Googling myself failed to give anything relevant.

Last edited by graysky (2021-06-07 10:35:16)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2021-06-07 16:34:13

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 346
Website

Re: Has anyone experimented with a kernel built with clang

https://bbs.archlinux.org/viewtopic.php?id=258717

Remember seeing this thread previously, looks like some chatter there you might be interested in?


"the wind-blown way, wanna win? don't play"

Offline

Board footer

Powered by FluxBB