public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] KVM: x86: avoid unnecessary bitmap allocation when memslot is clean
@ 2010-04-26  9:56 Takuya Yoshikawa
  2010-04-26  9:58 ` [PATCH 1/1] " Takuya Yoshikawa
  2010-04-28  9:50 ` [PATCH v2] " Takuya Yoshikawa
  0 siblings, 2 replies; 10+ messages in thread
From: Takuya Yoshikawa @ 2010-04-26  9:56 UTC (permalink / raw)
  To: avi, mtosatti; +Cc: kvm

Hi Avi,

I want you look at this patch before discussing about our patch set.

This patch sould itself worth it, I belive, and shows how much improvements
we can expect from our dirty bitmap works.

Note: this will not conflict with our future works!

Thanks,
  Takuya

** Simple test **
1. What we did
I measured the time needed for the get dirty log ioctl during playing with
Ubuntu installer, in which VGA is logging, and compared the result to that
of the original version.

2. Test environment
Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz
(No EPT support)
With latest qemu-kvm.git

This test is for clarifying the micro performance, and is not intended to
verify what we can expect on Enterprize servers: so I used my laptop.

3. Results
I picked up three typical parts for comparison.

- TYPE1
original
----------------------------------------
slot=6, slot.len=     32768, usec=   65
slot=7, slot.len=     32768, usec=   24
slot=6, slot.len=     32768, usec=   26
slot=7, slot.len=     32768, usec=   23
slot=6, slot.len=     32768, usec=   24
slot=7, slot.len=     32768, usec=   24
slot=6, slot.len=     32768, usec=   25
slot=7, slot.len=     32768, usec=   25
----------------------------------------
with my patch
----------------------------------------
slot=6, slot.len=     32768, usec=    3
slot=7, slot.len=     32768, usec=    3
slot=6, slot.len=     32768, usec=    3
slot=7, slot.len=     32768, usec=    2
slot=6, slot.len=     32768, usec=    3
slot=7, slot.len=     32768, usec=    2
slot=6, slot.len=     32768, usec=    3
slot=7, slot.len=     32768, usec=    3
----------------------------------------

- TYPE2
original
----------------------------------------
slot=6, slot.len=     32768, usec=  158
slot=7, slot.len=     32768, usec=   26
slot=6, slot.len=     32768, usec=  157
slot=7, slot.len=     32768, usec=   26
slot=6, slot.len=     32768, usec=  157
slot=7, slot.len=     32768, usec=   26
slot=6, slot.len=     32768, usec=  158
slot=7, slot.len=     32768, usec=   27
----------------------------------------
with my patch
----------------------------------------
slot=6, slot.len=     32768, usec=  117
slot=7, slot.len=     32768, usec=    2
slot=6, slot.len=     32768, usec=  124
slot=7, slot.len=     32768, usec=    1
slot=6, slot.len=     32768, usec=  121
slot=7, slot.len=     32768, usec=    1
slot=6, slot.len=     32768, usec=   72
slot=7, slot.len=     32768, usec=    2
----------------------------------------

- TYPE3
original
----------------------------------------
slot=5, slot.len=  16777216, usec=    9
slot=6, slot.len=     32768, usec=    6
slot=7, slot.len=     32768, usec=    7
slot=5, slot.len=  16777216, usec=   11
slot=6, slot.len=     32768, usec=    7
slot=7, slot.len=     32768, usec=    7
slot=5, slot.len=  16777216, usec=   14
slot=6, slot.len=     32768, usec=    8
slot=7, slot.len=     32768, usec=    8
slot=5, slot.len=  16777216, usec=   11
slot=6, slot.len=     32768, usec=    9
slot=7, slot.len=     32768, usec=    9
----------------------------------------
with my patch
----------------------------------------
slot=5, slot.len=  16777216, usec=    2
slot=6, slot.len=     32768, usec=    2
slot=7, slot.len=     32768, usec=    1
slot=5, slot.len=  16777216, usec=    2
slot=6, slot.len=     32768, usec=    2
slot=7, slot.len=     32768, usec=    2
slot=5, slot.len=  16777216, usec=    2
slot=6, slot.len=     32768, usec=    1
slot=7, slot.len=     32768, usec=    1
slot=5, slot.len=  16777216, usec=    3
slot=6, slot.len=     32768, usec=    2
slot=7, slot.len=     32768, usec=    2
----------------------------------------

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

end of thread, other threads:[~2010-05-04  9:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26  9:56 [PATCH 0/1] KVM: x86: avoid unnecessary bitmap allocation when memslot is clean Takuya Yoshikawa
2010-04-26  9:58 ` [PATCH 1/1] " Takuya Yoshikawa
2010-04-27 12:36   ` Marcelo Tosatti
2010-04-27 13:18   ` Avi Kivity
2010-04-27 13:46     ` Takuya Yoshikawa
2010-04-28  4:17       ` Takuya Yoshikawa
2010-04-28 10:27         ` Avi Kivity
2010-04-28 10:26       ` Avi Kivity
2010-04-28  9:50 ` [PATCH v2] " Takuya Yoshikawa
2010-05-04  9:36   ` Avi Kivity

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