From: Gianluca Guida Subject: Re: Shadow Page Tables in Xen Date: Tue, 21 Apr 2009 16:59:00 +0200 Message-ID: References: <46562.49315.qm@web8405.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <46562.49315.qm@web8405.mail.in.yahoo.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: priya sehgal Cc: gianluca.guida@eu.citrix.com, "xen-devel@lists.xensource.com" , Tim Deegan List-Id: xen-devel@lists.xenproject.org Hi, On Tue, Apr 21, 2009 at 1:37 PM, priya sehgal wrote: > > Thanks Tim. >> Why are you interested? =A0Do 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 protec= ted, so as to know which pages are dirtied and to be sent to the other mach= ine. Since, there will be many page faults leading to performance degradati= on, we want to reduce these page faults. In our course project, we are supp= osed to form groups of pages and if any page in the group hits the page fau= lt (due to write-protection), we mark all the pages in the group as RW. Thi= s 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 --=20 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