freebsd-skq/sys/vm
scottl a3330c2d56 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
device_pager.c
memguard.c
memguard.h
phys_pager.c
pmap.h
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
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
uma_dbg.h
uma_int.h
uma.h
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
vm_fault.c Use the new macros abstracting the page coloring/queues implementation. 2006-01-27 08:35:32 +00:00
vm_glue.c
vm_init.c
vm_kern.c
vm_kern.h
vm_map.c Use the new macros abstracting the page coloring/queues implementation. 2006-01-27 07:28:51 +00:00
vm_map.h
vm_meter.c
vm_mmap.c
vm_object.c Use the new macros abstracting the page coloring/queues implementation. 2006-01-27 07:28:51 +00:00
vm_object.h
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
vm_pageq.c Style: Add blank line after local variable declarations. 2006-01-27 21:06:37 +00:00
vm_pager.c
vm_pager.h
vm_param.h
vm_unix.c
vm_zeroidle.c
vm.h
vnode_pager.c
vnode_pager.h