Locking - 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have another question concerning the pinning of a process's pages in memory (i.e. preventing them from being swapped out). I noticed there are several ways to pin a page:

- Setting the page descriptors PG_reserved flag.
- Incrementing the page's usage count (used by map_user_kiobuf()).
- Setting the VM_LOCKED flag of the vmarea descriptor the page is in (used by do_mlock()).

(1) Are there further methods to pin a process's pages in memory?

(2) Are there any reason to use one or the other method, or can they be considered equivalent?

regards
Martin
--
Supercomputing System AG          email: maletinsky@scs.ch
Martin Maletinsky                 phone: +41 (0)1 445 16 05
Technoparkstrasse 1               fax:   +41 (0)1 445 16 10
CH-8005 Zurich


-
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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux