From owner-svn-src-all@FreeBSD.ORG Thu Mar 15 22:56:05 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D02C1065674; Thu, 15 Mar 2012 22:56:05 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 605298FC1C; Thu, 15 Mar 2012 22:56:05 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0M0Y00C007PAR700@smtpauth2.wiscmail.wisc.edu>; Thu, 15 Mar 2012 17:55:58 -0500 (CDT) Received: from comporellon.tachypleus.net ([unknown] [76.210.64.26]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0M0Y00C127P9PJ00@smtpauth2.wiscmail.wisc.edu>; Thu, 15 Mar 2012 17:55:58 -0500 (CDT) Date: Thu, 15 Mar 2012 17:55:56 -0500 From: Nathan Whitehorn In-reply-to: <4F626AB8.3090509@rice.edu> To: Alan Cox Message-id: <4F62737C.7060100@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.210.64.26 X-Spam-PmxInfo: Server=avs-14, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.3.15.224514, SenderIP=76.210.64.26 References: <201203151936.q2FJaqTr080483@svn.freebsd.org> <4F626AB8.3090509@rice.edu> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120311 Thunderbird/10.0.2 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r233011 - head/sys/powerpc/aim X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 22:56:05 -0000 On 03/15/12 17:18, Alan Cox wrote: > On 3/15/2012 2:36 PM, Nathan Whitehorn wrote: >> Author: nwhitehorn >> Date: Thu Mar 15 19:36:52 2012 >> New Revision: 233011 >> URL: http://svn.freebsd.org/changeset/base/233011 >> >> Log: >> Improve algorithm for deciding whether to loop through all process >> pages >> or look them up individually in pmap_remove() and apply the same >> logic >> in the other ranged operation (pmap_protect). This speeds up make >> installworld by a factor of 2 on powerpc64. >> >> MFC after: 1 week >> >> Modified: >> head/sys/powerpc/aim/mmu_oea64.c >> > > As an additional, related optimization, you should look into > implementing pmap_remove_pages(). > > Alan > Thanks! I didn't know about that one. Is there a reason it isn't called at the end of vm_pageout_map_deactivate_pages(), which seems to deactivate all pages with pmap_remove()? -Nathan