]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The means of finding ranges of free pages was changed for
authordougm <dougm@FreeBSD.org>
Thu, 6 Jun 2019 16:28:34 +0000 (16:28 +0000)
committerdougm <dougm@FreeBSD.org>
Thu, 6 Jun 2019 16:28:34 +0000 (16:28 +0000)
commitc728281262119ad18922e9ab89fe556efd0743b0
treea3f51e2f4a0e28bf46efba67428fa25853220519
parent278c316e05793f369bf562878b51019d46949009
The means of finding ranges of free pages was changed for
vm_reserv_break in r348484, and there was found to improve performance
minutely and reduce code size. This change applies a similar change to
vm_reserv_reclaim_config, expecting similar benefits. This change also
allows quick rejection of page ranges that are unsuitable on account
of alignment or boundary issues, where those issues are processed a
page at a time in the current implementation.  For contrived test
cases, this can make finding a reservation satisfying a major
alignment requirement around 30 times faster.

Tested by: pho
Approved by: markj (mentor)
Differential Revision: https://reviews.freebsd.org/D20274
sys/vm/vm_reserv.c