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

Controlling syft's parallelism & reduce memory usage #1978

Closed
tomerse-sg opened this issue Jul 30, 2023 · 2 comments
Closed

Controlling syft's parallelism & reduce memory usage #1978

tomerse-sg opened this issue Jul 30, 2023 · 2 comments
Labels
changelog-ignore Don't include this issue in the release changelog enhancement New feature or request

Comments

@tomerse-sg
Copy link

What would you like to be added:
hi, is their a way to control Syft parallelism (number of workers)?
moreover, do you have any suggestions how can I reduce memory consumption via configuration (I want to create image SBOM)?

Why is this needed:
I want to optimize the memory usage of syft according to my needs

Additional context:

@tomerse-sg tomerse-sg added the enhancement New feature or request label Jul 30, 2023
@wagoodman
Copy link
Contributor

There is a configuration option for this (which looks to be accidentally undocumented): SYFT_PARALLELISM env var (default value is 1)

Parallelism int `yaml:"parallelism" json:"parallelism" mapstructure:"parallelism"` // the number of catalog workers to run in parallel

introduced in PR: #1355

@tgerla tgerla added the changelog-ignore Don't include this issue in the release changelog label Aug 10, 2023
@tgerla
Copy link
Contributor

tgerla commented Aug 10, 2023

Hopefully the "parallelism" option does what you need here. We'll go ahead and close this issue, but please let us know if you need anything else!

@tgerla tgerla closed this as completed Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-ignore Don't include this issue in the release changelog enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

3 participants