I want to keep a process in RAM. It should never go into swap. Is this possible?
The process is a Java program. I'm running CentoS 7.
I want to keep a process in RAM. It should never go into swap. Is this possible?
The process is a Java program. I'm running CentoS 7.
memlockd
for this, but haven't needed to for some time. no idea if it still works with modern kernels and systemd and/or cgroups. probably does, the author uses systemd. if you can't find it anywhere else (or packaged for your distro), it's at https://packages.debian.org/sid/admin/memlockd – cas Apr 22 '16 at 04:01