From: Ian Campbell <ian.campbell@citrix.com>
To: Tamas K Lengyel <tamas@tklengyel.com>, xen-devel@lists.xenproject.org
Cc: Wei Liu <wei.liu2@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
George Dunlap <george.dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Jan Beulich <jbeulich@suse.com>, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH 0/2] Bulk mem-share identical domains
Date: Tue, 6 Oct 2015 15:26:19 +0100 [thread overview]
Message-ID: <1444141579.5302.199.camel@citrix.com> (raw)
In-Reply-To: <1443990339-19590-1-git-send-email-tamas@tklengyel.com>
On Sun, 2015-10-04 at 14:25 -0600, Tamas K Lengyel wrote:
> The following patches add a convenience memop to the mem_sharing system,
> allowing for the rapid deduplication of memory pages between identical
> domains.
>
> The envisioned use-case for this is the following:
> 1) Create two domains from the same snapshot using xl.
> This step can also be performed by piping an existing domain's memory
> with
> "xl save -c <domain> <pipe> | xl restore -p <new_cfg> <pipe>"
> It is up for the user to create the appropriate configuration for the
> clone,
> including setting up a CoW-disk as well.
> 2) Enable memory sharing on both domains
> 3) Execute bulk dedup between the domains.
This is a neat trick, but has the downside of first shovelling all the data
over a pipe and then needing to allocate it transiently before dedupping it
again.
Have you looked at the possibility of doing the save+restore in the same
process with a cut through for the RAM part which just dups the page into
the target domain?
Once upon a time (migr v1) that would certainly have been impossibly hard,
but with migr v2 it might be a lot easier to integrate something like that
(although surely not as easy as what you've done here!).
Just an idea, and not intended at all as an argument for not taking this
series or anything.
Ian.
next prev parent reply other threads:[~2015-10-06 14:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-04 20:25 [PATCH 0/2] Bulk mem-share identical domains Tamas K Lengyel
2015-10-04 20:25 ` [PATCH 1/2] x86/mem-sharing: Bulk mem-sharing entire domains Tamas K Lengyel
2015-10-05 15:39 ` Andrew Cooper
2015-10-05 16:51 ` Tamas K Lengyel
2015-10-06 9:19 ` Wei Liu
2015-10-04 20:25 ` [PATCH 2/2] tests/mem-sharing: Add bulk option to memshrtool Tamas K Lengyel
2015-10-06 9:20 ` Wei Liu
2015-10-06 14:15 ` Ian Campbell
2015-10-06 16:17 ` Tamas K Lengyel
2015-10-06 14:26 ` Ian Campbell [this message]
2015-10-06 14:52 ` [PATCH 0/2] Bulk mem-share identical domains Andrew Cooper
2015-10-06 16:12 ` Tamas K Lengyel
2015-10-06 16:05 ` Tamas K Lengyel
2015-10-07 10:48 ` Wei Liu
2015-10-08 21:07 ` Tamas K Lengyel
2015-10-09 12:35 ` Wei Liu
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=1444141579.5302.199.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tamas@tklengyel.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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.