From db55e39aa1d19039cc4bfef4c02237eac641b67c Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Thu, 29 Jan 2004 00:32:22 +0000 Subject: 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. --- sys/powerpc/include/vmparam.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/powerpc/include') diff --git a/sys/powerpc/include/vmparam.h b/sys/powerpc/include/vmparam.h index 0434e979cc5ee..41e74808bcdee 100644 --- a/sys/powerpc/include/vmparam.h +++ b/sys/powerpc/include/vmparam.h @@ -81,6 +81,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 */ -- cgit v1.3