git: kernel - Segment-align mmap and sysv_shm when possible

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Sep 12 18:34:19 PDT 2012


commit 73660d9e812c3bdc3069eb866fd4fef8449135c4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Sep 12 18:20:51 2012 -0700

    kernel - Segment-align mmap and sysv_shm when possible
    
    * Segment align mmap and sysv_shm mappings which are large enough
      and whos size is a multiple of the segment-size.
    
      NOTE: MAP_FIXED mappings will not be segment-aligned, but the
    	optimization will sitll work if the passed address is already
    	segment-aligned.
    
    * This will allow them to be optimized automatically by
      machdep.pmap_mmu_optimize.

Summary of changes:
 sys/kern/sysv_shm.c |   16 ++++++++++++++--
 sys/vm/vm_mmap.c    |    7 +++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/73660d9e812c3bdc3069eb866fd4fef8449135c4


-- 
DragonFly BSD source repository



More information about the Commits mailing list