[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/6] virtio-pci: introduce pio notification capa
From: |
Jason Wang |
Subject: |
Re: [Qemu-devel] [PATCH 5/6] virtio-pci: introduce pio notification capability for modern device |
Date: |
Wed, 26 Aug 2015 13:29:40 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 |
On 08/25/2015 07:48 PM, Michael S. Tsirkin wrote:
> On Fri, Aug 21, 2015 at 05:05:49PM +0800, Jason Wang wrote:
>> > We used to use mmio for notification. This could be slow on some arch
>> > (e.g on x86 without EPT). So this patch introduces pio bar and a pio
>> > notification cap for modern device. This ability is enabled through
>> > property "modern-pio-notify" for virtio pci devices and was disabled
>> > by default. Management can enable when it thinks it was needed.
>> >
>> > Benchmarks shows almost no obvious difference with legacy device.
>> > Thanks Wenli Quan <address@hidden> for the benchmarking.
>> >
>> > Cc: Michael S. Tsirkin <address@hidden>
>> > Signed-off-by: Jason Wang <address@hidden>
> I don't really care much about non-EPT hosts, but if you propose
> a patch to optimize them, it should be accompanied by numbers
> showing the performance difference.
>
According to the test, PIO is a little bit faster than fast mmio in some
specific TCP_RR case:
modern device fast mmio vs modern device pio:
TCP_RR:
size/session/+transaction rate%/+cpu%/-+per cpu%/
64/1/[+1.5646%]/+5.6604%/-4.3415%/
64/25/+0.3003%/-0.4517%/+0.7486%/
...
256/1/[+1.0046%]/[-6.5238%]/[+7.0673%]/
So the improvement is almost as much as previous patch.
- Re: [Qemu-devel] [PATCH 3/6] virtio-pci: fix 1.0 virtqueue migration, (continued)
[Qemu-devel] [PATCH 4/6] virtio-pci: use wildcard mmio eventfd for 1.0 notification cap, Jason Wang, 2015/08/21
[Qemu-devel] [PATCH 5/6] virtio-pci: introduce pio notification capability for modern device, Jason Wang, 2015/08/21
[Qemu-devel] [PATCH 6/6] virtio-pci: unbreak queue_enable read, Jason Wang, 2015/08/21