]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement the populate() pager method for phys pager.
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 8 Dec 2016 11:35:53 +0000 (11:35 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 8 Dec 2016 11:35:53 +0000 (11:35 +0000)
commited01d9894e17a263a833acc03959cd1ccd4b6c2f
tree4046355f3c8ecaf59b0e9be1aa898e83629c6ab6
parentc42b43a0545eb23e7d771ecc004dd18e31367433
Implement the populate() pager method for phys pager.

It allows to provide configurable agressive prefaulting and useful
hints to page daemon about memory allocations, on faults for pages
managed by phys pager.  In fact, this implementation is superior to
the MAP_SHARED_PHYS hack from my Postgresql paper, while giving
similar benefits of reducing the page faults numbers on SysV shared
memory mappings.

Reviewed by: alc
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks
sys/vm/phys_pager.c