Skip to content

Add memory_limit functions #14

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

Merged
merged 1 commit into from
May 12, 2024
Merged

Add memory_limit functions #14

merged 1 commit into from
May 12, 2024

Conversation

oschulz
Copy link
Owner

@oschulz oschulz commented May 11, 2024

Example - limit Julia worker processes, but not main process, to 4 GiB of RAM:

@always_everywhere begin
    using Distributed
    myid() =! 1 && memory_limit!(4*1024^3)
end

@oschulz
Copy link
Owner Author

oschulz commented May 11, 2024

CC @theHenks

Copy link

codecov bot commented May 11, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 70.14%. Comparing base (b949759) to head (fde1e72).

Files Patch % Lines
src/memory.jl 78.94% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
+ Coverage   70.00%   70.14%   +0.13%     
==========================================
  Files          19       20       +1     
  Lines        1227     1246      +19     
==========================================
+ Hits          859      874      +15     
- Misses        368      372       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oschulz oschulz force-pushed the memory_limit branch 5 times, most recently from a81ae7c to 87684db Compare May 12, 2024 19:29
@oschulz oschulz merged commit fde1e72 into main May 12, 2024
12 checks passed
@oschulz oschulz deleted the memory_limit branch May 12, 2024 20:21
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.

1 participant