kernel - Rearrange page adds in vm_add_new_page()
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 8 Nov 2011 23:41:05 +0000 (15:41 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 8 Nov 2011 23:41:05 +0000 (15:41 -0800)
commitbc3396b8d6a56c64d72b08d59dcd520b018dd139
treeea184ecca0f81f1e9e72046c7a286d91a5f0d9c6
parent709f5959ae62a1025786662a7da3c5e1ace58805
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.
sys/vm/vm_page.c