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

syft memory usage is high #1446

Open
gnmahanth opened this issue Jan 11, 2023 · 2 comments · May be fixed by anchore/stereoscope#151
Open

syft memory usage is high #1446

gnmahanth opened this issue Jan 11, 2023 · 2 comments · May be fixed by anchore/stereoscope#151
Labels
bug Something isn't working needs-research

Comments

@gnmahanth
Copy link

What happened:
when catalogers are specified, syft indexes whole file system even when its not required

What you expected to happen:
index only required files when catalogers are specified

Environment:

  • Output of syft version: latest version
  • OS (e.g: cat /etc/os-release or similar): Linux
@kzantow
Copy link
Contributor

kzantow commented Jan 11, 2023

@gnmahanth the title says memory usage is high but the description is referring to Syft scanning the whole filesystem, are both of these problems? Could you provide some more information such as how much memory Syft is using for you, what Syft command you are executing, any public containers we could use to reproduce the problem, etc?

@gnmahanth
Copy link
Author

gnmahanth commented Jan 11, 2023

I tried it on confluent kafka image

From #1447 with commands

syft -vv packages confluentinc/cp-kafka

improvements while scanning confluentinc/cp-kafka image when all catalogers are enabled
syft memory usage: ~350MB
syft memory usage with this PR: ~125MB

syft -vv packages confluentinc/cp-kafka --catalogers java

with only java cataloger enabled
syft memory usage: ~290MB
syft memory usage with this PR: ~80MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-research
Projects
Status: Backlog
3 participants