xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Tim Deegan <tim@xen.org>
To: Peter Deng <agent.peter123@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Xen Mem Page Sharing -> Implementation
Date: Fri, 10 Feb 2012 13:44:17 +0000	[thread overview]
Message-ID: <20120210134417.GA30945@ocelot.phlegethon.org> (raw)
In-Reply-To: <CAJy3yGD8PM5c6rF-gvXyCWKFLR1CFvJYxNUJgRhzq=+2rnZhpw@mail.gmail.com>

Hi, 

At 13:07 -0500 on 08 Feb (1328706468), Peter Deng wrote:
> So looking through the code, I am getting that the mechanisms for sharing
> the pages are present within the hypervisor and the hypervisor will manage
> the sharing and unsharing of pages. Now, this leads me into a question that
> regards the implementation of sharing pages. In the research articles I
> have read, hashing was used to determine the contents of similar pages; is
> there code implementation present in Xen that does this or something
> related in that area? If so, where is it in the source code?

No, Xen itself does not contain any code for selecting which pages to
share.  We leave that to the tools.

Incidentally, here are some reasons why hashing pages of RAM and
scanning for duplicates might not be such a great idea:
http://www.usenix.org/events/usenix09/tech/full_papers/milos/milos_html/index.html
(N.B.: that paper does _not_ describe the page-sharing interface that's
currently in Xen; Satori was a research prototype for sharing memory
between _PV_ guests).

Tim.

      reply	other threads:[~2012-02-10 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 18:07 Xen Mem Page Sharing -> Implementation Peter Deng
2012-02-10 13:44 ` Tim Deegan [this message]

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=20120210134417.GA30945@ocelot.phlegethon.org \
    --to=tim@xen.org \
    --cc=agent.peter123@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).