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

Make gc memory regions variable length. #13968

Closed
wants to merge 1 commit into from
Closed

Conversation

carnaval
Copy link
Contributor

Try a bit harder to find a size the kernel will agree on when allocating.
The max number of pages per region can be set with the env var JULIA_GC_MAX_PAGES.
Should fix #10390.

@@ -2461,6 +2458,10 @@ void jl_gc_init(void)
last_long_collect_interval = default_collect_interval;
allocd_bytes = -default_collect_interval;

char *max_pages_str = getenv("GC_MAX_PAGES");
Copy link
Contributor

Choose a reason for hiding this comment

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

Make this JULIA_GC_MAX_PAGES. While at it, should probably change JL_GC_NO_GENERATIONAL to JULIA_GC_NO_GENERATIONAL

@tkelman tkelman added the GC Garbage collector label Nov 13, 2015
Try a bit harder to find a size the kernel will agree on when allocating.
The max number of pages per region can be set with the env var JULIA_GC_MAX_PAGES.
Should fix #10390.
@@ -2461,6 +2458,10 @@ void jl_gc_init(void)
last_long_collect_interval = default_collect_interval;
allocd_bytes = -default_collect_interval;

char *max_pages_str = getenv("JULIA_GC_MAX_PAGES");
Copy link
Member

Choose a reason for hiding this comment

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

Should this maybe be specified in terms of total memory rather than pages? Internally, it's used to figure out a number of pages but it seems like this should be in the same units that ulimit -v is specified.

@JaredCrean2
Copy link
Contributor

Any progress on this? I'm looking forward to having #10390 resolved.

@yuyichao
Copy link
Contributor

Replaced by #16385

@yuyichao yuyichao closed this May 16, 2016
@DilumAluthge DilumAluthge deleted the ob/mmapquota branch March 25, 2021 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GC Garbage collector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mmap failure with address space quotas
5 participants