Kevin Wolf ebeab049b0 qcow2: Order concurrent AIO requests on the same unallocated cluster
When two AIO requests write to the same cluster, and this cluster is
unallocated, currently both requests allocate a new cluster and the second one
merges the first one when it is completed. This means an cluster allocation, a
read and a cluster deallocation which cause some overhead. If we simply let the
second request wait until the first one is done, we improve overall performance
with AIO requests (specifially, qcow2/virtio combinations).

This patch maintains a list of in-flight requests that have allocated new
clusters. A second request touching the same cluster is limited so that it
either doesn't touch the allocation of the first request (so it can have a
non-overlapping allocation) or it waits for the first request to complete.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-09-22 21:15:58 -05:00
2009-08-27 21:23:37 -05:00
2009-08-27 21:23:36 -05:00
2009-06-29 08:52:44 -05:00
2009-09-15 00:27:53 +02:00
2009-07-09 16:06:38 -05:00
2009-08-27 21:23:37 -05:00
2009-07-02 17:54:34 +00:00
2009-06-29 14:18:07 -05:00
2009-08-27 21:23:36 -05:00
2009-08-27 21:22:28 -05:00
2009-07-10 13:44:30 -05:00
2009-06-16 15:52:32 -05:00
2009-09-16 21:19:54 +02:00
2009-09-16 21:19:54 +02:00
2009-06-15 13:52:27 +02:00
2009-08-27 21:23:36 -05:00
2009-07-22 15:41:02 -05:00
2009-06-30 12:10:52 +01:00
2009-06-29 08:52:44 -05:00
2009-07-08 18:25:37 +04:00
2009-08-27 21:23:38 -05:00
2009-07-29 11:38:12 -05:00
2009-08-27 21:23:36 -05:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%