git: kernel - Rearrange page adds in vm_add_new_page()
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Nov 8 15:43:45 PST 2011
commit bc3396b8d6a56c64d72b08d59dcd520b018dd139
Author: Matthew Dillon <dillon at 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
More information about the Commits
mailing list