From: Tamas K Lengyel Subject: [PATCH 0/2] Bulk mem-share identical domains Date: Sun, 4 Oct 2015 14:25:37 -0600 Message-ID: <1443990339-19590-1-git-send-email-tamas@tklengyel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZiprZ-00061y-Fb for xen-devel@lists.xenproject.org; Sun, 04 Oct 2015 20:26:29 +0000 Received: by igxx6 with SMTP id x6so45577086igx.1 for ; Sun, 04 Oct 2015 13:26:26 -0700 (PDT) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Tamas K Lengyel , Wei Liu , Ian Campbell , Stefano Stabellini , George Dunlap , Andrew Cooper , Ian Jackson , Jan Beulich , Keir Fraser List-Id: xen-devel@lists.xenproject.org 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 | xl restore -p " 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. Performing memory deduplication this way reduces the number of hypercalls that need to be performed, thus significantly speeding up the operation. The subsystem is currently orphaned and without a maintainer. AFAIK I'm the only active user of this subsystem. These patches are also available via git at https://github.com/tklengyel/xen/tree/memshr_bulk Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: George Dunlap Cc: Keir Fraser Cc: Jan Beulich Cc: Andrew Cooper Tamas K Lengyel (2): x86/mem-sharing: Bulk mem-sharing entire domains tests/mem-sharing: Add bulk option to memshrtool tools/libxc/include/xenctrl.h | 11 +++++ tools/libxc/xc_memshr.c | 14 ++++++ tools/tests/mem-sharing/memshrtool.c | 20 ++++++++ xen/arch/x86/mm/mem_sharing.c | 90 +++++++++++++++++++++++++++++++++++- xen/arch/x86/x86_64/compat/mm.c | 6 ++- xen/arch/x86/x86_64/mm.c | 6 ++- xen/include/asm-x86/mem_sharing.h | 3 +- xen/include/public/memory.h | 1 + 8 files changed, 144 insertions(+), 7 deletions(-) -- 2.1.4