From owner-freebsd-ppc@FreeBSD.ORG Sat Jun 21 06:22:33 2008 Return-Path: Delivered-To: ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C74A1065675 for ; Sat, 21 Jun 2008 06:22:33 +0000 (UTC) (envelope-from alc@cs.rice.edu) Received: from mail.cs.rice.edu (mail.cs.rice.edu [128.42.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id 23DE18FC1C for ; Sat, 21 Jun 2008 06:22:33 +0000 (UTC) (envelope-from alc@cs.rice.edu) Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id 0AA332C2D4A for ; Sat, 21 Jun 2008 00:57:29 -0500 (CDT) X-Virus-Scanned: by amavis-2.4.0 at mail.cs.rice.edu Received: from mail.cs.rice.edu ([127.0.0.1]) by mail.cs.rice.edu (mail.cs.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id P6KUpKBeyXwZ for ; Sat, 21 Jun 2008 00:57:21 -0500 (CDT) Received: from [216.63.78.18] (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.rice.edu (Postfix) with ESMTP id 41C0C2C2AD0 for ; Sat, 21 Jun 2008 00:57:21 -0500 (CDT) Message-ID: <485C9840.2080302@cs.rice.edu> Date: Sat, 21 Jun 2008 00:57:20 -0500 From: Alan Cox User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070805 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ppc@freebsd.org Content-Type: multipart/mixed; boundary="------------080000070905090001090904" Cc: Subject: Please test this simple patch X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2008 06:22:33 -0000 This is a multi-part message in MIME format. --------------080000070905090001090904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Could someone please test the attached patch on an AIM powerpc? Specifically, what I want to know is the output of "vmstat -z" for "KMAP ENTRY" before and after this patch is applied. (I would also like to know how much physical memory that your test machine has.) Thanks, Alan --------------080000070905090001090904 Content-Type: text/plain; name="powerpc_kmapent.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="powerpc_kmapent.patch" Index: vm/vm_map.c =================================================================== --- vm/vm_map.c (revision 179898) +++ vm/vm_map.c (working copy) @@ -294,7 +294,7 @@ vm_init2(void) { uma_zone_set_obj(kmapentzone, &kmapentobj, lmin(cnt.v_page_count, - (VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE) / 8 + + (VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) / PAGE_SIZE) / 8 + maxproc * 2 + maxfiles); vmspace_zone = uma_zcreate("VMSPACE", sizeof(struct vmspace), NULL, #ifdef INVARIANTS --------------080000070905090001090904--