Disable parallel downloads for binpkgs.
The gsutil -m feature does not speed up downloads currently, but
increases our memory usage per gsutil instance from ~110MB to ~250MB.
Disable it for now for binpkgs (we do a ton of those in parallel and
they can easily use up all of our memory, even 128GB).
BUG=chromium:361740
TEST=Trybot run. Notice less memory usage.
Change-Id: I036087cf391f64f71cf6b0d786c0a4c935f46502
Reviewed-on: https://chromium-review.googlesource.com/193868
Reviewed-by: Yu-Ju Hong <yjhong@chromium.org>
Tested-by: David James <davidjames@chromium.org>
Commit-Queue: David James <davidjames@chromium.org>
diff --git a/scripts/gs_fetch_binpkg.py b/scripts/gs_fetch_binpkg.py
index 372ce37..998c737 100644
--- a/scripts/gs_fetch_binpkg.py
+++ b/scripts/gs_fetch_binpkg.py
@@ -34,7 +34,7 @@
temp_path = '%s.tmp' % filename
osutils.SafeUnlink(temp_path)
try:
- ctx.Copy(uri, temp_path, log_output=True)
+ ctx.Copy(uri, temp_path, parallel=False, log_output=True)
shutil.move(temp_path, filename)
finally:
osutils.SafeUnlink(temp_path)