From: Chris Wright <chrisw@sous-sol.org>
To: Gordan Bobic <gordan@bobich.net>
Cc: KVM list <kvm@vger.kernel.org>
Subject: Re: KSM without VT / KSM for all memory
Date: Fri, 26 Mar 2010 17:13:41 -0700 [thread overview]
Message-ID: <20100327001341.GK1744@sequoia.sous-sol.org> (raw)
In-Reply-To: <4BAD477D.1060606@bobich.net>
* Gordan Bobic (gordan@bobich.net) wrote:
> Chris Wright wrote:
>>> 2) For all memory in a system, without patching all applications to
>>> register with it
>>
>> No.
>>
>> Right now, an app must be modified to call madvise(MADV_MERGEABLE).
>> Further, the core scanning loop that ksmd performs is based on per-process
>> virtual memory regions rather than physical memory.
>
> You mean only pages within the same process are de-duplicated?
No, de-duplication can span processes. Each process registers some range(s)
of its virtual address space with the scanning daemon. The scanning daemon
will then search all of the registered memory ranges for duplicates. This
is an opt-in thing for each process though.
thanks,
-chris
prev parent reply other threads:[~2010-03-27 0:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 18:22 KSM without VT / KSM for all memory Gordan Bobic
2010-03-26 22:46 ` Chris Wright
2010-03-26 23:47 ` Gordan Bobic
2010-03-27 0:13 ` Chris Wright [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=20100327001341.GK1744@sequoia.sous-sol.org \
--to=chrisw@sous-sol.org \
--cc=gordan@bobich.net \
--cc=kvm@vger.kernel.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