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

.github: add ccache #82

Merged
merged 1 commit into from
Dec 14, 2024
Merged

.github: add ccache #82

merged 1 commit into from
Dec 14, 2024

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Dec 13, 2024

Out of the 11-12 minutes the build currently takes, the kernel compilation uses the vast majority of that time. This is pointless: try to cache that.

@marc-hb
Copy link
Collaborator Author

marc-hb commented Dec 13, 2024

First cache entry saved in https://github.com/pmem/run_qemu/actions/runs/12323797148/job/34400129662?pr=82

Uses only 100M!

@marc-hb
Copy link
Collaborator Author

marc-hb commented Dec 13, 2024

Ubuntu 24.04 https://github.com/pmem/run_qemu/actions/runs/12324080756/job/34400938351?pr=82 is 10 min faster but Ubuntu 22.04 is still slow because it uses a different toolchain. They should not share cache entries, I need to refine the keys.

Also: Ubuntu 24.04 has only 50% cache hits, maybe the kernel build is not reproducible? 10 minutes less is good enough of a start.

Local storage:
  Cache size (GiB):  0.1 /  5.0 ( 2.27%)
  Hits:             3130 / 6198 (50.50%)
  Misses:           3068 / 6198 (49.50%)

EDIT: new separate cache entries with longer keys: https://github.com/pmem/run_qemu/actions/runs/12324292007/job/34401567430?pr=82

Out of the ~15 minutes the build currently takes, the kernel compilation
uses the vast majority of that time. This is pointless: try to cache that.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb
Copy link
Collaborator Author

marc-hb commented Dec 13, 2024

Both 20.04 and 22.04 down to 6 minutes in https://github.com/pmem/run_qemu/actions/runs/12324743562/job/34402834749?pr=82

This is good to go.

@marc-hb marc-hb marked this pull request as ready for review December 13, 2024 23:59
@marc-hb marc-hb merged commit 13fadb9 into pmem:main Dec 14, 2024
2 checks passed
@marc-hb marc-hb deleted the ccache branch December 14, 2024 01:08
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.

1 participant