Re:War Story – The Mystery of the Very Long GC Pauses in .NE...
by renox on Thursday December 20, 2018 @04:45PM
(#18729426)
I remember a research paper about a GC which worked well even with swapping but it required hooks in the kernel memory manager and the researchers weren't able to make their patch of linux accepted.
This is regime where GC languages simply can't coexist with aggressive swapping. You have to either disable swapping (somehow), or use something like a shared library doing something like the Linux mlockall for the runtime heap.
I believe there is something similar to mlockall you can do on windows to somewhat prevent swapping out the heap, but unfortunately I can't recall it right now.