Originally posted by bachchain
View Post
Fast Kernel Headers v2 Posted - Speeds Up Clang-Built Linux Kernel Build By ~88%
Collapse
X
-
As a part time Linux user I can appreciate the time and effort put in to streamline the kernel build process and the enormous reduction in build time is very worthwhile for those who rebuild the kernel often.
Most casual Linux users may never build the kernel, instead just applying the distribution updates. While I have built kernels whenever I needed support for new features not in the distribution channel yet and sometimes just to have a kernel built specifically for my system without including unnecessary options that I don't have, but I'm pretty sure that I'm in the minority.
Even so, all users will see benefits if those who are contributing to the kernel can spend more time on improvements to kernel performance and faster implementation of new hardware features. Anything that helps the developers to streamline their work process benefits all Linux users.
Leave a 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
Leave a 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
Leave a comment:
-
-
Are you planning already some benchmark comparison between the original kernel and the fast header version ? Would be nice to confirm it doesn't generate any slowdown a runtime.
Leave a 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
Leave a comment:
-
-
Originally posted by perpetually high View PostDoes anyone have this patch available in a single file by chance?
Leave a comment:
-
-
Wow, feels like the v4 of the patch will enable an over 2x compile time speedup. When other devs start contributing, there will be a before and an after.
Leave a 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?
Leave a comment:
-
-
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.
Leave a comment:
-
Leave a comment: