Skip to content

Make the GC less greedy#50101

Closed
gbaraldi wants to merge 1 commit intoJuliaLang:masterfrom
gbaraldi:less-greedy-gc
Closed

Make the GC less greedy#50101
gbaraldi wants to merge 1 commit intoJuliaLang:masterfrom
gbaraldi:less-greedy-gc

Conversation

@gbaraldi
Copy link
Copy Markdown
Member

@gbaraldi gbaraldi commented Jun 7, 2023

This is a simple change that makes the GC less greedy, this might regress the performance a bit but should reduce the amount of OOMs that people are seeing since 1.9.

@gbaraldi gbaraldi requested a review from d-netto June 7, 2023 13:55
@oscardssmith
Copy link
Copy Markdown
Member

I really don't like this heuristic. I don't think the problem is the number, but the strategy is fundamentally wrong when you have multiple Julias.

@gbaraldi
Copy link
Copy Markdown
Member Author

gbaraldi commented Jun 7, 2023

The heuristics are all bad anyway, this just makes it safer. Checking the state of the OS isn't really doable, because most OSs will use as much RAM as they can for caching stuff since that's optimal. So there isn't really a correct way outside of the user setting the heapsize if they know they have multiple julia processes.

@gbaraldi
Copy link
Copy Markdown
Member Author

With 1.10 in the horizon and hopefully #50144 I think I can close this.

@gbaraldi gbaraldi closed this Jun 27, 2023
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