-
Notifications
You must be signed in to change notification settings - Fork 111
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
fix: excessive memory usage #2164
fix: excessive memory usage #2164
Conversation
2c7fcd4
to
1316464
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2164 +/- ##
==========================================
- Coverage 92.15% 92.14% -0.01%
==========================================
Files 165 165
Lines 28768 28751 -17
==========================================
- Hits 26510 26493 -17
+ Misses 1664 1663 -1
- Partials 594 595 +1 ☔ View full report in Codecov by Sentry. |
1316464
to
7732ef6
Compare
@peusebiu can we see the effect of this change when a image with several large blobs need to be scrubbed? |
7732ef6
to
03a4b94
Compare
Ok I needed to handle a lock case, so I made an update to add a new storage method which doesn't lock. Yes tested it and no memory spike at all, on my machine is stays on a steady 1.3% memory, on main it has a lot of spikes when it's digesting big blobs. |
190db9a
to
1d89d99
Compare
instead of reading entire files before calculating their digests stream them by using their Reader method. Signed-off-by: Petu Eusebiu <[email protected]>
instead of reading entire files before calculating their digests stream them by using their Reader method.
What type of PR is this?
Which issue does this PR fix:
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:
Automation added to e2e:
Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.