From: Michael Roth <mdroth@linux.vnet.ibm.com>
To: Jidong Xiao <jidong.xiao@gmail.com>
Cc: linux-mm@kvack.org, virtualization@lists.linux-foundation.org
Subject: Re: Strange finding about kernel samepage merging
Date: Mon, 6 Feb 2012 21:35:44 -0600 [thread overview]
Message-ID: <CANAOKxs8j2T2b0tKssFX9NeC1wyMqjLMQmgmRwMs9qvokYcW2w@mail.gmail.com> (raw)
In-Reply-To: <CAG4AFWaXVEHP+YikRSyt8ky9XsiBnwQ3O94Bgc7-b7nYL_2PZQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 238 bytes --]
My guess is you end up with 2 copies of each page on the guest: the copy in
the guest's page cache, and the copy in the buffer you allocated. From the
perspective of the host this all looks like anonymous memory, so ksm merges
the pages.
[-- Attachment #2: Type: text/html, Size: 249 bytes --]
next prev parent reply other threads:[~2012-02-07 3:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 22:44 Jidong Xiao
2012-02-07 3:35 ` Michael Roth [this message]
2012-02-07 4:13 ` Jidong Xiao
2012-02-07 5:46 ` fluxion
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=CANAOKxs8j2T2b0tKssFX9NeC1wyMqjLMQmgmRwMs9qvokYcW2w@mail.gmail.com \
--to=mdroth@linux.vnet.ibm.com \
--cc=jidong.xiao@gmail.com \
--cc=linux-mm@kvack.org \
--cc=virtualization@lists.linux-foundation.org \
/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