]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a uma cache of free pages in the DEFAULT freepool. This gives us
authorjeff <jeff@FreeBSD.org>
Sun, 1 Apr 2018 04:50:05 +0000 (04:50 +0000)
committerjeff <jeff@FreeBSD.org>
Sun, 1 Apr 2018 04:50:05 +0000 (04:50 +0000)
commite5b3bfbbcff951a67b4a81fc4cd2e0199effa034
tree351ddfa21ac476c566a1763752f1156b174b52d9
parentc9b029efcd2551b2089d5ebb762ee64f41542562
Add a uma cache of free pages in the DEFAULT freepool.  This gives us
per-cpu alloc and free of pages.  The cache is filled with as few trips
to the phys allocator as possible by the use of a new
vm_phys_alloc_npages() function which allocates as many as N pages.

This code was originally by markj with the import function rewritten by
me.

Reviewed by: markj, kib
Tested by: pho
Sponsored by: Netflix, Dell/EMC Isilon
Differential Revision: https://reviews.freebsd.org/D14905
sys/vm/vm_page.c
sys/vm/vm_pagequeue.h
sys/vm/vm_phys.c
sys/vm/vm_phys.h