kernel - Increase DMA reserve from 16M to 128M by default
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 9 Jun 2015 15:36:15 +0000 (08:36 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 9 Jun 2015 15:36:15 +0000 (08:36 -0700)
commit5a05c8a560a4394667e763ff5c7166c14978a630
tree97c96b1d51b76d5f845c8cf2cf8e7e6e2a5f5414
parent27acf54bc675b0906465e205723074eddbab1d11
kernel - Increase DMA reserve from 16M to 128M by default

* People running DragonFly on workstations were having to specify
  more than the default 16M for vm.dma_reserved in /boot/loader.conf
  or their X sessions would not be stable.

* To reduce confusion, the dma_reserved default is being increased
  to 128M which should be sufficient for most display setups.

  People with headless servers will have to explicitly reduce the
  reservation in /boot/loader.conf (back to 16m is my suggestions) if
  they wish to recover the memory.

* This is the best compromise I could think of.  We can't just return
  the memory to the pool after boot because X might be started far later
  on, or even potentially killed and restarted.  Other drivers might also
  depend on large swaths of contiguous physical memory being available.

  The reserve is the best way to do it and I would rather things work out
  of the box rather than forcing regular users to set something in
  /boot/loader.conf.
sys/vm/vm_page.c