<div dir="ltr">Ehum?<div><br></div><div>total_heap_size = heap_size + old_heap_size. Meaning 1st gen heap + 2nd gen heap. So total_heap_size <i>should</i> be equal, or more probable, higher than the heap_size.<div><br></div><div>The reason you don't see that it shrinks during a garbage collect is ofc that there's still living data on the heap. </div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den ons 17 mars 2021 kl 21:53 skrev Loïc Hoguin <<a href="mailto:lhoguin@vmware.com">lhoguin@vmware.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I am trying to understand why the total_heap_size of a few processes<br>
is so much higher than heap_size. As can be seen in the following<br>
snippet, the old_heap is responsible for the discrepancy:<br>
<br>
> erlang:process_info(QPid, garbage_collection_info). <br>
{garbage_collection_info,[{old_heap_block_size,1439468},<br>
{heap_block_size,196650},<br>
{mbuf_size,289},<br>
{recent_size,11674},<br>
{stack_size,35},<br>
{old_heap_size,940791},<br>
{heap_size,86028},<br>
{bin_vheap_size,36483},<br>
{bin_vheap_block_size,46422},<br>
{bin_old_vheap_size,34148},<br>
{bin_old_vheap_block_size,46422}]}<br>
<br>
Why?<br>
<br>
How can I reduce this? Garbage collecting does nothing.<br>
<br>
Cheers,<br>
<br>
-- <br>
Loïc Hoguin<br>
<br>
</blockquote></div>