xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: xen-devel@lists.xensource.com, Keir Fraser <keir.fraser@eu.citrix.com>
Subject: RE: tmem - really default to on?
Date: Mon, 08 Feb 2010 08:33:48 +0000	[thread overview]
Message-ID: <4B6FDA7C020000780002E2EF@vpn.id2.novell.com> (raw)
In-Reply-To: <f88915d7-d6fa-44e9-b6b3-b9808cbdcd3c@default>

>>> Dan Magenheimer <dan.magenheimer@oracle.com> 05.02.10 19:44 >>>
>> >>> Dan Magenheimer <dan.magenheimer@oracle.com> 04.02.10 22:01 >>>
>> >A) There is some order>0 memory allocation in Xen domain creation
>> >that doesn't fall back to order=0, that I've not seen in my testing
>> >but shows up in your systems (or has very recently been added).
>> >If true, this is a problem not only for tmem but also for all other
>> >memory optimization work and we need to identify and (if possible)
>> >fix it.
>> 
>> This is the case - x86's shadow code does all its allocations as order-
>> 2
>> with no (possible the way things are designed) fallback.
>
>Hmmm.... so this would affect HVM creation but not PVM, but also
>could cause PVM live migration to fail, correct?

Yes.

>> Also, the domain structure itself is of order 4 (38k), obviously
>> without
>> fallback (and even with address range restriction, though that one
>> is affecting only really big machines, and it could be lifted to
>> effectively not be a restriction anymore, i.e. just serve documentation
>> purposes).
>
>This has likely been avoided by luck when lots of memory is
>flushed from tmem and returned to the Xen heap and consolidated.
>
>Are you suggesting that the domain structure could/should have
>two sizes, dynamically chosen by machine size?  Or something
>else?

No, it just should be split into parts each of which fits in a page
independent of architecture. But that's nothing I would consider
realistic for 4.0.

>In any case, I'd still suggest turning tmem off in your dom0
>is the best short-term solution.

I'm still not following you here: For one, I can't recall a way to turn
of tmem on a per-domain basis. Then I can't see why it should be
only our Dom0 to be affected. And finally I can't see how the same
couldn't happen when only DomU-s use tmem.

Jan

  reply	other threads:[~2010-02-08  8:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-29  9:41 tmem - really default to on? Jan Beulich
     [not found] ` <8ce008cd-3942-4a25-9c09-1d099e2c04fb@default>
2010-02-01  8:16   ` Jan Beulich
2010-02-04 21:01     ` Dan Magenheimer
2010-02-05  8:39       ` Jan Beulich
2010-02-05 18:44         ` Dan Magenheimer
2010-02-08  8:33           ` Jan Beulich [this message]
2010-02-08 17:18             ` Dan Magenheimer
2010-02-08 18:30               ` Dan Magenheimer
2010-02-09  9:25                 ` Jan Beulich
2010-02-09  9:30                   ` Keir Fraser
2010-02-09 15:43                     ` Dan Magenheimer
2010-02-09  9:10               ` Jan Beulich
2010-02-09 10:45               ` Tim Deegan
2010-02-09 13:00                 ` Jan Beulich
2010-02-09 13:31                   ` Keir Fraser
2010-02-09 13:59                     ` Tim Deegan
2010-02-09 16:07                       ` Dan Magenheimer

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=4B6FDA7C020000780002E2EF@vpn.id2.novell.com \
    --to=jbeulich@novell.com \
    --cc=dan.magenheimer@oracle.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).