linux-il  

how to make a processes mem unswappable ?

Erez D
Wed, 05 Sep 2007 22:54:33 -0700

hi

i have a process (vmware running XP) and it runs ok if i alloc 512MB ram to
it. however if i allocate a lot of memory to it (2GB out of my 4GB RAM), it
runs very slowly.
i susspect that the problem is that linux swaps part of it.
how can i make this process's memory unpagable and unswappable, i.e. always
resident in real mem ?


erez.