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

adopt minor heap size to the available free memory #4146

Closed
vicuna opened this Issue Oct 27, 2006 · 2 comments

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

vicuna commented Oct 27, 2006

Original bug ID: 4146
Reporter: Hendrik Tews
Status: closed (set by @xavierleroy on 2015-07-24T08:39:00Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.09.3
Fixed in version: 3.12.1
Category: ~DO NOT USE (was: OCaml general)

Bug description

A default minor heap size of 32K seems very very small in 2006.
Moreover, it would be nice if the minor heap adopts itself to the available free memory in the system, such that short running programs don't need to garbage collect at all, if enough memory is available.

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Oct 27, 2006

Comment author: bhurt-aw

I'm not so sure about this- 32K is small enough to fit in L1 cache on most systems. Having the minor heap fit, and thus live, in L1 cache strikes me as being a large advantage, as it makes minor collections much less painfull (everything is already loaded in cache).

More than 2 generations might be a better idea.

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Sep 4, 2013

Comment author: @damiendoligez

The default minor heap size was increased from 32Ki to 256Ki in version 3.12.1 (those are words, BTW, so this 256Ki is 2Mi bytes on a 64-bit machine).

@vicuna vicuna closed this Jul 24, 2015

@vicuna vicuna added the feature-wish label Mar 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.