On Fri, 7 Sep 2001, Martin Maletinsky wrote: > > > - Setting the page descriptors PG_reserved flag. > > > > This should never be used. > > (1) Why? If you use it "just" to make sure a page isn't swapped out, you will confuse the hell out of the other users the page may have ... if the page is mapped by multiple processes. > (2) In the device driver book from A. Rubini a further method is > suggested, namely to set the VM_RESERVED flag of the vma > (http://www.xml.com/ldd/chapter/book/ch13.html#t2). What are the > characteristics of this method, compared with the ones mentioned in my > previous mail? This has basically the same effect as VM_LOCKED, except that munlock() can switch off VM_LOCKED but not VM_RESERVED. regards, Rik -- IA64: a worthy successor to i860. http://www.surriel.com/ http://distro.conectiva.com/ Send all your spam to aardvark@nl.linux.org (spam digging piggy) - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/