Date: Wed, 3 Jul 2002 18:08:37 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 13780 for review Message-ID: <200207040108.g6418b3l008642@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=13780 Change 13780 by peter@peter_ia64 on 2002/07/03 18:07:57 Make this work on the Itanium2 box I have here. It tries to preallocate over 1 million entries here due to the (very) discontiguous memory map. Note that we have some nasty problems elsewhere to deal with that assume that memory is approximately contiguous (ie: pages = (maxaddr - minaddr) / PAGE_SIZE; type bugs) Affected files ... .. //depot/projects/ia64/sys/ia64/ia64/pmap.c#26 edit Differences ... ==== //depot/projects/ia64/sys/ia64/ia64/pmap.c#26 (text+ko) ==== @@ -133,7 +133,8 @@ #define PMAP_DIAGNOSTIC #endif -#define MINPV 2048 +#define MINPV 2048 /* Preallocate at least this many */ +#define MAXPV 20480 /* But no more than this */ #if 0 #define PMAP_DIAGNOSTIC @@ -521,6 +522,8 @@ initial_pvs = vm_page_array_size; if (initial_pvs < MINPV) initial_pvs = MINPV; + if (initial_pvs > MAXPV) + initial_pvs = MAXPV; pvzone = uma_zcreate("PV ENTRY", sizeof (struct pv_entry), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM); uma_zone_set_allocf(pvzone, pmap_allocf); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207040108.g6418b3l008642>