Skip to content

[0.22] Greatly improve memory usage during collection syncs#2520

Open
gerrod3 wants to merge 1 commit intopulp:0.22from
gerrod3:patchback/backports/0.22/afdaf7cdf96f38dda4b92e8d9eca3e661c2c181a/pr-2454
Open

[0.22] Greatly improve memory usage during collection syncs#2520
gerrod3 wants to merge 1 commit intopulp:0.22from
gerrod3:patchback/backports/0.22/afdaf7cdf96f38dda4b92e8d9eca3e661c2c181a/pr-2454

Conversation

@gerrod3
Copy link
Copy Markdown
Contributor

@gerrod3 gerrod3 commented Apr 20, 2026

The memory reduction comes in two parts:

  1. Refactor first stage to limit number of coroutines running at once to 100
  2. Avoid when possible json serialization of docs_blob, files, manifest & contents fields

The memory growth should remain flat (or extremely minimal) after first batch (500) processing of collection versions. Most syncs should now complete with less than 1 GB of memory usage.

https://issues.redhat.com/browse/PULP-402
Assssisted by: clause-opus-4.6

(cherry picked from commit afdaf7c)

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

The memory reduction comes in two parts:

1. Refactor first stage to limit number of coroutines running at once to 100
2. Avoid when possible json serialization of docs_blob, files, manifest & contents fields

The memory growth should remain flat (or extremely minimal) after first batch (500) processing of collection versions.
Most syncs should now complete with less than 1 GB of memory usage.

https://issues.redhat.com/browse/PULP-402
Assssisted by: clause-opus-4.6

(cherry picked from commit afdaf7c)
@gerrod3 gerrod3 force-pushed the patchback/backports/0.22/afdaf7cdf96f38dda4b92e8d9eca3e661c2c181a/pr-2454 branch from b96379b to eee5422 Compare April 20, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant