From: Avi Kivity <avi@redhat.com>
To: "Christian Bornträger" <borntraeger@de.ibm.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
Cam Macdonell <cam@cs.ualberta.ca>,
kvm@vger.kernel.org,
Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>,
Anthony Liguori <anthony@codemonkey.ws>
Subject: Re: [PATCH v2] Driver for Inter-VM shared memory device for KVM supporting interrupts.
Date: Wed, 20 May 2009 12:11:57 +0300 [thread overview]
Message-ID: <4A13C95D.1020402@redhat.com> (raw)
In-Reply-To: <200905201107.00930.borntraeger@de.ibm.com>
Christian Bornträger wrote:
> Am Mittwoch 20 Mai 2009 10:45:50 schrieb Avi Kivity:
>
>> Christian Bornträger wrote:
>>
>>> o shared guest kernels: The CMS operating system is build as a bootable
>>> DCSS (called named-saved-segments NSS). All guests have the same host
>>> pages for the read-only parts of the CMS kernel. The local data is stored
>>> in exclusive-write parts of the same NSS. Linux on System z is also
>>> capable of using this feature (CONFIG_SHARED_KERNEL). The kernel linkage
>>> is changed in a way to separate the read-only text segment from the other
>>> parts with segment size alignment
>>>
>> How does patching (smp, kprobes/jprobes, markers/ftrace) work with this?
>>
> It does not. :-)
> Because of that and since most distro kernels are fully modular and kernel
> updates are another problem this feature is not used very often for Linux. It
> is used heavily in CMS, though.
> Actually, we could do COW in the host but then it is really not worth the
> effort.
>
ksm on low throttle would solve all of those problems.
> Yes, KSM is easier and it even finds duplicate data pages.
> On the other hand it does only provide memory saving. It does not speedup
> application startup like execute-in-place (major page faults become minor page
> faults for text pages if the page is already backed by the host)
> I am not claiming that KSM is useless. Depending on the scenario you might
> want the one or the other or even both. For typical desktop use, KSM is very
> likely the better approach
If ksm shares pagecache, then doesn't it become effectively XIP?
We could also hook virtio dma to preemptively share pages somehow.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-05-20 9:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 16:26 [PATCH v2] Driver for Inter-VM shared memory device for KVM supporting interrupts Cam Macdonell
2009-05-18 14:07 ` Christian Borntraeger
2009-05-18 14:26 ` Avi Kivity
2009-05-19 9:00 ` Christian Bornträger
2009-05-19 9:10 ` Avi Kivity
2009-05-19 16:51 ` Cam Macdonell
2009-05-20 2:58 ` Rusty Russell
2009-05-20 7:33 ` Christian Bornträger
2009-05-20 8:45 ` Avi Kivity
2009-05-20 9:07 ` Christian Bornträger
2009-05-20 9:11 ` Avi Kivity [this message]
2009-05-20 9:20 ` Christian Bornträger
2009-05-25 6:18 ` Rusty Russell
2009-05-20 8:07 ` François Diakhate
2009-05-19 18:39 ` Anthony Liguori
2009-05-20 7:33 ` Christian Bornträger
2009-05-20 13:26 ` Anthony Liguori
2009-05-18 16:56 ` Cam Macdonell
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=4A13C95D.1020402@redhat.com \
--to=avi@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=borntraeger@de.ibm.com \
--cc=cam@cs.ualberta.ca \
--cc=ehrhardt@linux.vnet.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.