News for hackers. Stuff that matters.
Re:Treadmill garbage collector by H. Baker by vidarh on Tuesday July 26, 2022 @07:33AM (#32236886)
As far as I understand it, it's real-time if you don't adjust k dynamically to avoid running out of memory.

The heap size you need is R*(1+1/k). So if k=1, then you need to threat a half-full heap as an out-of-memory condition, which is comparable to quite a few GC's. If you set k at e.g. 4 instead, you can use 80% of the heap.

If you're ok with losing real-time guarantees you can instead dynamically increase k as needed.

There are no comments on this comment yet.