[haikuports] Out-of-memory error building Rust 1.20.0

  • From: Niels Sascha Reedijk <niels.reedijk@xxxxxxxxx>
  • To: haikuports@xxxxxxxxxxxxx
  • Date: Sat, 19 May 2018 09:15:50 +0200

Hi guys,

I need some help with an issue regarding the memory available to a
process. I am building Rust 1.20.0 (recipe is WIP) on a Virtualbox
machine with 3500 MB RAM available. Building Rust has always been very
heavy on the RAM, with each Rust version requiring a bump in the
memory available to the vm. I am currently running into OOM errors,
either in malloc or in posix_memalign. I have a debugger report [1].

When I look at memory usage (using processcontroller), I see that the
Rustc process is taking 1.36 GB of memory [2].That is high, but it
does not run against the limits of the available memory of the
machine. I also checked Virtual memory, but here there is nothing out
of the ordinary there [3].

My hypothesis is that I am running into a limit here. Does anybody
have any ideas or any pointers for me to keep looking?

Regards,

Niels


[1] 
http://rust-on-haiku.com/attachment/ticket/9/rustc-56192-debug-13-05-2018-14-59-00.report
[2] 
http://rust-on-haiku.com/attachment/ticket/9/VirtualBox_Haiku%20x86_gcc2_19_05_2018_09_04_51.png
[3] 
http://rust-on-haiku.com/attachment/ticket/9/VirtualBox_Haiku%20x86_gcc2_19_05_2018_09_05_55.png

Other related posts: