From: Mick Jordan <Mick.Jordan@sun.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: Dave McCracken <dcm@mccr.org>,
Xen Developers List <xen-devel@lists.xensource.com>
Subject: Re: Design question for PV superpage support
Date: Mon, 02 Mar 2009 10:02:09 -0800 [thread overview]
Message-ID: <49AC1F21.7080309@Sun.COM> (raw)
In-Reply-To: <C5D1C28D.3A91%keir.fraser@eu.citrix.com>
[-- Attachment #1.1: Type: text/plain, Size: 1602 bytes --]
On 03/02/09 09:06, Keir Fraser wrote:
> On 02/03/2009 16:43, "Mick Jordan" <Mick.Jordan@sun.com> 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?
>
>
Yes, that would work. Assuming it doesn't cause problems in other ways,
e.g. save/restore, given that this re-introduces mixed mappings. I'd
appreciate someone explaining the problems for save/restore with the
earlier patch that simply allowed 2MB pages in PTEs.
> 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.
>
>
Indeed.
Mick
[-- Attachment #1.2: Type: text/html, Size: 2347 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2009-03-02 18:02 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 13:54 Design question for PV superpage support Dave McCracken
2009-03-02 13:58 ` Keir Fraser
2009-03-02 16:43 ` Mick Jordan
2009-03-02 17:06 ` Keir Fraser
2009-03-02 18:02 ` Mick Jordan [this message]
2009-03-02 17:29 ` Dave McCracken
2009-03-02 17:52 ` Keir Fraser
2009-03-02 18:03 ` Dan Magenheimer
2009-03-02 18:30 ` Keir Fraser
2009-03-02 18:46 ` Mick Jordan
2009-03-02 18:48 ` Dan Magenheimer
2009-03-02 19:04 ` Keir Fraser
2009-03-02 17:45 ` Mick Jordan
2009-03-02 17:54 ` Keir Fraser
2009-03-02 18:00 ` Dave McCracken
2009-03-02 18:14 ` Mick Jordan
2009-03-02 19:14 ` Dave McCracken
2009-03-03 1:37 ` Jeremy Fitzhardinge
2009-03-03 3:59 ` Mick Jordan
2009-03-03 14:33 ` Dan Magenheimer
2009-03-03 17:06 ` Mick Jordan
2009-03-03 17:23 ` Jeremy Fitzhardinge
2009-03-03 18:10 ` Keir Fraser
2009-03-03 17:28 ` Jeremy Fitzhardinge
2009-03-03 18:09 ` Dan Magenheimer
2009-03-03 17:26 ` Jeremy Fitzhardinge
2009-03-03 1:32 ` Jeremy Fitzhardinge
2009-03-03 1:15 ` Jeremy Fitzhardinge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49AC1F21.7080309@Sun.COM \
--to=mick.jordan@sun.com \
--cc=dcm@mccr.org \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.