WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] writable pagetables scalability issue

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] writable pagetables scalability issue
From: Rik van Riel <riel@xxxxxxxxxx>
Date: Fri, 7 Dec 2007 12:53:54 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 07 Dec 2007 09:54:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C37F37BC.199E0%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Red Hat, Inc.
References: <20071207120648.5dc4084a@xxxxxxxxxxxxxxxx> <C37F37BC.199E0%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 07 Dec 2007 17:47:40 +0000
Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:

> On 7/12/07 17:06, "Rik van Riel" <riel@xxxxxxxxxx> wrote:
> 
> > Does anybody see issues with putting all of the writable pagetable
> > operations under a read-write lock, with the code paths that change
> > page table entries (mostly the fault handling) taking the lock in
> > read mode, and the code paths that change the status of pages taking
> > the lock in write mode?
> > 
> > That way we can guarantee that the writable page table pages do not
> > change status while handling a fault (and we get concurrency), blocking
> > out the write fault handling only while new page table pages are being
> > created or destroyed.
> 
> I think we can probably just as easily strip out the big lock entirely from
> the critical paths. It's not really needed much these days.

"not needed much" makes me kind of nervous :)

Exactly what do we still need to protect against?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>