2 ms·
My default action to ensure good service quality for GC'd systems is to, as far as possible, minimize what swapping can occur. Especially important for systems
by lostmyoldone 8y ago
My default action to ensure good service quality for GC'd systems is to, as far as possible, minimize what swapping can occur. Especially important for systems with a big heap containing many rarely used objects taking up a substantial fraction of the space, more so if GC pressure is very low.
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.
- renox 8y agoI 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.