Skip to content

Tune concurrency and scanFD#1078

Merged
egibs merged 4 commits into
chainguard-dev:mainfrom
egibs:tune-concurrency
Aug 12, 2025
Merged

Tune concurrency and scanFD#1078
egibs merged 4 commits into
chainguard-dev:mainfrom
egibs:tune-concurrency

Conversation

@egibs

@egibs egibs commented Aug 9, 2025

Copy link
Copy Markdown
Member

This PR makes some minor tweaks to how per-scan concurrency is handled along with the scanFD method which was duplicating size calculations.

While it shouldn't matter too much, we can cap the concurrency for processing standard file paths along with extracted file paths so that we don't just use the configured concurrency value everywhere.

We still need to create a 1:1 pool of scanners to available CPUs since we use the pool for the duration of a mal run which may execute concurrent scans of single files (like make refresh-sample-testdata).

@egibs egibs requested review from eslerm and stevebeattie August 9, 2025 18:07
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
@egibs egibs force-pushed the tune-concurrency branch from ae40122 to a7e0dfd Compare August 9, 2025 21:43
Comment thread pkg/action/scan.go Outdated
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
@egibs egibs enabled auto-merge (squash) August 12, 2025 17:10
@egibs egibs merged commit c1bbcba into chainguard-dev:main Aug 12, 2025
12 checks passed
@egibs egibs deleted the tune-concurrency branch October 31, 2025 17:51
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.

2 participants