diff options
author | grehan <grehan@FreeBSD.org> | 2004-01-29 00:32:22 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2004-01-29 00:32:22 +0000 |
commit | 686d1f228e964970087f2249bf77752c5f7c927a (patch) | |
tree | 91ce2b64fa599adc509724e17518ca1176d41d57 /sys/powerpc/include/vmparam.h | |
parent | a636c15bf6cf9d0cb2d67535ce4931b6ab096806 (diff) | |
download | FreeBSD-src-686d1f228e964970087f2249bf77752c5f7c927a.zip FreeBSD-src-686d1f228e964970087f2249bf77752c5f7c927a.tar.gz |
Implement UMA_MD_SMALL_ALLOC, since the BAT registers allow direct
addressing of memory. Makes a substantial improvement for apps that
stress the limited amount of KVM on PPC (e.g. untarring the ports tree).
uma_machdep.c stolen from amd64/ia64.
Diffstat (limited to 'sys/powerpc/include/vmparam.h')
-rw-r--r-- | sys/powerpc/include/vmparam.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/powerpc/include/vmparam.h b/sys/powerpc/include/vmparam.h index 0434e97..41e7480 100644 --- a/sys/powerpc/include/vmparam.h +++ b/sys/powerpc/include/vmparam.h @@ -82,6 +82,12 @@ #define MAXSLP 20 /* + * Use the direct-mapped BAT registers for UMA small allocs. This + * takes pressure off the small amount of available KVA. + */ +#define UMA_MD_SMALL_ALLOC + +/* * Would like to have MAX addresses = 0, but this doesn't (currently) work */ #define VM_MIN_ADDRESS ((vm_offset_t)0) |