block/parallels: improve image writing performance further
commitddd2ef2ce8d693b6e2635a0c20f65744641ff8df
authorDenis V. Lunev <den@openvz.org>
Tue, 28 Apr 2015 07:47:00 +0000 (28 10:47 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 22 May 2015 08:37:32 +0000 (22 09:37 +0100)
treed383c78f18a008dc62217f9785bf2964ae9e41fa
parent19f5dc15912dfb6af06c97e4975023e545e85c72
block/parallels: improve image writing performance further

Try to perform IO for the biggest continuous block possible.
All blocks abscent in the image are accounted in the same type
and preallocation is made for all of them at once.

The performance for sequential write is increased from 200 Mb/sec to
235 Mb/sec on my SSD HDD.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Roman Kagan <rkagan@parallels.com>
Signed-off-by: Roman Kagan <rkagan@parallels.com>
Message-id: 1430207220-24458-28-git-send-email-den@openvz.org
CC: Kevin Wolf <kwolf@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/parallels.c