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

Try to release memory after forgetting jobs #865

Merged
merged 2 commits into from
Mar 31, 2025
Merged

Try to release memory after forgetting jobs #865

merged 2 commits into from
Mar 31, 2025

Conversation

Kobzol
Copy link
Collaborator

@Kobzol Kobzol commented Mar 31, 2025

I tried to write a test for this, but it is super slow to create a large number of jobs in the Python tests (especially since we test HQ in debug mode), and it is also very tricky to make any assertions about RSS.

Related issue: #863

@spirali
Copy link
Collaborator

spirali commented Mar 31, 2025

I have extend your PR by also shrinking Tako's structures. If tasks are submitted at once, Tako's internal may also allocate large maps memory.

Copy link
Collaborator Author

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks! :)

@spirali
Copy link
Collaborator

spirali commented Mar 31, 2025

If you do not find any problem in my code, merge as you wish.

@Kobzol Kobzol merged commit 5904ac2 into main Mar 31, 2025
9 checks passed
@Kobzol Kobzol deleted the release-memory branch March 31, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants