]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a uma cache of free pages in the DEFAULT freepool. This gives us
authorJeff Roberson <jeff@FreeBSD.org>
Sun, 1 Apr 2018 04:50:05 +0000 (04:50 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Sun, 1 Apr 2018 04:50:05 +0000 (04:50 +0000)
commitc33e3a642bc7513f0e39a7b73f6d453ff8c9bb44
tree351ddfa21ac476c566a1763752f1156b174b52d9
parente8bb2dc7c9bc9d5841cc33485fa6151b9d99502e
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