Skip to content

Manually clean up memory for some tests that don't call solve#4983

Merged
connorjward merged 1 commit intomainfrom
connorjward/memcontrol
Mar 23, 2026
Merged

Manually clean up memory for some tests that don't call solve#4983
connorjward merged 1 commit intomainfrom
connorjward/memcontrol

Conversation

@connorjward
Copy link
Contributor

We only call PETSc.garbage_cleanup when we call solve. This means that if we run lots of parallel tests that don't do this then we can end up consuming a lot of memory. I suspect that this was causing the concerning performance behaviour that I was observing last week.

These fixes should go into main because the covariance operator work isn't in release yet.

Copy link
Member

@JHopeCollins JHopeCollins left a comment

Choose a reason for hiding this comment

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

Ouch, sorry about that

@connorjward connorjward merged commit c3b1325 into main Mar 23, 2026
7 checks passed
@connorjward connorjward deleted the connorjward/memcontrol branch March 23, 2026 13:53
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