I don't get the GC. (heapSizeFactor followup)
FeepingCreature
feepingcreature at gmail.com
Tue Jan 17 06:42:33 UTC 2023
On Monday, 16 January 2023 at 23:50:35 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> Right goal, wrong questions.
>
> The process memory consumption may not be what the GC is
> consuming. You need to measure that first before questioning if
> the GC is the one doing it wrong.
>
> For instance a badly acting buddy allocator in malloc could
> double memory like you're seeing. So swapping malloc may give
> the results you desire. But first rule out the GC.
Okay, queried GC stats instead of looking at RSS. Now I randomly
get 2.6GB after start without `heapSizeFactor`, whatever, random
variation. But the interesting thing is:
- `heapSizeFactor=0.25`: usedSize 704MB freeSize 202MB
- `heapSizeFactor=2` (default): usedSize 1568MB freeSize 810MB
So why is twice as much GC memory *reachable* without
`heapSizeFactor`?
More information about the Digitalmars-d
mailing list