public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: Jindrich Makovicka
	<makovick-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [RFT] kvm with Windows optimization
Date: Thu, 25 Oct 2007 18:31:20 -0500	[thread overview]
Message-ID: <47212748.4070001@codemonkey.ws> (raw)
In-Reply-To: <4720E80E.5070506-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1142 bytes --]

Avi Kivity wrote:
> Anthony Liguori wrote:
>>>
>>>> static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu)
>>>> {
>>>>     int r;
>>>>
>>>>     kvm_mmu_free_some_pages(vcpu);
>>>>     r = mmu_topup_memory_cache(&vcpu->mmu_pte_chain_cache,
>>>>                    pte_chain_cache, 4);
>>>>     if (r)
>>>>         goto out;
>>>>     r = mmu_topup_memory_cache(&vcpu->mmu_rmap_desc_cache,
>>>>                    rmap_desc_cache, 1);
>>>>     if (r)
>>>>         goto out;
>>>>     r = mmu_topup_memory_cache_page(&vcpu->mmu_page_cache, 8);
>>>>     if (r)
>>>>         goto out;
>>>>     r = mmu_topup_memory_cache(&vcpu->mmu_page_header_cache,
>>>>                    mmu_page_header_cache, 4);
>>>> out:
>>>>     return r;
>>>> }
>>>
>>>
>>> These are the (4, 1, 8, 4) values in the call to 
>>> mmu_topup_memory_cache.  Perhaps one of them is too low.
>>
>> Sure.  Would this be affected at all by your tpr patch?  

Using the following patch, I'm getting really good results.  I'll keep 
running test cases tonight and see if I can trigger anything.

Windows is *much* faster with your patch, very nice work!

Regards,

Anthony Liguori

[-- Attachment #2: tpr-out-up-rmap_desc_cache.diff --]
[-- Type: text/x-patch, Size: 919 bytes --]

Subject: [PATCH][TPR OPT] Increase rmap_desc_cache
From: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

Using kvm-test to replay the second stage of a WinXP Pro install, I can
reliably trigger a BUG_ON() in the mmu.  It usually happens during the first
run.

With this patch applied, I've been able to replay the install for the past few
hours (probably 10 or so installs) without hitting the BUG_ON().

Signed-off-by: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

--- a/kernel/mmu.c	2007-10-25 12:36:18.000000000 -0500
+++ b/kernel/mmu.c	2007-10-25 17:09:55.000000000 -0500
@@ -280,7 +280,7 @@
 	if (r)
 		goto out;
 	r = mmu_topup_memory_cache(&vcpu->mmu_rmap_desc_cache,
-				   rmap_desc_cache, 1);
+				   rmap_desc_cache, 2);
 	if (r)
 		goto out;
 	r = mmu_topup_memory_cache_page(&vcpu->mmu_page_cache, 8);

