public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
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: Mon, 07 Apr 2008 07:08:57 +0300	[thread overview]
Message-ID: <47F99E59.1030706@qumranet.com> (raw)
In-Reply-To: <896ae46a0804061730v1d4c1d90mf25ea95bb2e56442@mail.gmail.com>

Please don't top-post.

Arjun wrote:
> Avi,
> Thanks for your response.
>
> Regarding the query on "Guest Swapping", I'm referring to the 
> mechanism that the KVM host can use to swap out a guest's pages. Since 
> a guest OS will have its own swapping mechanism, then how will the 
> host ensure that if it choses to swap out a guest's page, it will not 
> conflict with the guest's own swapping mechanism.
> Put another way: I understand (from docs, mailing list etc.) that KVM 
> allows the host to overbook/overcommit physical memory via the guest 
> swapping mechanism. i.e. the guest thinks it has x number of physical 
> pages but actually the host has swapped out some of the guests pages 
> and given the freed up physical memory to another guest VM. So the 
> guest actually has less than x pages in physical memory but doesn't 
> know it.
>

The guest and host swapping algorithms are completely independent.  It 
is quite possible for the host to select an incorrect page (from a 
performance point of view) for swapping.

There is a proposal (search for "CMM2") to allow cooperation between 
guest and host in this area.

-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
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

      reply	other threads:[~2008-04-07  4:08 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
2008-04-07  0:30   ` Arjun
2008-04-07  4:08     ` Avi Kivity [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=47F99E59.1030706@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