public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH 0/4] Swapping
Date: Sat, 13 Oct 2007 04:06:27 +0200	[thread overview]
Message-ID: <47102823.2000600@qumranet.com> (raw)

this patchs allow the guest not shadowed memory to be swapped out.

to make it the must effective you should run -kvm-shadow-memory 1 (witch 
will make your machine slow)
with -kvm-shadow-memory 1,  3giga memory guest can get to be just 32mb 
on physical host!

when not using -kvm-shadow-memory, i saw 4100mb machine getting to as 
low as 168mb on the physical host (not as bad as i thought it would be, 
and surely not as bad as it can be with 41mb of shadow pages :))


it seems to be very stable, it didnt crushed to me once, and i was able 
to run:
2 3giga each windows xp  + 5giga linux guest

and
2 4.1 giga each windows xp and 2 2giga each windows xp.

few things to note:
ignore for now the ugly messages at dmesg, it is due to the fact that 
gfn_to_page try to sleep while local intrreupts disabled ( we have to 
split some emulator function so it wont do it)

and i saw some issue with the new rmapp at fedora 7 live cd, for some 
reason , in the nonpaging mode rmap_remove getting called about 50 times 
less than it need
it doesnt happen at other linux guests, need to check this... (for now 
it mean you might have about 200k of memory leak for each fedora 7 live 
cd you are runing )

also note that now kvm load much faster, beacuse no memset on all the 
memory is needed (beacuse gfn_to_page get called at run time)

(avi, and dor, note that this patch include small fix to a bug in the 
patch that i sent you)

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

             reply	other threads:[~2007-10-13  2:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-13  2:06 Izik Eidus [this message]
     [not found] ` <47102823.2000600-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-13 19:48   ` [PATCH 0/4] Swapping Anthony Liguori
     [not found]     ` <4711210F.40802-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-13 20:06       ` Izik Eidus
     [not found]         ` <4711252F.7020505-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-13 20:21           ` Izik Eidus
     [not found]             ` <471128B5.5090104-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-13 23:17               ` Anthony Liguori
2007-10-14  0:10   ` Anthony Liguori
     [not found]     ` <47115E75.1040203-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-14  0:14       ` Anthony Liguori
     [not found]         ` <47115F6A.7080800-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-14  6:10           ` Izik Eidus
2007-10-15  9:13   ` Carsten Otte
     [not found]     ` <47132F57.3040703-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2007-10-15 12:18       ` Izik Eidus
2007-10-15 18:10   ` Anthony Liguori
     [not found]     ` <4713ACF8.6010809-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-15 18:21       ` Izik Eidus
     [not found]         ` <4713AF9C.8000609-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-15 19:03           ` Anthony Liguori
     [not found]             ` <4713B97F.7090403-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-15 19:16               ` Izik Eidus
     [not found]                 ` <4713BCA4.3080103-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-15 19:29                   ` Anthony Liguori
     [not found]                     ` <4713BFB3.8060701-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-15 19:50                       ` Izik Eidus
     [not found]                         ` <4713C46E.9020107-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-15 20:03                           ` Anthony Liguori
     [not found]                             ` <4713C7A3.4050805-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-15 20:15                               ` Izik Eidus
2007-10-16  9:35                               ` Avi Kivity
     [not found]                                 ` <471485E2.8090301-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-16 18:29                                   ` Anthony Liguori
     [not found]                                     ` <47150325.3070009-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-16 20:01                                       ` Avi Kivity
2007-10-16  7:37                   ` Avi Kivity
2007-10-16  7:38               ` Avi Kivity
2007-10-16  7:36       ` 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=47102823.2000600@qumranet.com \
    --to=izike-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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