freebsd-nq/sys/vm
Scott Long a5cbb43e43 The change a few years ago of having contigmalloc start its scan at the top
of physical RAM instead of the bottom was a sound idea, but the implementation
left a lot to be desired.  Scans would spend considerable time looking at
pages that are above of the address range given by the caller, and multiple
calls (like what happens in busdma) would spend more time on top of that
rescanning the same pages over and over.

Solve this, at least for now, with two simple optimizations.  The first is
to not bother scanning high ordered pages that are outside of the provided
address range.  Second is to cache the page index from the last successful
operation so that subsequent scans don't have to restart from the top.  This
is conditional on the numpages argument being the same or greater between
calls.

MFC After: 2 weeks
2006-01-29 08:24:54 +00:00
..
default_pager.c /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
device_pager.c Add a comment to the effect that fictitious pages do not require the 2005-06-10 17:27:54 +00:00
memguard.c Improve memguard a bit: 2005-12-30 11:45:07 +00:00
memguard.h Improve memguard a bit: 2005-12-30 11:45:07 +00:00
phys_pager.c /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
pmap.h Eliminate pmap_init2(). It's no longer used. 2005-11-20 06:09:49 +00:00
swap_pager.c Make sure b_vp and b_bufobj are NULL before calling relpbuf(), as it asserts 2006-01-27 21:11:50 +00:00
swap_pager.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
uma_core.c Add a new macro wrapper WITNESS_CHECK() around the witness_warn() function. 2006-01-27 22:20:15 +00:00
uma_dbg.c Improve canonicalization of copyrights. Order copyrights by order of 2005-07-16 09:51:52 +00:00
uma_dbg.h Improve canonicalization of copyrights. Order copyrights by order of 2005-07-16 09:51:52 +00:00
uma_int.h Wrap inlines in uma_int.h in #ifdef _KERNEL so that uma_int.h can be 2005-08-04 10:03:53 +00:00
uma.h As alc pointed out to me, vm_page.c 1.305 was incomplete: uma_startup() 2005-10-08 21:03:54 +00:00
vm_contig.c The change a few years ago of having contigmalloc start its scan at the top 2006-01-29 08:24:54 +00:00
vm_extern.h Use sf_buf_alloc() instead of vm_map_find() on exec_map to create the 2005-12-16 18:34:14 +00:00
vm_fault.c Use the new macros abstracting the page coloring/queues implementation. 2006-01-27 08:35:32 +00:00
vm_glue.c Use sf_buf_alloc() instead of vm_map_find() on exec_map to create the 2005-12-16 18:34:14 +00:00
vm_init.c Add the vm.exec_map_entries tunable and read-only sysctl, which controls 2005-04-25 19:22:05 +00:00
vm_kern.c /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
vm_kern.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
vm_map.c Use the new macros abstracting the page coloring/queues implementation. 2006-01-27 07:28:51 +00:00
vm_map.h Eliminate unneeded preallocation at initialization. 2005-12-03 22:41:15 +00:00
vm_meter.c Enable debug_mpsafevm on ia64 due to the severe functional regression 2005-05-08 23:56:16 +00:00
vm_mmap.c Move execve's access time update functionality into a new 2005-10-12 06:56:00 +00:00
vm_object.c Use the new macros abstracting the page coloring/queues implementation. 2006-01-27 07:28:51 +00:00
vm_object.h Make vm_object_vndeallocate() static. The external calls to it were 2006-01-22 23:56:20 +00:00
vm_page.c In vm_page_set_invalid() invalidate all of the page's mappings as soon as 2006-01-24 07:21:38 +00:00
vm_page.h With the recent changes to the implementation of page coloring, the 2006-01-24 19:24:54 +00:00
vm_pageout.c Use the new macros abstracting the page coloring/queues implementation. 2006-01-27 07:28:51 +00:00
vm_pageout.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
vm_pageq.c Style: Add blank line after local variable declarations. 2006-01-27 21:06:37 +00:00
vm_pager.c Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
vm_pager.h Update some comments to reflect the change from spl-based to lock-based 2005-05-18 22:08:52 +00:00
vm_param.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
vm_unix.c /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
vm_zeroidle.c MI changes: 2005-12-31 14:39:20 +00:00
vm.h - Change the vm_mmap() function to accept an objtype_t parameter specifying 2005-04-01 20:00:11 +00:00
vnode_pager.c Rate limit vnode_pager_putpages printfs to once a second. 2005-11-01 23:00:24 +00:00
vnode_pager.h Move the body of vop_stdcreatevobject() over to the vnode_pager under 2005-01-24 21:21:59 +00:00