From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mick Jordan Subject: Re: Design question for PV superpage support Date: Mon, 02 Mar 2009 10:46:03 -0800 Message-ID: <49AC296B.9080409@Sun.COM> References: Reply-To: Mick.Jordan@sun.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0342412774==" Return-path: In-reply-to: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Dan Magenheimer , Dave McCracken , Xen Developers List List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0342412774== Content-type: multipart/alternative; boundary="Boundary_(ID_+cNo7KWMcvlQ0PfHAYBVjQ)" This is a multi-part message in MIME format. --Boundary_(ID_+cNo7KWMcvlQ0PfHAYBVjQ) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT On 03/02/09 10:30, Keir Fraser wrote: > On 02/03/2009 18:03, "Dan Magenheimer" wrote: > > >>> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com] >>> >>> It'd be nice to fall back to the case of not being able to >>> guarantee all 2MB >>> extents are aligned and contiguous. So for example being able >>> to migrate to >>> or restore on a system that currently doesn't have enough >>> contiguous memory. >>> >> Well, yes and no. I believe the ONLY reason to use 2MB >> pages is to achieve a significant performance advantage. >> And I suspect emulating 2MB "virtual pages" on 4KB physical >> pages will perform at least slightly worse than just >> 4KB-on-4KB, true? >> > > If you make this constraint then you risk creating domains that you cannot > always conveniently restore. Obviously you would allocate 2MB extents > wherever possible, since that is the whole point of this drawn out exercise. > Indeed, performance is the issue, less TLB misses. I'm happy to use 2MB pages when I can and fall back on 4K when I can't. I just want Xen not to fall over and save/restore to work. Mick --Boundary_(ID_+cNo7KWMcvlQ0PfHAYBVjQ) Content-type: text/html; charset=ISO-8859-1 Content-transfer-encoding: 7BIT On 03/02/09 10:30, Keir Fraser wrote:
On 02/03/2009 18:03, "Dan Magenheimer" <dan.magenheimer@oracle.com> wrote:

  
From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]

It'd be nice to fall back to the case of not being able to
guarantee all 2MB
extents are aligned and contiguous. So for example being able
to migrate to
or restore on a system that currently doesn't have enough
contiguous memory.
      
Well, yes and no.  I believe the ONLY reason to use 2MB
pages is to achieve a significant performance advantage.
And I suspect emulating 2MB "virtual pages" on 4KB physical
pages will perform at least slightly worse than just
4KB-on-4KB, true?
    

If you make this constraint then you risk creating domains that you cannot
always conveniently restore. Obviously you would allocate 2MB extents
wherever possible, since that is the whole point of this drawn out exercise.
  
Indeed, performance is the issue, less TLB misses. I'm happy to use 2MB pages when I can and fall back on 4K when I can't. I just want Xen not to fall over and save/restore to work.

Mick



--Boundary_(ID_+cNo7KWMcvlQ0PfHAYBVjQ)-- --===============0342412774== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0342412774==--