Skip to content
This repository

Allow user to specify maximum size of GC allocation on command line #263

Open
coke opened this Issue December 19, 2008 · 4 comments

3 participants

Will Coleda Duke Leto Andrew Whitworth
Will Coleda
Owner

We should have a command line option for parrot that allows us to specify the maximum amount of memory the GC is allowed to allocate

Originally http://trac.parrot.org/parrot/ticket/67

Duke Leto
Owner
leto commented May 19, 2011

Isn't this already implemented?

Can this feature even *be* implemented in a way that makes sense across all the GC's we support?

Will Coleda
Owner
coke commented May 19, 2011

Replying to dukeleto:

Isn't this already implemented?

No.

Can this feature even *be* implemented in a way that makes sense across all the GC's we support?

I don't see why not; If it only makes sense for some GCs, I think we still need to implement it there; kind of a built in ulimit.

Andrew Whitworth
Owner

The mem_limit branch implements the machinery necessary to take a memory limit from the commandline and pass it down into the gc_private structure for use by the GC. We don't currently have any way to use that flag (especially since so many places in our code use malloc/realloc/free directly) but the information can be made available if the memory subsystem ever chose to use it.

I don't think we should close this ticket yet, but I do want to say that we have part of the work done and the rest of it may be a herculean task for relatively little payoff.

Will Coleda
Owner
coke commented May 09, 2012

FYI, this feature request is inspired by java. We use this feature daily in our work environment (in java) to insure that multiple copies of the JVM do not starve resources on any given box.

Without this feature or something like it, I personally would have a hard (HARDER) sell using parrot on a work project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.