DragonFly BSD
DragonFly commits List (threaded) for 2011-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Rearrange page adds in vm_add_new_page()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 8 Nov 2011 15:43:05 -0800 (PST)

commit bc3396b8d6a56c64d72b08d59dcd520b018dd139
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Tue Nov 8 15:41:05 2011 -0800

    kernel - Rearrange page adds in vm_add_new_page()
    
    * We were previously alternating between the head and tail of the PQ_FREE
      queues when adding new vm pages, but not zeroing the pages being placed
      at the tail.
    
    * Instead of alternating place 1/16 of the new pages on the tail of the
      queue, zero them, and properly mark them PG_ZERO.
    
    * This should reduce physical page fragmentation during early boot when
      drivers need to allocate contiguous low phys-memory pages.

Summary of changes:
 sys/vm/vm_page.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bc3396b8d6a56c64d72b08d59dcd520b018dd139


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]