From owner-p4-projects Wed Jul 3 18: 8:42 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 13B7637B401; Wed, 3 Jul 2002 18:08:38 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFF2D37B400 for ; Wed, 3 Jul 2002 18:08:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7450243E31 for ; Wed, 3 Jul 2002 18:08:37 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6418bJU008645 for ; Wed, 3 Jul 2002 18:08:37 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6418b3l008642 for perforce@freebsd.org; Wed, 3 Jul 2002 18:08:37 -0700 (PDT) Date: Wed, 3 Jul 2002 18:08:37 -0700 (PDT) Message-Id: <200207040108.g6418b3l008642@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 13780 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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