summaryrefslogtreecommitdiffstats
path: root/sys/conf/options.arm
diff options
context:
space:
mode:
authorgber <gber@FreeBSD.org>2013-05-14 09:47:58 +0000
committergber <gber@FreeBSD.org>2013-05-14 09:47:58 +0000
commita2ea3b5e3cf8c57f083548266d5d8fac00223d92 (patch)
tree3cf3c3496f946944d95acaf2b98f43d1e6834791 /sys/conf/options.arm
parent7c4460149dcf39ce45a63a428447da0574a29ddf (diff)
downloadFreeBSD-src-a2ea3b5e3cf8c57f083548266d5d8fac00223d92.zip
FreeBSD-src-a2ea3b5e3cf8c57f083548266d5d8fac00223d92.tar.gz
Port the new PV entry allocator from amd64/i386/mips to armv6/v7.
PV entries are now roughly half the size. Instead of using a shared UMA zone for 28 byte pv entries (two 8-byte tailq nodes, a 4 byte pointer, a 4 byte address and 4 byte flags), we allocate a page at a time per process. This provides 252 pv entries per process (actually, per pmap address space) and eliminates one of the 8-byte tailq entries since we now can track per-process pv entries implicitly. The pointer to the pmap can be eliminated by doing address arithmetic to find the metadata on the page headers to find a single pointer shared by all 252 entries. There is an 8-int bitmap for the freelist of those 252 entries. When in serious low memory condition, allocation of another pv_chunk is possible by freeing some pages in pmap_pv_reclaim(). Added pv_entry/pv_chunk related statistics to pmap. pv_entry/pv_chunk statistics can be accessed via sysctl vm.pmap. Ported PTE freelist of KVA allocation and maintenance from i386. Using an idea from Stephan Uphoff, use the empty pte's that correspond to the unused kva in the pv memory block to thread a freelist through. This allows us to free pages that used to be used for pv entry chunks since we can now track holes in the kva memory block. As both ARM pmap.c and pmap-v6.c use the same header and pv_entry, pmap and md_page structures are different, it was needed to separate code designed for ARMv6/7 from the one for other ARMs. Submitted by: Zbigniew Bodek <zbb@semihalf.com> Reviewed by: alc Sponsored by: The FreeBSD Foundation, Semihalf
Diffstat (limited to 'sys/conf/options.arm')
-rw-r--r--sys/conf/options.arm1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/options.arm b/sys/conf/options.arm
index 37be6f4..70dccf8 100644
--- a/sys/conf/options.arm
+++ b/sys/conf/options.arm
@@ -36,6 +36,7 @@ LINUX_BOOT_ABI opt_global.h
LOADERRAMADDR opt_global.h
NO_EVENTTIMERS opt_timer.h
PHYSADDR opt_global.h
+PV_STATS opt_pmap.h
QEMU_WORKAROUNDS opt_global.h
SOC_MV_ARMADAXP opt_global.h
SOC_MV_DISCOVERY opt_global.h
OpenPOWER on IntegriCloud