Re:Swap, swap, swap, and bad places to work
by kazinator on Friday August 09, 2019 @12:51PM
(#20656088)
If you don't allocate swap, you have to do other things to compensate, like reduce or eliminate overcommit.
At one company where I worked over a decade ago, we ran some Linux-based equipment without swap also. To prevent executables from being evacuated by low memory pressure, I put a hack into the kernel: executables and shared libs were mapped such that they were nailed into memory (MAP_LOCKED).
At one company where I worked over a decade ago, we ran some Linux-based equipment without swap also. To prevent executables from being evacuated by low memory pressure, I put a hack into the kernel: executables and shared libs were mapped such that they were nailed into memory (MAP_LOCKED).