From: Keir Fraser Subject: Re: writable pagetables scalability issue Date: Fri, 07 Dec 2007 17:47:40 +0000 Message-ID: References: <20071207120648.5dc4084a@bree.surriel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20071207120648.5dc4084a@bree.surriel.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: Rik van Riel , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 7/12/07 17:06, "Rik van Riel" 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. -- Keir