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

Couldn't reproduce "Core increases minor heap to 8 MB" #3662

Open
leviroth opened this issue Feb 26, 2023 · 0 comments
Open

Couldn't reproduce "Core increases minor heap to 8 MB" #3662

leviroth opened this issue Feb 26, 2023 · 0 comments

Comments

@leviroth
Copy link

Chapter 24 says:

The default minor heap size in OCaml is normally 2 MB on 64-bit platforms, but this is increased to 8 MB if you use Core (which generally prefers default settings that improve performance, but at the cost of a bigger memory profile).

However, the minor heap size on my 64-bit system appears to be the default 262144 words, i.e. 2MB.

$ cat bin/main.ml
open! Core

let () = printf "%d\n" (Gc.get ()).minor_heap_size
$ dune exec bin/main.exe
262144

It wasn't clear to me if this information is stale, or if there are some further preconditions beyond merely using Core that are necessary to change the heap size.

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

No branches or pull requests

1 participant