The HyperNews Linux KHG Discussion Pages

Feedback: Lock the pages in memory

Forum: The Linux Kernel Hackers' Guide
Re: Question 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: <>

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


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