kernel - add vm_contig_avail_pages() API
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 1 Jul 2014 17:23:36 +0000 (10:23 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 1 Jul 2014 17:23:36 +0000 (10:23 -0700)
commit888a40a772a584cd2eeccb4143817c309f30b3ac
tree615801d0dcfb67f3814b2da8996f52b637064e90
parent595fda35687e7e3d14d7be7bbee0820df5e2874b
kernel - add vm_contig_avail_pages() API

* Add a function which DRM can query to determine how much more-easily-DMAd
  memory is available from our contiguous memmory pool, instead of assuming
  that it can gobble all 4GB of 'low' memory before it tries to swap.

* This memory is typically set in /boot/loader.conf, like this:

  vm.dma_reserved=256m

  The default is ~16MB at the moment so users will generally want to increase
  it.
sys/vm/vm_page.c
sys/vm/vm_page.h