The HyperNews Linux KHG Discussion Pages

## Lock the pages in memory

  Forum: The Linux Kernel Hackers' Guide
  Re: Does memory area assigned by "vmalloc()" get swapped to disk? (Saurabh Desai)
  Keywords: disk swapping
  Date: Mon, 01 Jun 1998 17:11:06 GMT
  From: <balaji@ittc.ukans.edu>

Hi, To make sure a set of pages dont get swapped out to disk just lock them in. Look at the implementation of mlock to find out how thats done...(If you are smart enough you can call the sys_mlock within the kernel) balaji PS: This may not be what you wanted bcos of certain constraints...if so let me know balaji

Messages

1. How about assigning a fixed size array...does it get swapped too? by saurabh desai