4 ms·
It doesn't matter. The GC does not know what heap allocations are in memory vs swap, and since you don't write applications thinking about that, running a VM wi
by winrid 1y ago
It doesn't matter. The GC does not know what heap allocations are in memory vs swap, and since you don't write applications thinking about that, running a VM with a moving GC on swap is a bad idea.
- eru 1y agoA moving GC can make sure to separate hot and cold data, and then rely on the kernel to keep hot data in RAM.
- winrid 1y agoYeah but in practice I'm not sure that really works well with any GCs today? Ive tried this with modern JVM and Node vms, it always ended up with random multi second lockups. Not worth the time.