From owner-freebsd-mips@FreeBSD.ORG Mon Jul 26 08:06:58 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 818C4106566B for ; Mon, 26 Jul 2010 08:06:57 +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 5CED78FC0A for ; Mon, 26 Jul 2010 08:06:57 +0000 (UTC) Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id DFDA12C2B58; Mon, 26 Jul 2010 02:35:39 -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 8YY1B+Yu2FbI; Mon, 26 Jul 2010 02:35:32 -0500 (CDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (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 F007A2C2C56; Mon, 26 Jul 2010 02:35:31 -0500 (CDT) Message-ID: <4C4D3AC1.8080201@cs.rice.edu> Date: Mon, 26 Jul 2010 02:35:29 -0500 From: Alan Cox User-Agent: Thunderbird 2.0.0.24 (X11/20100501) MIME-Version: 1.0 To: "M. Warner Losh" References: <201007250419.o6P4J50q033283@svn.freebsd.org> <4C4BC213.5060001@cs.rice.edu> <20100725.052629.160100930644600654.imp@bsdimp.com> In-Reply-To: <20100725.052629.160100930644600654.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 08:06:58 -0000 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. Alan