Originally posted by Michael
View Post
Announcement
Collapse
No announcement yet.
Fast Kernel Headers v2 Posted - Speeds Up Clang-Built Linux Kernel Build By ~88%
Collapse
X
-
Originally posted by caligula View PostHoly crap. Now C isn't the fastest language to compile. Imagine if Linux was written in Pascal. Would save millions in server hardware.
1. the more featured a language is, the more it takes to compile; you want generics, type inference, even inheritance, named parameters, be prepared to pay a price
2. longer compile times are always justified when they result in faster production code (which is almost all the time); languages like Java or C# may appear fast to compile, but they do not link anything - you'll pay a hefty runtime penalty for that
More on topic, the biggest expectation I have from these patches, whenever they manage to land, is that shorter build times will make fuzzing more feasible, so a lot more bugs will be exposed and patched.
- Likes 15
Comment
-
Originally posted by milkylainen View PostI wonder if these header changes are going to break every external kernel module build there is?
Probably a whole lot of other stuff that are halfway between userspace and whatnot.
Does anyone know how these changes interact with existing code?
Ie, how much breakage can one expect?
- Likes 4
Comment
-
-
Originally posted by perpetually high View PostDoes anyone have this patch available in a single file by chance?
Code:git clone git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git; cd tip; git diff c9e6606c7fe9..391ce485ced0
- Likes 9
Comment
-
Originally posted by rmfx View PostWow, feels like the v4 of the patch will enable an over 2x compile time speedup.
100% / (100% - 88%) = 100 / 12 = 8.3333 , i.e. over 8x speedup already.
Unless Michael misinterpreted the numbers and it's only really speeding up by 88%, which is a totally different metric which means cutting build time by about 47%:
1 / 1.88 = 0.5319
- Likes 2
Comment
-
Originally posted by zboszor View Post
Do some math. It's about cutting build time by 88% now with CLANG according to Michael .
100% / (100% - 88%) = 100 / 12 = 8.3333 , i.e. over 8x speedup already.
Unless Michael misinterpreted the numbers and it's only really speeding up by 88%, which is a totally different metric which means cutting build time by about 47%:
1 / 1.88 = 0.5319#
# Performance counter stats for 'make -j96 vmlinux' (3 runs):
#
# (Elapsed time in seconds):
#
v5.16-rc7:
231.34 +- 0.60 secs, 15.5 builds/hour # [ vanilla baseline ]
-fast-headers-v1:
129.97 +- 0.51 secs, 27.7 builds/hour # +78.0% improvement
- Likes 1
Comment
Comment