i use the virtio dirvier of rhle6, the guest os version is 2.6.16.
the vm exits which caused by io instruction and apic access reduce a lot.
the total number of vm exits decreased by 50% :)
but the ept violation seem increase on cpu 0, cpu 1, cpu 2, cpu3.
(KVM)100000 times on cpu 2,
0, 1989
1, 9937
7, 7951
12, 2709
28, 20
30, 18536
44, 29058
48, 29800
and not all cpu have this problem: cpu4,cpu5,cpu6,cpu7
100000 times on cpu 5,
0, 13934
1, 35955
7, 26
12, 3841
28, 11224
30, 29389
44, 5631
I bind vcpu like this:
virsh vcpupin brd1vm4 0 7
virsh vcpupin brd3vm4 0 0
virsh vcpupin brd3vm4 1 4
virsh vcpupin brd5vm4 0 1
virsh vcpupin brd5vm4 1 5
virsh vcpupin brd9vm4 0 2
virsh vcpupin brd9vm4 1 6
virsh vcpupin brd11vm4 0 3
virsh vcpupin brd11vm4 1 7
the /proc/interrupt of guest os is below:
CPU0 CPU1
0: 1896802 0 IO-APIC-edge timer
1: 8 0 IO-APIC-edge i8042
4: 14 0 IO-APIC-edge serial
8: 0 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-level acpi
10: 0 0 IO-APIC-level virtio1, virtio2, virtio5
11: 1 0 IO-APIC-level virtio0, virtio3, virtio4
12: 104 0 IO-APIC-edge i8042
50: 1 0 PCI-MSI-X virtio2-output
58: 0 0 PCI-MSI-X virtio3-config
66: 2046985 0 PCI-MSI-X virtio3-input
74: 2 0 PCI-MSI-X virtio3-output
82: 0 0 PCI-MSI-X virtio4-config
90: 217 0 PCI-MSI-X virtio4-input
98: 0 0 PCI-MSI-X virtio4-output
177: 0 0 PCI-MSI-X virtio0-config
185: 341831 0 PCI-MSI-X virtio0-input
193: 1 0 PCI-MSI-X virtio0-output
201: 0 0 PCI-MSI-X virtio1-config
209: 188747 0 PCI-MSI-X virtio1-input
217: 1 0 PCI-MSI-X virtio1-output
225: 0 0 PCI-MSI-X virtio2-config
233: 2204149 0 PCI-MSI-X virtio2-input
NMI: 1455767 1426226
LOC: 1896099 1896637
ERR: 0
MIS: 0
the application on all vcpu is the same. so i think the new pv driver
caused ept violation .
2010/11/10 Avi Kivity <[email protected]>:
> On 11/10/2010 09:09 AM, lidong chen wrote:
>>
>> after slove the ept violation problem, i found the vm exits times is
>> still more than xen.
>>
>> and i found most of them is caused by io instruction. then i stat the
>> port number, most of them is caused by virio_net.
>
> This is also solved by the msi-capable virtio driver.
>
> --
> error compiling committee.c: too many arguments to function
>
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html