[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 0/2] Bulk mem-share identical domains



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.

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 <ian.jackson@xxxxxxxxxxxxx>
Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Cc: Wei Liu <wei.liu2@xxxxxxxxxx>
Cc: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Cc: Keir Fraser <keir@xxxxxxx>
Cc: Jan Beulich <jbeulich@xxxxxxxx>
Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.