freebsd-skq/sys/vm
truckman 367b608998 Undo the merger of mlock()/vslock and munlock()/vsunlock() and the
introduction of kern_mlock() and kern_munlock() in
        src/sys/kern/kern_sysctl.c      1.150
        src/sys/vm/vm_extern.h          1.69
        src/sys/vm/vm_glue.c            1.190
        src/sys/vm/vm_mmap.c            1.179
because different resource limits are appropriate for transient and
"permanent" page wiring requests.

Retain the kern_mlock() and kern_munlock() API in the revived
vslock() and vsunlock() functions.

Combine the best parts of each of the original sets of implementations
with further code cleanup.  Make the mclock() and vslock()
implementations as similar as possible.

Retain the RLIMIT_MEMLOCK check in mlock().  Move the most strigent
test, which can return EAGAIN, last so that requests that have no
hope of ever being satisfied will not be retried unnecessarily.

Disable the test that can return EAGAIN in the vslock() implementation
because it will cause the sysctl code to wedge.

Tested by:	Cy Schubert <Cy.Schubert AT komquats.com>
2004-03-05 22:03:11 +00:00
..
default_pager.c Access the swap_pagers' ->putpages() through swappagerops instead 2003-08-06 12:05:48 +00:00
device_pager.c Simplify the various pager allocation routines by computing the desired 2004-01-04 20:55:15 +00:00
phys_pager.c Simplify the various pager allocation routines by computing the desired 2004-01-04 20:55:15 +00:00
pmap.h Move pmap_resident_count() from the MD pmap.h to the MI pmap.h. 2003-10-06 01:47:12 +00:00
swap_pager.c - Substitute bdone() and bwait() from vfs_bio.c for 2004-02-23 03:15:13 +00:00
swap_pager.h Staticize swap_pager_putpages() 2003-08-06 12:08:27 +00:00
uma_core.c - Fix a problem where we did not drain the cache of buckets in the zone 2004-02-01 06:15:17 +00:00
uma_dbg.c Provide a bit more help with "memory overwritten after free" style bugs. 2003-09-27 21:33:13 +00:00
uma_dbg.h - Use my freebsd email alias in the copyright. 2002-09-19 06:05:32 +00:00
uma_int.h Increase UMA_BOOT_PAGES because of changes to pv entry initialization in 2004-01-18 05:51:06 +00:00
uma.h - Fix the silly flag situation in UMA. Remove redundant ZFLAG/ZONE flags 2003-09-19 08:37:44 +00:00
vm_contig.c In the last revision, I introduced a physical contiguity check that is both 2004-03-05 04:46:32 +00:00
vm_extern.h Undo the merger of mlock()/vslock and munlock()/vsunlock() and the 2004-03-05 22:03:11 +00:00
vm_fault.c Correct a long-standing race condition in vm_fault() that could result in a 2004-02-15 00:42:26 +00:00
vm_glue.c Undo the merger of mlock()/vslock and munlock()/vsunlock() and the 2004-03-05 22:03:11 +00:00
vm_init.c Change clean_map from a global to an auto variable 2003-09-01 16:46:47 +00:00
vm_kern.c Back out previous commit due to objections. 2004-02-16 21:36:59 +00:00
vm_kern.h More pipe changes: 2003-08-11 05:51:51 +00:00
vm_map.c Further reduce the use of Giant in vm_map_delete(): Perform pmap_remove() 2004-02-12 20:56:06 +00:00
vm_map.h - Rename vm_map_clean() to vm_map_sync(). This better reflects the fact 2003-11-09 05:25:35 +00:00
vm_meter.c Avoid lock-order reversal between the vm object list mutex and the vm 2004-01-02 19:38:25 +00:00
vm_mmap.c Undo the merger of mlock()/vslock and munlock()/vsunlock() and the 2004-03-05 22:03:11 +00:00
vm_object.c Correct a long-standing race condition in vm_object_page_remove() that 2004-02-22 03:36:51 +00:00
vm_object.h - Rename vm_map_clean() to vm_map_sync(). This better reflects the fact 2003-11-09 05:25:35 +00:00
vm_page.c Modify contigmalloc1() so that the free page queues lock is not held when 2004-03-02 08:25:58 +00:00
vm_page.h Remove some long unused definitions. 2004-03-04 04:26:14 +00:00
vm_pageout.c Minor style fixes. In vm_daemon(), don't fetch the rss limit long before 2004-03-04 09:36:46 +00:00
vm_pageout.h - Increase the object lock's scope in vm_contig_launder() so that access 2003-10-18 21:09:21 +00:00
vm_pageq.c Expand inline the relevant parts of src/COPYRIGHT for Matt Dillon's 2003-08-12 23:24:05 +00:00
vm_pager.c - Remove comments referring to functions that no longer exist. 2003-10-20 05:16:27 +00:00
vm_pager.h - Push down Giant from vm_pageout() to vm_pageout_scan(), freeing 2003-10-24 06:43:04 +00:00
vm_param.h Rev 1.16 renamed VM_METER to VM_TOTAL. This is breaking 3rd-party apps. 2003-01-18 21:14:02 +00:00
vm_unix.c Locking for the per-process resource limits structure. 2004-02-04 21:52:57 +00:00
vm_zeroidle.c Record exactly where this file was copied from. It wasn't repo-copied so 2004-03-04 10:18:17 +00:00
vm.h Change the way ELF coredumps are handled. Instead of unconditionally 2002-12-16 19:24:43 +00:00
vnode_pager.c Eliminate the acquisition and release of Giant from vnode_pager_alloc(). 2004-01-04 03:18:24 +00:00
vnode_pager.h