# \--heap-size-hint and multithreads

**URL:** <https://discourse.julialang.org/t/heap-size-hint-and-multithreads/100407>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 15, 2023, 4:15pm UTC](https://discourse.julialang.org/t/heap-size-hint-and-multithreads/100407 "2023-06-15T16:15:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phymann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phymann/32/18868_2.png) [@phymann](https://discourse.julialang.org/u/phymann)\
**Post date:** [June 15, 2023, 4:15pm UTC](https://discourse.julialang.org/t/heap-size-hint-and-multithreads/100407/1 "2023-06-15T16:15:28Z")

</div>

Hi, all  
When using `--heap-size-hint=xG` together with `-t y`, is the total memory size triggering aggressive garbage collection `x*y`G or `x`G?

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [June 15, 2023, 5:05pm UTC](https://discourse.julialang.org/t/heap-size-hint-and-multithreads/100407/2 "2023-06-15T17:05:54Z")

</div>

It’s the total (not per-thread)
