From owner-freebsd-mips@FreeBSD.ORG Mon Jul 26 07:57:16 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 018F5106567B for ; Mon, 26 Jul 2010 07:57:16 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id B52D18FC21 for ; Mon, 26 Jul 2010 07:57:15 +0000 (UTC) Received: by vws7 with SMTP id 7so2636730vws.13 for ; Mon, 26 Jul 2010 00:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xq4+lbO0EGggB9rVOWpktepR+xLODBm63t3F4klUQEs=; b=bl1TtEMPx5V/r5eHDCrWcDRC551wvIR8eC/Qdx2altljUkqy8SaMYQj+4ugdII2EP5 7koQPylPOjgK7n7LpodBrIsUgYHvu6Soyzm66rdFdUTPx55en2j4VauySJpoF6BlPakr cXWuEsCjfdDvIlrs3t9kofgrGS2m1XlNbsjLI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=sQ28oQwmnaKivNu04I0oyv7FOzLnnefYIQBdXqQO2U/iCl1YMTHzNI7VYlKVtDMkmK 5Q/kpSLNzIgfhH91ulnb5kfP844XyH5eXJai0/cotDxkdTlvnXYyXFCyJznWCT1fsHMT fHuNjp9CJLpy/qMhoWU/icX6XHkLTIq2iqLpo= MIME-Version: 1.0 Received: by 10.220.62.136 with SMTP id x8mr3843085vch.175.1280131034832; Mon, 26 Jul 2010 00:57:14 -0700 (PDT) Received: by 10.220.195.11 with HTTP; Mon, 26 Jul 2010 00:57:14 -0700 (PDT) In-Reply-To: <4C4D3AC1.8080201@cs.rice.edu> References: <201007250419.o6P4J50q033283@svn.freebsd.org> <4C4BC213.5060001@cs.rice.edu> <20100725.052629.160100930644600654.imp@bsdimp.com> <4C4D3AC1.8080201@cs.rice.edu> Date: Mon, 26 Jul 2010 13:27:14 +0530 Message-ID: From: "Jayachandran C." To: Alan Cox Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 07:57:16 -0000 On Mon, Jul 26, 2010 at 1:05 PM, Alan Cox wrote: > M. Warner Losh wrote: >> >> In message: >> =A0 =A0 =A0 =A0 =A0 =A0"Jayachandran C." writ= es: >> : 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: >> : >> =A0Get N64 building by defining VM_FREELIST_DIRECT to be >> : >> =A0VM_FREELIST_DEFAULT. =A0I believe this is correct, since KX is s= et in >> : >> =A0n64, 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. =A0Any 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(). =A0There may, however, be s= ome > point to using VM_WAIT in pmap_grow_pte_page_cache(), because > vm_contig_grow_cache() is far more aggressive about paging out dirty page= s > than VM_WAIT is, and VM_WAIT would suffice. Thanks - the 64 bit is the HEAD is still in early development, so I was just trying to understand this better. > For what it's worth, fixing pmap_change_wiring() and > pmap_page_wired_mappings() is almost certainly more important. I had seen the mail on this, but thought I will look at this after the 64 bit support work (if it is not fixed by then). JC.