public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/8]KVM: swap out guest pages
@ 2007-07-23  6:51 Shaohua Li
       [not found] ` <1185173489.2645.64.camel-yAZKuqJtXNMXR+D7ky4Foa2pdiUAq4bhAL8bYrjMMd8@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Shaohua Li @ 2007-07-23  6:51 UTC (permalink / raw)
  To: kvm-devel, lkml

This patch series make kvm guest pages be able to be swapped out and
dynamically allocated. Without it, all guest memory is allocated at
guest start time.

patches are against latest git, and you need first patch Avi's kvm-sch
integration patch
(http://sourceforge.net/mailarchive/forum.php?thread_name=11841693332609-git-send-email-avi%40qumranet.com&forum_name=kvm-devel ).

Patch is quite stable in my test. With the patch, I can run a 256M
memory guest in a 300M memory host. If guest is idle, the memory it used
can be less than 10M. I did a simple performance test (measure kernel
build time in guest), if there is few swap, the performance w/wo the
patch difference isn't significent. If you have better measurement
approach, please let me try.

Unresolved issue:
1. swapoff doesn't work, we need a hook.
2. SMP guest might not work, as kvm doesn't support smp till now.
3. better algorithm to select swaped out guest pages according to
guest's memory usage.
Maybe more.

Any suggests and comments are appreciated.

Thanks,
Shaohua

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2007-07-25 17:12 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23  6:51 [RFC 0/8]KVM: swap out guest pages Shaohua Li
     [not found] ` <1185173489.2645.64.camel-yAZKuqJtXNMXR+D7ky4Foa2pdiUAq4bhAL8bYrjMMd8@public.gmane.org>
2007-07-23 10:27   ` Avi Kivity
     [not found]     ` <46A4829C.9080104-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-23 12:25       ` Christoph Hellwig
     [not found]         ` <20070723122510.GA3674-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2007-07-23 12:29           ` Avi Kivity
     [not found]             ` <46A49F30.5010206-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-23 12:34               ` Christoph Hellwig
     [not found]                 ` <20070723123443.GB3674-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2007-07-23 12:39                   ` Avi Kivity
2007-07-24  2:00                   ` Shaohua Li
2007-07-23 20:06       ` Jeff Dike
     [not found]         ` <20070723200659.GA13508-1LLyehjZOUUZWFFyALql+T+iFHGzDt/a@public.gmane.org>
2007-07-24  5:22           ` Avi Kivity
     [not found]             ` <46A58CAD.7070807-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-25 16:15               ` Jeff Dike
     [not found]                 ` <20070725161544.GA7747-1LLyehjZOUUZWFFyALql+T+iFHGzDt/a@public.gmane.org>
2007-07-25 17:12                   ` Carsten Otte
2007-07-23 23:10       ` Rusty Russell
2007-07-24  5:30         ` [kvm-devel] " Avi Kivity
     [not found]           ` <46A58E8B.8050507-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-24  6:11             ` Rusty Russell
     [not found]               ` <1185257474.1803.216.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-07-24  6:21                 ` Avi Kivity
     [not found]                   ` <46A59A75.8050501-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-24  6:45                     ` Rusty Russell
     [not found]                       ` <1185259509.1803.237.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-07-24  6:59                         ` Avi Kivity
     [not found]                           ` <46A5A36E.8000409-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-24  7:17                             ` Rusty Russell
2007-07-24  1:42       ` Shaohua Li
     [not found]         ` <1185241357.24201.12.camel-yAZKuqJtXNMXR+D7ky4Foa2pdiUAq4bhAL8bYrjMMd8@public.gmane.org>
2007-07-24  5:42           ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox