Originally posted by birdie
View Post
Announcement
Collapse
No announcement yet.
"CC_OPTIMIZE_FOR_PERFORMANCE_O3" Performance Tunable Dropped In Linux 6.0
Collapse
X
-
Originally posted by birdie View Post1. There's no need to add this ugly fucking picture.
Originally posted by birdie View Post2. You're free to compile the kernel with -O999 if you want.
3. You're free to create your own distro where you compile everything with -O999.
Originally posted by birdie View PostGCC developers themselves have said on multiple occasions that -O3 enables experimental optimization options which may or may not improve performance but surely will add bloat.
Originally posted by birdie View PostThis topic is not worth the electrons wasted on it.
Originally posted by birdie View Post/Thread.
- Likes 4
Comment
-
Originally posted by CochainComplex View PostHaswell was introduced roughly 10 years ago and besides it resembles the roughly the compilerflag x86_v2.
BTW, the whole tangent about Clear Linux is a waste of time. Its only relevance to the discussion is in showing that -O3 works and doesn't compromise stability.Last edited by coder; 11 August 2022, 06:11 AM.
- Likes 2
Comment
-
I see there's a cult of -O3 here: you, guys, are welcome to use Clear Linux, Gentoo, FreeBSD or create an Ubuntu SUPER DUPER FAST SPIN compiled with -O3 -march=zen3 -flto -pgo since I presume most people here are rabid AMD fans.
Oh and make sure you've not missed other experimental GCC flags. Every optimization matters, why stop at -O3?
Comment
-
Originally posted by DanglingPointer View PostThe -O2 religion vs the -O3 cult! Or is it vice versa?
Disclaimer: I have only ever used KCFLAGS=" ...-O3"
Code:$ time KCFLAGS="-march=native -msse2avx -pipe -O3" KCPPFLAGS="-march=native -msse2avx -pipe -O3" make -j$(( $(nproc) + 2 )) deb-pkg LOCALVERSION=-danglingpointer-zen3-optimised
- Likes 1
Comment
-
Originally posted by birdie View PostI see there's a cult of -O3 here: you, guys, are welcome to use Clear Linux, Gentoo, FreeBSD or create an Ubuntu SUPER DUPER FAST SPIN compiled with -O3 -march=zen3 -flto -pgo since I presume most people here are rabid AMD fans.
Oh and make sure you've not missed other experimental GCC flags. Every optimization matters, why stop at -O3?
e.g. your beloved Wayland
p.s.:...nitpicking but PGO does not work by just adding the "-pgo"-FlagLast edited by CochainComplex; 11 August 2022, 07:01 AM.
- Likes 2
Comment
-
Originally posted by coder View PostRegarding your quoted results: is the first set reporting the time to complete a fixed workload and the second set reporting the speed achieved? In other words, "lower is better", in the first test, but "higher is better" in the second?
BTW, I'm currently still running the Ofast kernel I tested last because I was too lazy to recompile and reboot again. So far no issues. Not that I would recommend it or anything, but no nasal demons have come out of my nose yet.Last edited by binarybanana; 11 August 2022, 07:01 AM.
- Likes 3
Comment
-
Originally posted by CochainComplex View Post
Reminds me of the conservative racecar engineer telling that speed above 150km/h in corner xyz is not save because...techyadayada. But after 10 rounds petrolhead "no brainer" testdriver jumps out of the car shouting: did you see? I beat the 160km/h mark in the corner?! wuhhuu that was fing awesome.
I guess we have the same here too.Last edited by dekernel; 11 August 2022, 08:35 AM.
- Likes 1
Comment
-
Originally posted by coder View PostI don't care about the kernel config option, really. Just this notion that -O3 is risky or not worthwhile.
Originally posted by coder View PostCool, so maybe use -O0. If you prize stability above all else, then you really have no ground to stand on, here.
Originally posted by coder View PostEh, it seems to me the kernel developers don't necessarily know a lot more about -O3 than you do, because the topic seems taboo. If no one goes there, it will forever stay shrouded in mystery.
- Likes 2
Comment
Comment