# RAM+Swap exhausted while building sys image for Flux activity with PackageCompiler on RaspberryPi3 (Raspbian)

**URL:** https://discourse.julialang.org/t/ram-swap-exhausted-while-building-sys-image-for-flux-activity-with-packagecompiler-on-raspberrypi3-raspbian/67636
**Category:** Performance
**Tags:** question
**Created:** [September 3, 2021, 11:07am UTC](https://discourse.julialang.org/t/ram-swap-exhausted-while-building-sys-image-for-flux-activity-with-packagecompiler-on-raspberrypi3-raspbian/67636 "2021-09-03T11:07:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Vyacheslav\_Vorobyov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vyacheslav_vorobyov/32/26301_2.png) [@Vyacheslav\_Vorobyov](https://discourse.julialang.org/u/Vyacheslav_Vorobyov)
#### Post date: [September 3, 2021, 11:07am UTC](https://discourse.julialang.org/t/ram-swap-exhausted-while-building-sys-image-for-flux-activity-with-packagecompiler-on-raspberrypi3-raspbian/67636/1 "2021-09-03T11:07:06Z")

</div>

To minimize start time of a Julia(1.6.2) program on RaspberryPI3, I tried to use PackageCompiler to build sys image for some activity done against Flux(only inference, not learn). After an hour of work of PackageCompiler while trying to build sys image, the RAM(~800MB) & Swap (1GB) were completely consumed and whole process end up with error. My question would be, are there any trick to still make job done?

---

<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: [September 3, 2021, 11:29am UTC](https://discourse.julialang.org/t/ram-swap-exhausted-while-building-sys-image-for-flux-activity-with-packagecompiler-on-raspberrypi3-raspbian/67636/2 "2021-09-03T11:29:10Z")

</div>

Use a Pi 4 with a 64 bit OS instead.

---

<div class="post-metadata">

### Author: ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)
#### Post date: [September 3, 2021, 12:01pm UTC](https://discourse.julialang.org/t/ram-swap-exhausted-while-building-sys-image-for-flux-activity-with-packagecompiler-on-raspberrypi3-raspbian/67636/3 "2021-09-03T12:01:22Z")

</div>

You can crosscompile using Docker images:  
[https://github.com/Julia-Embedded/jlcross](https://github.com/Julia-Embedded/jlcross)

---

<div class="post-metadata">

### Author: ![Vyacheslav\_Vorobyov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vyacheslav_vorobyov/32/26301_2.png) [@Vyacheslav\_Vorobyov](https://discourse.julialang.org/u/Vyacheslav_Vorobyov)
#### Post date: [September 4, 2021, 1:15am UTC](https://discourse.julialang.org/t/ram-swap-exhausted-while-building-sys-image-for-flux-activity-with-packagecompiler-on-raspberrypi3-raspbian/67636/4 "2021-09-04T01:15:01Z")

</div>

I can’t, I’m using DexterIndustries BrickPi3 extension card.

---

<div class="post-metadata">

### Author: ![Vyacheslav\_Vorobyov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vyacheslav_vorobyov/32/26301_2.png) [@Vyacheslav\_Vorobyov](https://discourse.julialang.org/u/Vyacheslav_Vorobyov)
#### Post date: [September 4, 2021, 1:16am UTC](https://discourse.julialang.org/t/ram-swap-exhausted-while-building-sys-image-for-flux-activity-with-packagecompiler-on-raspberrypi3-raspbian/67636/5 "2021-09-04T01:16:31Z")

</div>

Sounds good, I’ll try.
