Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install kernel headers and modules in parallel #2185

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

bcressey
Copy link
Contributor

@bcressey bcressey commented Jun 6, 2022

Issue number:
N/A

Description of changes:
Install kernel headers and modules in parallel, to speed up kernel builds.

Testing done:
Built the 5.4 and 5.10 kernels.

I've been using this patch locally for a few weeks and haven't seen any build failures.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

This provides a significant speed boost for kernel builds - around
50 seconds on a system with many available CPUs.

Signed-off-by: Ben Cressey <[email protected]>
Copy link
Contributor

@arnaldo2792 arnaldo2792 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the build faster? 👟

@markusboehme
Copy link
Member

Was the build faster? athletic_shoe

According to the commit message, this saves up to 50 seconds on a sufficiently large machine. Nice!

Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:neckbeard:

@bcressey bcressey merged commit 3ff0417 into bottlerocket-os:develop Jun 7, 2022
@bcressey bcressey deleted the kernel-install branch June 7, 2022 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants