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

dune takes >2GB of RAM building some targets of frama-c.30.0 #11593

Open
kit-ty-kate opened this issue Apr 1, 2025 · 1 comment
Open

dune takes >2GB of RAM building some targets of frama-c.30.0 #11593

kit-ty-kate opened this issue Apr 1, 2025 · 1 comment

Comments

@kit-ty-kate
Copy link
Member

I'm not sure if it's an expected behaviour or not but i'm reporting it just in case:

opam install -j1 -t frama-c.30.0

will run dune build -j1 @ptests_config which takes 2.1GB of RAM with OCaml 5.3 and 1.8GB with OCaml 4.14.

I'm not exactly sure what makes dune take so much memory in this particular case
Looking at the opam file definition, these commands are ran before the problematic command:

dune build -j1 --release --promote-install-files=false @install
dune exec -- frama-c-ptests tests "src/plugins/*/tests"

but from what i could see, the last command before that (dune exec -- frama-c-ptests ...) only takes 43MB of RAM, so i'm really not sure what's going on.

Specifications

  • Version of dune (output of dune --version): 3.17.2
  • Version of ocaml (output of ocamlc --version): 5.3.0 and 4.14.2
  • Operating system (distribution and version): Linux 6.12
@maiste
Copy link
Collaborator

maiste commented Apr 2, 2025

Thanks for the reporting!
That's indeed a big consumption, we need to investigate about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants