[PATCH 0/1] KVM: x86: avoid unnecessary bitmap allocation when memslot is clean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
----------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux