All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mick Jordan <Mick.Jordan@sun.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
	Dave McCracken <dcm@mccr.org>,
	Xen Developers List <xen-devel@lists.xensource.com>
Subject: Re: Design question for PV superpage support
Date: Tue, 03 Mar 2009 09:06:31 -0800	[thread overview]
Message-ID: <49AD6397.9030803@Sun.COM> (raw)
In-Reply-To: <a6ec1b4a-f245-4b42-9c63-5b16877af761@default>


[-- Attachment #1.1: Type: text/plain, Size: 1909 bytes --]

On 03/03/09 06:33, Dan Magenheimer wrote:
>> In general, I think the guest should assume that large page 
>> mappings are 
>> merely an optimization that (a) might not be possible on domain start 
>> due to machine memory fragmentation and (b) that this condition might 
>> also occur on restore. Given these, it must always be prepared to 
>> function with 4K pages, which implies that it would need to preserve 
>> enough page table frame memory to be able revert from large 
>> to small pages.
>>
>> Mick
>>     
>
> Do you disagree with my assertion that use of 2MB pages is
> almost always an attempt to eke out a performance improvement,
> that emulating 2MB pages with fragmented 4KB pages is likely
> slower than just using 4KB pages to start with, and thus
> that "must always be prepared to function with 4KB pages"
> should NOT occur silently (if at all)?
>   
I agree with the first statement. I'm not sure what you mean by "emulate 
2MB pages with fragmented 4K pages" unless you assume nested page table 
support or you just mean falling back to 4K pages. As for whether a 
change should be silent, I'm less clear on that. I certainly wouldn't 
consider it a fatal condition requiring domain termination, That 
position is consistent with the "optimization not correctness" view of 
using large tables. However, a guest might want to indicate in some way 
that it has downgraded
> BTW, thinking ahead to ballooning with 2MB pages, are we prepared
> to assume that a relinquished 2MB page can't be fragmented?
> While this may be appealing for systems where nearly all
> guests are using 2MB pages, systems where the 2MB guest is
> an odd duck might suffer substantially by making that
> assumption.
>   
Agreed. All of this really only becomes an issue when memory is 
overcommitted. Unfortunately, that is precisely when 2MB machine 
contiguous pages are likely to be difficult to find.

Mick


[-- Attachment #1.2: Type: text/html, Size: 2405 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

  reply	other threads:[~2009-03-03 17:06 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
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 [this message]
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=49AD6397.9030803@Sun.COM \
    --to=mick.jordan@sun.com \
    --cc=dan.magenheimer@oracle.com \
    --cc=dcm@mccr.org \
    --cc=jeremy@goop.org \
    --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.