# PackageCompiler crash after 6 hours of compilation, seemingly running out of memory

**URL:** https://discourse.julialang.org/t/packagecompiler-crash-after-6-hours-of-compilation-seemingly-running-out-of-memory/115711
**Category:** General Usage
**Tags:** package, package-compiler
**Created:** [June 16, 2024, 8:45am UTC](https://discourse.julialang.org/t/packagecompiler-crash-after-6-hours-of-compilation-seemingly-running-out-of-memory/115711 "2024-06-16T08:45:43Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [June 16, 2024, 1:17pm UTC](https://discourse.julialang.org/t/packagecompiler-crash-after-6-hours-of-compilation-seemingly-running-out-of-memory/115711/2 "2024-06-16T13:17:25Z")

</div>

zram might help, see: [Building Julia on a Raspberry Pi - #5 by Oscar\_Smith](https://discourse.julialang.org/t/building-julia-on-a-raspberry-pi/110632/5)

And: [examples/how\_to\_enable\_ZRAM\_Raspberry\_Pi.md at master · garyexplains/examples · GitHub](https://github.com/garyexplains/examples/blob/master/how_to_enable_ZRAM_Raspberry_Pi.md)

And a larger swap file: [How to Change Swap File Size in Ubuntu – TecAdmin](https://tecadmin.net/change-swap-file-size-in-ubuntu/)

And perhaps disable the option to build the image using multiple threads.

I was able to tune my system to be able to build my system image within 45 minutes… Still a long time. Next step would be to use a pci SSD to store the swap file to see if that can speed things up.

---

_[View the full topic](https://discourse.julialang.org/t/packagecompiler-crash-after-6-hours-of-compilation-seemingly-running-out-of-memory/115711)._
