From: Tim Deegan Subject: Re: Copy-on write sharing Date: Fri, 1 Jun 2012 09:32:16 +0100 Message-ID: <20120601083216.GA77921@ocelot.phlegethon.org> References: <20120531092326.GB62804@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ???? Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi, Please don't drop the list from Cc. I have put it back. At 09:50 +0000 on 31 May (1338457855), ???? wrote: > Hi, I just read about the source code (mainly the mem_sharing.c) that > you mentioned before, but it seemed not like what I was looking for, > and it doesn't make use of the rbtree for page sharing. mem_sharing.c is just the mechanism for having two VMs share a page. The choices of which pages to share are left to the tools. As I said the in-tree Xen tools don't currently have a good way to select pages to share (though there are some out-of-tree users). > I felt that the functionality of this mem_sharing.c file is not like > the KSM(kernel samepage mechanism), which operates in the KVM(kernel > virtual machine). That's right. KVM reuses linux's existing in-kernel mechanism for finding and sharing suitable pages. Tim.