# Performance and memory consumption worries

**URL:** <https://discourse.julialang.org/t/performance-and-memory-consumption-worries/2208>\
**Category:** Community\
**Created:** [February 21, 2017, 10:45am UTC](https://discourse.julialang.org/t/performance-and-memory-consumption-worries/2208 "2017-02-21T10:45:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TsurHerman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tsurherman/32/1234_2.png) [@TsurHerman](https://discourse.julialang.org/u/TsurHerman)\
**Post date:** [February 21, 2017, 10:45am UTC](https://discourse.julialang.org/t/performance-and-memory-consumption-worries/2208/1 "2017-02-21T10:45:43Z")

</div>

Hi,  
I am worried by the memory consumption of julia kernel.  
I need at least 3 different processes\threads in the application I am writing, each instance consumes around  
200 MB before the data.

This is shocking for me coming from C/C++ world…

My co-worker who is a sort of a python advocate , just as I am a julia advocate, keeps pointing out this huge memory consumption.

Another issue is the fact that it takes around 15 seconds for my app to initialize loading modules and spawning additional processes… after precompilation(which really does not help much in my experience)  
This can be tolerated for runtime but it is impossible to work with when developing.  
I use CloberringReload module to avoid re-starting the app every time I make a change somewhere … and it works great for me , but I have a hard time “converting” other team members to julia because of this “hackish” workflow.

Is there a way to save the binary state of julia kernel , and to load julia directly into that binary state?  
so for example starting julia normally and running  
`A = sum(rand(1_000_000))`  
for the first time , then saving the binary state and restarting julia with that state  
running the code again will be fast because all related code was previously jitted .

So I have worries … especially since I am moving from R&D into production.  
If someone from the dev team can comment on those topics and the road map I would very much appreciate it.

tl;dr  
Love I julia, I am achieving feats of engineering with it and I am enjoying it!.  
I am worried about memory consumption when working with several processes.  
I am wondering whether there is or will be a way  
to save and load a binary state of julia kernel, to avoid re-jitting ad-infinitum

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [February 21, 2017, 11:27am UTC](https://discourse.julialang.org/t/performance-and-memory-consumption-worries/2208/2 "2017-02-21T11:27:33Z")

</div>

Related to memory consumption:

> [@Julia memory overhead](https://discourse.julialang.org/t/julia-memory-overhead/1861):
>
> I have received some queries from coworkers about Julia’s memory overhead. Members of our HPC team have expressed concern that Julia seems to eat about 160-200MB of RAM per Julia session (our current deployment model is to run many single-thread jobs on AWS nodes with relatively small RAM, and additional RAM is an expensive resource on AWS. The speed and RAM usage of my algorithm itself seems quite reasonable, but fitting 200MB more data in could be valuable to us). So I have a couple of questi…

---

<div class="post-metadata">

**Author:** ![TsurHerman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tsurherman/32/1234_2.png) [@TsurHerman](https://discourse.julialang.org/u/TsurHerman)\
**Post date:** [February 21, 2017, 1:24pm UTC](https://discourse.julialang.org/t/performance-and-memory-consumption-worries/2208/3 "2017-02-21T13:24:29Z")

</div>

What about the binary state … or is there a way to avoid re-jitting the app every time?  
Will there be a binary cache similar to the lowered code cache precompile does?

---

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [February 22, 2017, 5:52pm UTC](https://discourse.julialang.org/t/performance-and-memory-consumption-worries/2208/4 "2017-02-22T17:52:35Z")

</div>

Any news on that? I’m wondering, if you could put the ‘App’ into an own/local package and precompile that and start all with a single call?
