Originally posted by birdie
View Post
Announcement
Collapse
No announcement yet.
Building The Default x86_64 Linux Kernel In Just 16 Seconds
Collapse
X
-
- Likes 1
-
Originally posted by caligula View Post
Can't believe Michael hasn't heard about building applications in RAM. It didn't make sense with older machines, but now even most desktops have sufficient RAM for building large projects such as the kernel in RAM. The sources require around 1 GB, and the resulting binaries also need 1-2 GB. While compiling, each gcc thread probably uses few hundred megabytes at most. So, 32 GB might be enough for building on a 64 core system.Michael Larabel
https://www.michaellarabel.com/
- Likes 2
Comment
-
Originally posted by Michael View PostIt's not a matter of "not heard of", but rather trying to be realistic - how many people actually build in tmpfs?
All buildslaves I setup build in tmpfs, debian packages can be built in tmpfs (and their wiki documents how: https://wiki.debian.org/sbuild#sbuild_overlays_in_tmpfs). With eclipse I add a link to /tmp/x.y.z/build (/tmp - as you might have gueesed - is a tmpfs), eclipse will automatically create the folder is missing.
The only downside would be missing RAM, if the linker step needs alot of it...Last edited by discordian; 14 August 2019, 07:48 AM.
- Likes 3
Comment
-
Originally posted by Michael View Post
It's not a matter of "not heard of", but rather trying to be realistic - how many people actually build in tmpfs?
As far as I know many distros now build in tmpfs to speed up the process.
- Likes 3
Comment
-
Originally posted by ernstp View Postis that "make vmlinux" or "make" (ie. all)?Michael Larabel
https://www.michaellarabel.com/
- Likes 1
Comment
-
Originally posted by Michael View Post
It's not a matter of "not heard of", but rather trying to be realistic - how many people actually build in tmpfs?
I has a sad. That compiles the kernel around 75x faster than my computer.
- Likes 4
Comment
-
Originally posted by Michael View Post
Also, it would be fun to see a graph with different -j N values! I'm guessing you would actually run into buildsystem limitations there, that it doesn't have 64 or 128 tasks to queue up all the time.
- Likes 1
Comment
Comment