From owner-freebsd-mips@FreeBSD.ORG Mon Jul 26 14:29:30 2010 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E33C8106566B for ; Mon, 26 Jul 2010 14:29:30 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A42448FC08 for ; Mon, 26 Jul 2010 14:29:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o6QEO63Y064883; Mon, 26 Jul 2010 08:24:07 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 26 Jul 2010 08:24:44 -0600 (MDT) Message-Id: <20100726.082444.792475653697373753.imp@bsdimp.com> To: alc@cs.rice.edu From: "M. Warner Losh" In-Reply-To: <4C4D3AC1.8080201@cs.rice.edu> References: <20100725.052629.160100930644600654.imp@bsdimp.com> <4C4D3AC1.8080201@cs.rice.edu> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mips@FreeBSD.org Subject: Re: svn commit: r210460 - head/sys/mips/include X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2010 14:29:31 -0000 In message: <4C4D3AC1.8080201@cs.rice.edu> Alan Cox writes: : M. Warner Losh wrote: : > In message: : > : > "Jayachandran C." writes: : > : On Sun, Jul 25, 2010 at 10:18 AM, Alan Cox wrote: : > : > Warner Losh wrote: : > : >> : > : >> Author: imp : > : >> Date: Sun Jul 25 04:19:05 2010 : > : >> New Revision: 210460 : > : >> URL: http://svn.freebsd.org/changeset/base/210460 : > : >> : > : >> Log: : > : >> Get N64 building by defining VM_FREELIST_DIRECT to be : > : >> VM_FREELIST_DEFAULT. I believe this is correct, since KX is set : > in : > : >> n64, and thus all RAM can be direct mapped. : > : : Thanks, this is something I missed in my MIPS page table changes. : > : : > : > : > Yes, it is. : > : : In MIPS 64bit, whole physical memory is direct mapped thru a : > XKPHYS : > : region. We can use vm_page_alloc() for pmap_alloc_pte_page() and : > : VM_WAIT for pmap_grow_pte_page_cache(), is this something we should : > : consider? : > : > Likely. Any idea what kind of performance difference this would buy : > us? : > : : As long as n64 has a single free list, there is no point in changing : pmap_alloc_pte_page() to use vm_page_alloc(). There may, however, be : some point to using VM_WAIT in pmap_grow_pte_page_cache(), because : vm_contig_grow_cache() is far more aggressive about paging out dirty : pages than VM_WAIT is, and VM_WAIT would suffice. : : For what it's worth, fixing pmap_change_wiring() and : pmap_page_wired_mappings() is almost certainly more important. what's broken with them now? Warner