git: kernel - add vm_contig_avail_pages() API

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 1 10:25:55 PDT 2014


commit 888a40a772a584cd2eeccb4143817c309f30b3ac
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jul 1 10:23:36 2014 -0700

    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.

Summary of changes:
 sys/vm/vm_page.c | 17 +++++++++++++++++
 sys/vm/vm_page.h |  3 +++
 2 files changed, 20 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/888a40a772a584cd2eeccb4143817c309f30b3ac


-- 
DragonFly BSD source repository



More information about the Commits mailing list