From: Keir Fraser Subject: Re: [PATCH] linux/i386: allow CONFIG_HIGHPTE on i386 (take 2) Date: Fri, 12 Jan 2007 10:26:49 +0000 Message-ID: References: <45A51A07.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45A51A07.76E4.0078.0@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: Jan Beulich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 10/1/07 15:53, "Jan Beulich" wrote: > While, as discussed, the performance impact of this option is certainly higher > than on native Linux, the option should not be entirely disallowed if people > want to sacrifice performance for less lowmem pressure. > > Signed-off-by: Jan Beulich Much of the suckiness will come from the fact that highptes are being pinned for their lifetime. This means that you don't avoid emulation traps for updates during process fork() and exit(), which are big wins. Obviously the problem is that kmap_atomic_pte() doesn't know whether to map the page writeable or read-only (is it part of a pinned pagetable yet?). We could steal a page flag, or use page->private, or something like that do give this info... This patch is fine for now though. -- Keir