Talk:Kernel/Optimization
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (
~~~~
), and indent successive comments with colons (:
).
Add new sections at the bottom of the page, under a heading (== ==
). Please remember to mark sections as "open for discussion" using {{talk|open}}
, so they will show up in the list of open discussions.Examples
You have just added some examples for hardening the kernel. Maybe you want read more here User:Pietinger/Tutorials/Kernel_Hardening_with_KSPP
-- Pietinger 09:03, 07 March 2023 (UTC)
Wording Queries
This is a really good new submission and one I think many people will find helpful so thanks for creating it.
I do have two queries though:
Here you have suggested using -O3, I know from testing using it systemwide this is generally slower so I think if you know in the case of kernel this is better it would be wise to add some results to show what to accept.
2. Kernel/Optimization#Clang.2FLLVM
Could you clarify what the warning is for on this one as you can use a LLVM compiled system with a GCC compiled kernel with very few issues nowadays as I'm running gentoo-kernel-bin on my system which is setup in this way.
-- Immolo (talk) 16:19, 10 March 2023 (UTC)
- 1. You can see some results in Phoronix article. I might add my own benchmarks 2. What i meant is to not mix the binutils, for example make CC=gcc LD=ld.lld AR=llvm-ar will not work because LLVM's ar and ld is not compatible with GCC. -- Gso321 (talk) 17:25, 10 March 2023 (UTC)
Links to hardened sources
Maybe you are interested also in this one: https://docs.clip-os.org/clipos/kernel.html#configuration (Clip OS is based on Gentoo and made from the french secret service.) -- Pietinger 07:55, 18 April 2023 (UTC)
Compiling Kernel GCC GPO not work
- Added. -- Antonellocaroli (talk) 09:04, 19 August 2023 (UTC)