From: Keir Fraser Subject: Re: Design question for PV superpage support Date: Mon, 02 Mar 2009 17:06:21 +0000 Message-ID: References: <49AC0C96.7070608@Sun.COM> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49AC0C96.7070608@Sun.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: "Mick.Jordan@sun.com" , Dave McCracken Cc: Xen Developers List List-Id: xen-devel@lists.xenproject.org On 02/03/2009 16:43, "Mick Jordan" wrote: > On 03/02/09 05:54, Dave McCracken wrote: >> The solution I am working on for how to support Linux hugepages (Xen >> superpages) involves creating domains made up entirely of superpages. I can >> create a working domain with superpages and am in the process of supporting >> it in save/restore. >> > This wouldn't work too well for me in the case of thread stacks because > we need to map out parts of the stack and, although we want large > virtual stacks, we don't want do dedicate that much physical memory. Is > it really difficult to support mixed pages sizes in the general case, > e.g., save/restore etc.? You can still make 4kB mappings of subsections of 2MB physical extents. And the guest kernel will still be able to allocate subsections of 2MB physical extents for various uses. Isn't that all you need for e.g., this thread stack situation? Presumably Dave McCracken will be implementing a 'best effort' mode for domains where we try to allocate superpages but we get by at reduced performance if we have to allocate some discontiguous extents due to lack of contiguous available memory. That would be reasonably sensible. -- Keir