From: Avi Kivity <avi@qumranet.com>
To: Arjun <cse.syslab@gmail.com>
Cc: kvm-devel@lists.sourceforge.net
Subject: Re: Need info on guest swapping and other things in KVM
Date: Sun, 06 Apr 2008 10:39:07 +0300 [thread overview]
Message-ID: <47F87E1B.7050208@qumranet.com> (raw)
In-Reply-To: <896ae46a0804041718i52fa31b9vfcdbb419edce79cc@mail.gmail.com>
Arjun wrote:
> Hi Folks,
>
> A fellow student and I wish to do run some experiments with KVM.
> Specifically, we would like to examine
> KVM's guest paging/swapping mechanism, make some changes and run some
> tests. After a brief search through
> the docs and code, we would greatly appreciate help with the following:
>
> 1) Guest Paging : What is the selection mechanism used by KVM for
> evicting a guest's page ?
With mmu notifiers (not yet merged), pages are picked by the normal
Linux LRU mechanism.
> What if there are any conflicts between host and guest as to which
> page to evict ?
>
I don't understand this question.
> 2) Where can we find the code for the above (guest paging).
It's the normal Linux swapping code.
>
> 3) Are the KVM guests scheduled by the (hosts) standard linux
> scheduler ? It appears that this
> is the case but I want to be sure.
Yes.
>
> 4) Have there been any changes to the host's page/buffer cache ? Are
> there any changes planned ?
>
Yes, mmu notifiers. This doesn't change pagecache, but rather allows
kvm's shadow mmu to be synchronized to the main Linux mmu, which is what
allows page eviction and page aging to work.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
next prev parent reply other threads:[~2008-04-06 7:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-05 0:18 Need info on guest swapping and other things in KVM Arjun
2008-04-06 7:39 ` Avi Kivity [this message]
2008-04-07 0:30 ` Arjun
2008-04-07 4:08 ` Avi Kivity
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=47F87E1B.7050208@qumranet.com \
--to=avi@qumranet.com \
--cc=cse.syslab@gmail.com \
--cc=kvm-devel@lists.sourceforge.net \
/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