Re: how to make a processes mem unswappable ?

2007-09-06 Thread Valery Reznic

--- Erez D [EMAIL PROTECTED] wrote:

 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 ?
mlockall ?
You can invoke mlockall in the shared library and run
your VMWare with this library LD_PRELOAD'ed

Valery.
 
 
 erez.
 



   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 
http://mobile.yahoo.com/go?refer=1GNXIC

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: how to make a processes mem unswappable ?

2007-09-06 Thread Vitaly
On 9/6/07, Erez D [EMAIL PROTECTED] wrote:

 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.


What is output of free - do you really see swap usage?


how to make a processes mem unswappable ?

2007-09-05 Thread Erez D
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.