From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: George Dunlap <dunlapg@umich.edu>
Cc: Olaf Hering <olaf@aepfle.de>,
xen-devel@lists.xensource.com,
Ian Campbell <Ian.Campbell@citrix.com>,
Konrad Wilk <konrad.wilk@oracle.com>,
Lars Kurth <lars.kurth.xen@gmail.com>,
Kurt Hackel <kurt.hackel@oracle.com>, Tim Deegan <tim@xen.org>,
Andres Lagar-Cavilla <andres@lagarcavilla.org>
Subject: Re: Pointed questions re Xen memory overcommit
Date: Tue, 28 Feb 2012 13:32:42 -0800 (PST) [thread overview]
Message-ID: <5e49fa0f-fe13-4e8f-bbbe-4855fd82701c@default> (raw)
In-Reply-To: <CAFLBxZZSPwPd0q7ng3BLW+nRaFaxCLYNX98xEcJinbU9jk0emw@mail.gmail.com>
> From: George Dunlap [mailto:dunlapg@umich.edu]
> Subject: Re: [Xen-devel] Pointed questions re Xen memory overcommit
>
> On Mon, Feb 27, 2012 at 11:40 PM, Dan Magenheimer
> <dan.magenheimer@oracle.com> wrote:
> >> From: Olaf Hering [mailto:olaf@aepfle.de]
> >
> > Hi Olaf --
> >
> > Thanks for the reply! Since Tim answers my questions later in the
> > thread, one quick comment...
> >
> >> To me memory overcommit means swapping, which is what xenpaging does:
> >> turn the whole guest gfn range into some sort of virtual memory,
> >> transparent to the guest.
> >>
> >> xenpaging is the red emergency knob to free some host memory without
> >> caring about the actual memory constraints within the paged guests.
> >
> > Sure, but the whole point of increasing RAM in one or more guests
> > is to increase performance, and if overcommitting *always* means
> > swapping, why would anyone use it?
> >
> > So xenpaging is fine and useful, but IMHO only in conjunction
> > with some other technology that reduces total physical RAM usage
> > to less than sum(max_mem(all VMs)).
>
> I agree -- overcommitting means giving the guests the illusion of more
> aggregate memory than there is. Paging is one way of doing that; page
> sharing is another way. The big reason paging is needed is if guests
> start to "call in" the committments, by writing to previously shared
> pages. I would think tmem would also come under "memory overcommit".
Yes and no. By default, tmem's primary role is to grease the
transfer of RAM capacity from one VM to another while minimizing the
loss of performance that occurs when aggressively selfballooning
(or maybe doing "host-policy-driven-ballooning-with-a-semantic-gap").
However, tmem has two optional features "tmem_compress" and
"tmem_dedup" which do result in "memory overcommit" and neither
has the "call in the commitments" issue that occurs with shared
pages, so tmem does not require xenpaging.
That said, I can conceive of a RAMster*-like implementation for
which the ability to move hypervisor pages to dom0 might be
useful/necessary, so some parts of the xenpaging code in the
hypervisor might be required.
* http://lwn.net/Articles/481681/
next prev parent reply other threads:[~2012-02-28 21:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-24 20:53 Pointed questions re Xen memory overcommit Dan Magenheimer
2012-02-24 21:42 ` Olaf Hering
2012-02-27 23:40 ` Dan Magenheimer
2012-02-28 13:54 ` George Dunlap
2012-02-28 21:32 ` Dan Magenheimer [this message]
2012-02-29 10:43 ` Olaf Hering
2012-02-29 17:26 ` Dan Magenheimer
2012-02-29 18:00 ` Andres Lagar-Cavilla
2012-02-29 18:31 ` Dan Magenheimer
2012-02-29 19:11 ` George Dunlap
2012-02-29 20:26 ` Dan Magenheimer
2012-03-01 16:08 ` George Dunlap
2012-03-01 20:34 ` Dan Magenheimer
2012-02-29 19:22 ` Olaf Hering
2012-02-29 20:30 ` Dan Magenheimer
2012-02-29 20:38 ` Olaf Hering
2012-02-27 19:51 ` Tim Deegan
2012-02-27 23:50 ` 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=5e49fa0f-fe13-4e8f-bbbe-4855fd82701c@default \
--to=dan.magenheimer@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=andres@lagarcavilla.org \
--cc=dunlapg@umich.edu \
--cc=konrad.wilk@oracle.com \
--cc=kurt.hackel@oracle.com \
--cc=lars.kurth.xen@gmail.com \
--cc=olaf@aepfle.de \
--cc=tim@xen.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.