Announcement

Collapse
No announcement yet.

Building The Default x86_64 Linux Kernel In Just 16 Seconds

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Etherman
    replied
    In the single core cpu hdd era it was common to compile with -j2 to minimize waiting for IO.

    Maybe a fistfull of extra jobs could help?

    Leave a comment:


  • tchiwam
    replied
    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?
    My build sub dirs are always tmpfs since 2004...

    Leave a comment:


  • caligula
    replied
    Originally posted by nils_ View Post
    I wonder though if most files aren't cached already anyways - the impact may not be as noticeable as some think.
    The difference might be noticeable if you have spinning HDD + don't use noatime/relatime. I tried flushing the caches, then compiling three times on SATA SSD, NVMe SSD, and tmpfs. x86 defconfig & tmpfs was the fastest, 2m0,052s on avg. SATA and NVMe SSD were almost as fast here @ 2m0,787s and 2m0,643s on average. Still, I'd expect the I/O perf to have a more significant effect when the compilation is 8 times faster.

    Leave a comment:


  • nuetzel
    replied
    Originally posted by nils_ View Post
    I wonder though if most files aren't cached already anyways - the impact may not be as noticeable as some think.
    So true.

    Tried it on my poor Xeon 3470 4c/8t, 24 GB for amd-staging-drm-next.
    Only some seconds if any.
    Last edited by nuetzel; 14 August 2019, 11:31 AM. Reason: Typo.

    Leave a comment:


  • nils_
    replied
    I wonder though if most files aren't cached already anyways - the impact may not be as noticeable as some think.

    Leave a comment:


  • yokem55
    replied
    Yeah, I've had /var/tmp/portage as a tmpfs on my Gentoo boxes for forever. This is a big motivation for getting at least 32gb if ram in them as building chromium nowadays can chew up close to 12gb of disk during the build. And yeah, Zen2 is a monster for compiling code - Yesterday I recompiled everything on my new 3900x Gentoo media server with GCC-9.2 and znver2 (the ebuild showed up in portage yesterday) and ~1100 packages only took about 7hrs to build.

    Leave a comment:


  • RavFX
    replied
    Originally posted by nanonyme View Post

    Meh, that sounds nasty. People usually assume /var/tmp persists over reboot.


    It's in Gentoo doc.

    Leave a comment:


  • nanonyme
    replied
    Originally posted by RavFX View Post
    Michael How many gentooer do you know?

    My whole distrib is built in a tmpfs.
    All the other gentooer friends I know have configured it like that because... it's faster.

    Actually more funny, the only thing that I don't build in a tmpfs, is the kernel, because the tmpfs is /var/tmp (for portage building shenanigans)
    Meh, that sounds nasty. People usually assume /var/tmp persists over reboot.

    Leave a comment:


  • loganj
    replied
    someone here phoronix is really enjoying seeing amd cpu doing a lot better than intel

    Leave a comment:


  • bug77
    replied
    It would be nice to know how long this takes on NVMe and AHCI drives as well.
    But wow!

    Leave a comment:

Working...
X