Skip to content

Add ccache to kernel builds (local + CI)#155

Merged
bleggett merged 12 commits intomainfrom
bleggett/ccache-hacking
Mar 7, 2026
Merged

Add ccache to kernel builds (local + CI)#155
bleggett merged 12 commits intomainfrom
bleggett/ccache-hacking

Conversation

@bleggett
Copy link
Contributor

@bleggett bleggett commented Mar 6, 2026

Helps a bit with long kernel builds

Local results for a single host kernel 6.18.16 build, with docker prunes in between to bust OCI cache:

# Docker prune no ccache build
time sh hack/build/docker-build.sh only-latest-lts
123.58s user 68.49s system 12% cpu 25:14.28 total

# Docker prune ccache build
time sh hack/build/docker-build.sh only-latest-lts
119.09s user 67.52s system 24% cpu 12:44.90 total

~25 mins down to ~13 mins

Improves, but does not close #139

@bleggett bleggett force-pushed the bleggett/ccache-hacking branch 4 times, most recently from d85e092 to da04b89 Compare March 6, 2026 21:16
@bleggett bleggett force-pushed the bleggett/ccache-hacking branch from da04b89 to 5c94ecb Compare March 6, 2026 21:19
azenla
azenla previously approved these changes Mar 6, 2026
@azenla
Copy link
Member

azenla commented Mar 6, 2026

This is great work!

@bleggett bleggett merged commit 9f2c056 into main Mar 7, 2026
6 checks passed
@bleggett bleggett deleted the bleggett/ccache-hacking branch March 7, 2026 01:52
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.

PRs to this repo are expensive

3 participants