View Full Version : [all variants] Preventing specific programs/process from going into swap

January 12th, 2011, 07:35 AM
I am (foolishly) running a minecraft server and mail server on the same VPS. This results in postfix and/or dovecot programs occasionally entering swap and and slow to respond. I am aware that it is generally not a good idea to try and outfox an OS's memory management, but is there a way I can "lock" those specific processes in ram and prevent them from swapping out?

Thank you!

PS: While "Upgrade your vps" and "don't run them on the same server" are both very valid and obvious responses that sane, and richer, men would follow, I am neither :D