Skip to content

Conversation

@geyslan
Copy link
Member

@geyslan geyslan commented Sep 26, 2025

1. Explain what the PR does

9d785e4 feat(btfhub): BTF generation with parallel jobs

- Pass to use multiple jobs in btfgen.
- Introduce logic to calculate optimal parallel job count based on
  available CPU cores.

2. Explain how to test it

This depends on aquasecurity/btfhub#150.

3. Other comments

@geyslan geyslan added this to the v0.24.0 milestone Sep 26, 2025
@geyslan geyslan self-assigned this Sep 26, 2025
Copilot AI review requested due to automatic review settings September 26, 2025 12:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the BTF generation process by introducing parallel job execution to improve performance. The script now automatically calculates the optimal number of parallel jobs based on available CPU cores and passes this to the btfgen tool.

Key changes:

  • Adds automatic calculation of optimal parallel job count based on CPU cores
  • Introduces tiered job allocation logic (full cores for ≤2, cores-1 for ≤4, cores-2 for >4)
  • Updates btfgen invocation to use the -j flag for parallel execution

- Pass to use multiple jobs in btfgen.
- Introduce logic to calculate optimal parallel job count based on
  available CPU cores.
@geyslan geyslan force-pushed the multiple-btfgen-jobs branch from cfd114a to 9d785e4 Compare September 26, 2025 12:49
@geyslan geyslan requested a review from yanivagman September 26, 2025 13:38
@geyslan geyslan merged commit 7a21f1a into aquasecurity:main Sep 26, 2025
84 of 85 checks passed
@geyslan geyslan deleted the multiple-btfgen-jobs branch September 26, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants