WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Memory de-duplication

To: Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Memory de-duplication
From: Kaustubh Kabra <kaustubhwise@xxxxxxxxx>
Date: Mon, 30 Aug 2010 10:23:46 +0530
Cc: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, konrad.wilk@xxxxxxxxxx
Delivery-date: Sun, 29 Aug 2010 21:54:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=5QzP2Eb3n92yv/KMs7MDgn+ZXNgw3seYkO8d3R4py7E=; b=Ag+DwqVpOoPwoVIX8UUbS6OLCveq2Zc/BXcNnv4b+/FA8kwrkCMta3/Xvq82iyUn+O Pn6cU8WGhja7kdz+uHPx/lHof8yhv18ie/J6Pr8Qcu9FYh2WV4sgGbLUO6TyyMm98jiX /rhhX6qVUcenbuQnIUhEpS3lX2D9P4jOfFFM0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DhlcMTxWcMvR59SBu4z6c3OQEvDeGcBIQCATNmgtM9fCEiys4gaw+wd9+Zcu8UOa8m 2XBZ8RfZfOrdijzbwHRMOgc5YYkaqzZDeU/up47noUfvHU8V4bU53gyzfN2rB0+nnYr6 4nN4A4EWmksa0ghD50LfyymoPurI8XSt/phbM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimbcWUKhz65_gFbwAVSKvFmepLC+rdap38rQXWL@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTin=hf=qDSdQKxfe_JG8xUMS0cZ=5+fuMV6eyMkn@xxxxxxxxxxxxxx> <a2dbe151-1b11-4e1c-a23f-40aff7f8d6f5@default> <AANLkTimbcWUKhz65_gFbwAVSKvFmepLC+rdap38rQXWL@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
     Our idea of implementation suggests to bring the memory manager from the kernel of the Dom U s to the hypervisor level and directly map the memory management related system calls to  the hypercalls. Then allocate pages in the main memory after performing de-duplication and return the address. So, the aim is to have a single memory manager running at hypervisor level.

     When the RAM becomes full a shared swap area will be used further reducing the need for an explicit swap within each DomU hence saving significant amount of disk space. Will such an implementation be useful? What are the expected challenges?

We were thinking of implementing such a idea as our final year project.

Regards,
Kaustubh Kabra
Aditya Gadre
Ashwin Vasani
Keshav Darak

On Fri, Aug 27, 2010 at 10:43 PM, Kaustubh Kabra <kaustubhwise@xxxxxxxxx> wrote:
Hi Dan,

Yes, I have been thinking of implementing common-page sharing for
multiple guest OSes for Xen. This will be similar to the way KVM
benefits because of the KSM feature in the Linux kernel.

I found your patch for sharing ephemeral pages in the same tmem pool while
searching further on the same topic. As I understand it the ephemeral pages 
are the pages that are read-only, i.e. txt section of executables etc. Is this
understanding correct?

Now that this is in place, I was thinking about extending this further
to all the pages in the Guest OS's memory and use COW for read-write
pages. I have started reading up the tmem architecture document and
also your patch to have a better understanding of the system. Once I
have digested this, I'll come up with a proposal towards the same.

Do you have any thoughts on the concept / anticipated roadblocks ?


On Thu, Aug 26, 2010 at 7:49 PM, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> wrote:
Hello Kaustubh --

I'm sorry I didn't reply to your earlier direct email.

Tmem internals documentation can be found in the Xen
source tree under docs/misc... here is the document:

http://lists.xensource.com/archives/html/xen-devel/2010-04/msg01031.html

There is a brief discussion about page deduplication and
the data structures used to support it... other than
that and the code, there are no other details but
I would be happy to respond to specific questions.

There are also some performance results from the
last Xen Summit North America here:

http://oss.oracle.com/projects/tmem/dist/documentation/presentations/TranscendentMemoryXenSummit2010.pdf

Note that the deduplication is performed only on pages
in tmem ephemeral pools.  If you are interested in page
sharing across all guest memory, that is a completely different
project.

Thanks,
Dan

> -----Original Message-----
> From: Kaustubh Kabra [mailto:kaustubhwise@xxxxxxxxx]
> Sent: Thursday, August 26, 2010 6:01 AM
> To: Xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-devel] Memory de-duplication
>
> I have gone through the details of tmem and the patch provided by
> a group consisting Dan Magenheimer  as,
>
> [Xen-devel] [PATCH] [xen-unstable] tmem: add page deduplication with
> opt .
> http://lists.xensource.com/archives/html/xen-devel/2010-
> 04/msg00148.html
>
> The further details of the project as such are not available . So I
> request someone,who is aware of further development, to provide
> information about current status of the project.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



--



--
Kaustubh Kabra
http://www.kaustubhwise.000a.biz



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>