From: Rik van Riel Subject: Re: [PATCH] respin of mprotect performance patch Date: Mon, 21 Jan 2008 10:41:59 -0500 Message-ID: <20080121104159.64454b72@bree.surriel.com> References: <47826C1C.5C6B.0048.1@novell.com> <4789207C.5C6B.0048.1@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4789207C.5C6B.0048.1@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bruce Rogers Cc: dshaks@redhat.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sat, 12 Jan 2008 20:08:06 -0700 "Bruce Rogers" wrote: > I made a few tweaks to your patch as follows: > As I see it we need to preserve the existing AD bits but additionally OR in the AD bits being passed in (see behavior of pte_modify(), where it preserves current AD in use of _PAGE_CHG_MASK along with ORing in newprot bits, which include AD bits (A at least).) > See update_intpte() for this change. > > Also we need to remove cmd value from req.ptr in do_mmu_update.. > > Updated Linux patch is also included. > > Let me know if I'm missing the point some how. I tested a quick backport of these patches to XEN 3.1.2 and kernel 2.6.18. Unfortunately, performance and scalability do not seem to have improved with these patches, with the SAP mprotect test program. I do not know why - maybe their program calls mprotect with really small areas so the batching does not do much? This is on a quad CPU Intel x86-64 system. -- All rights reversed.