[-- Attachment #3: Type: text/plain, Size: 314 bytes --]

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

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

  parent reply	other threads:[~2007-10-25 23:31 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25 17:23 [RFT] kvm with Windows optimization Avi Kivity
     [not found] ` <4720D122.4070606-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 17:34   ` Haydn Solomon
     [not found]     ` <b75785ba0710251034q77a83b98pc784be19c842b807-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-25 17:35       ` Avi Kivity
     [not found]         ` <4720D3F0.8010103-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 17:39           ` Haydn Solomon
     [not found]             ` <b75785ba0710251039x63551396yc9d5e24df0f56ad7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-25 18:07               ` Jindrich Makovicka
2007-10-25 18:10                 ` Avi Kivity
     [not found]                   ` <4720DC12.8050303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 18:15                     ` Haydn Solomon
     [not found]                       ` <b75785ba0710251115h7ef5cbfek492a588e80349e04-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-25 18:20                         ` Avi Kivity
     [not found]                           ` <4720DE65.2030209-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 18:38                             ` Anthony Liguori
     [not found]                               ` <4720E2AF.3070404-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 18:49                                 ` Avi Kivity
     [not found]                                   ` <4720E53A.7040803-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 18:54                                     ` Anthony Liguori
     [not found]                                       ` <4720E65F.8070204-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 19:01                                         ` Avi Kivity
     [not found]                                           ` <4720E80E.5070506-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 19:09                                             ` Haydn Solomon
     [not found]                                               ` <b75785ba0710251209sdcba9cdrd2a6eb84c549581a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-25 19:09                                                 ` Avi Kivity
2007-10-25 21:00                                             ` Anthony Liguori
     [not found]                                               ` <472103E8.8070605-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-26  8:16                                                 ` Avi Kivity
     [not found]                                                   ` <4721A255.5050603-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 13:52                                                     ` Anthony Liguori
2007-10-25 23:31                                             ` Anthony Liguori [this message]
     [not found]                                               ` <47212748.4070001-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-26  1:14                                                 ` Haydn Solomon
2007-10-28 16:26                                                 ` Avi Kivity
2007-10-25 18:54                                 ` Fabian Deutsch
2007-10-26 10:09                     ` Avi Kivity
     [not found]                       ` <4721BCCD.4000401-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-27 18:45                         ` Jindrich Makovicka
2007-10-25 17:51   ` Anthony Liguori
     [not found]     ` <4720D7A8.6060102-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 18:03       ` Avi Kivity
     [not found]         ` <4720DA66.6040303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 18:08           ` Anthony Liguori
     [not found]             ` <4720DBA1.7050003-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 18:09               ` Avi Kivity
2007-10-25 18:27   ` Anthony Liguori
     [not found]     ` <4720E023.8050804-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 18:34       ` Avi Kivity
2007-10-26  3:32       ` Dong, Eddie
     [not found]         ` <10EA09EFD8728347A513008B6B0DA77A0248295E-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-26  8:58           ` Avi Kivity
     [not found]             ` <4721AC51.3090108-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26  9:46               ` Dong, Eddie
     [not found]                 ` <10EA09EFD8728347A513008B6B0DA77A02482C0D-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-26 10:01                   ` Avi Kivity
2007-10-26 13:20           ` Anthony Liguori
     [not found]             ` <4721E98F.3020807-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-26 13:24               ` Avi Kivity
     [not found]                 ` <4721EAA9.1090202-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 13:35                   ` Anthony Liguori
     [not found]                     ` <4721ED0F.7080404-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-26 13:38                       ` Avi Kivity
     [not found]                         ` <4721EDED.8090204-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 13:47                           ` Anthony Liguori
2007-10-26 14:08           ` Anthony Liguori
     [not found]             ` <4721F4DC.2010501-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-29  8:18               ` Dong, Eddie
     [not found]                 ` <10EA09EFD8728347A513008B6B0DA77A024CE569-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-29 13:29                   ` Anthony Liguori
     [not found]                     ` <4725E022.6070202-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-30  4:03                       ` Avi Kivity
     [not found]                         ` <4726ACFC.5090907-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-30  5:02                           ` Anthony Liguori
2007-10-26  9:47   ` Gildas
     [not found]     ` <b2ace7f20710260247s5b2a32cay5112a8931d57402f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-26 10:02       ` Avi Kivity
     [not found]         ` <4721BB45.20906-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 10:29           ` Gildas
     [not found]             ` <b2ace7f20710260329p1f1a8459q68c8a2274a5731c3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-26 10:34               ` Avi Kivity
     [not found]                 ` <4721C2B2.7000205-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 12:42                   ` Remove hardware from host and add to guest? Back, Michael (ext)
     [not found]                     ` <003F437218F04842B2A6976FA19368B18B85DB-EA/R+3GEQKtclD5KMHf1bFOnKfhBOm/VrE5yTffgRl4@public.gmane.org>
2007-10-27 22:25                       ` Dor Laor
2007-10-29 15:04   ` Test for the feature, RE: [RFT] kvm with Windows optimization Zhao, Yunfeng
     [not found] ` <10EA09EFD8728347A513008B6B0DA77A02125FBD@pdsmsx411.ccr.corp.intel.com>
     [not found]   ` <10EA09EFD8728347A513008B6B0DA77A02125FBD-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-30  4:01     ` Test for the feature " Avi Kivity
     [not found]       ` <4726ACB6.6070207-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-30  4:21         ` Anthony Liguori
     [not found]           ` <4726B13D.2020101-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-30  4:27             ` 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=47212748.4070001@codemonkey.ws \
    --to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
    --cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=makovick-Re5JQEeQqe8AvxtiuMwx3w@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