From owner-p4-projects@FreeBSD.ORG Fri Jan 2 19:06:53 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9BB141065688; Fri, 2 Jan 2009 19:06:52 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55AA11065693; Fri, 2 Jan 2009 19:06:52 +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 2CFF18FC26; Fri, 2 Jan 2009 19:06:46 +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 B2E042C2DBA; Fri, 2 Jan 2009 12:39:51 -0600 (CST) 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 PePo3u6Hin58; Fri, 2 Jan 2009 12:39:44 -0600 (CST) 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 ACD592C2DA3; Fri, 2 Jan 2009 12:39:43 -0600 (CST) Message-ID: <495E5F6F.8030405@cs.rice.edu> Date: Fri, 02 Jan 2009 12:39:43 -0600 From: Alan Cox User-Agent: Thunderbird 2.0.0.17 (X11/20080926) MIME-Version: 1.0 To: Mayur References: <200901011408.n01E8GYU036190@repoman.freebsd.org> <20090101141833.GF1176@hoeg.nl> <2ac427a0901011055x7e561f12w338efac38e6c5e71@mail.gmail.com> In-Reply-To: <2ac427a0901011055x7e561f12w338efac38e6c5e71@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ed Schouten , Perforce Change Reviews , Mayur Shardul Subject: Re: PERFORCE change 155554 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2009 19:06:53 -0000 Mayur wrote: > Hi Ed, > This work is not targeted to reduce the contention but this seems an > interesting problem. Will look in to it. > Have a look at pmap_enter() and pmap_remove_pages() and more generally the use of the page queues mutex to synchronize access to the per-page pv list in the pmap. A simple and (likely) productive first step would be to introduce a new mutex in the pmap for synchronizing access to the per-page pv lists. The tricky part is that the pmap functions sometimes manipulate other per-page fields, like "dirty", that are also synchronized by the page queues lock. If you want to undertake this, I would be very supportive. Regards, Alan