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] Shadow Page Tables in Xen

To: priya sehgal <priyagps@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Shadow Page Tables in Xen
From: Gianluca Guida <glguida@xxxxxxxxx>
Date: Tue, 21 Apr 2009 16:59:00 +0200
Cc: gianluca.guida@xxxxxxxxxxxxx, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Delivery-date: Tue, 21 Apr 2009 07:59:32 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hqVKhuzOQQC6f5fwQwcFvqvBPZqBORIJ6Ab9fio+n0M=; b=Ej8E33p0izuzWy2U4mx4CBsQkVyVVDNjqh3+U9tlimUtHLnRsZ8VI/IvXysV56KU4M kTCpAioHACfGKE5h3OOl+IkLWx4ekfB25W3NmsiTHow2nCQm8pa9A2lsnzBrnGCtNmzt Kq8uoYZrjQ6Q4lDTRImkKDlrqLsbg8EKm8PQU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=msmXLBUOa4szCvYkhQ2HNZ+rjBTbtjBZz+JTl02TZ/6CyRXkECWQRxK0qLKnLGI3M9 X20dTwBMLiAKwq0a0hPqMH3kKJh6az+9nvrPUEH51rUIANA7idIzgJxEZ9yj+haO9KUN lpzaqTPbEQ8m/Nyuup0ZOZBbsYFQdmOyvEQ90=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <46562.49315.qm@xxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <46562.49315.qm@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

On Tue, Apr 21, 2009 at 1:37 PM, priya sehgal <priyagps@xxxxxxxxxxx> wrote:
>
> Thanks Tim.
>> Why are you interested?  Do you have a project in
>> mind?
>
> We have a course project, in which we have to improve the performance of live 
> migration for HVM guests. It seems that to support live migration, all the 
> page table entries in the shadow page table are marked as write protected, so 
> as to know which pages are dirtied and to be sent to the other machine. 
> Since, there will be many page faults leading to performance degradation, we 
> want to reduce these page faults. In our course project, we are supposed to 
> form groups of pages and if any page in the group hits the page fault (due to 
> write-protection), we mark all the pages in the group as RW. This way we can 
> reduce the page faults.
>

Have you actually measured this? I think that the major cause of page
faults and VM slowdown is -- rather than page faults on write access
-- the fact that we blow the shadow pagetables away everytime we clean
the dirty bitmap, and this requires a long operation to remove from
top to bottom all reference counts and reconstructing later the shadow
pagetables on the next memory accesses.

Thanks,
Gianluca

-- 
It was a type of people I did not know, I found them very strange and
they did not inspire confidence at all. Later I learned that I had been
introduced to electronic engineers.
                                                  E. W. Dijkstra

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