From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
To: qemu-block@nongnu.org
Cc: qemu-devel@nongnu.org, vsementsov@virtuozzo.com,
hreitz@redhat.com, kwolf@redhat.com, den@openvz.org,
eblake@redhat.com
Subject: [PATCH v2 0/3] qcow2: relax subclusters allocation dependencies
Date: Tue, 24 Aug 2021 13:15:14 +0300 [thread overview]
Message-ID: <20210824101517.59802-1-vsementsov@virtuozzo.com> (raw)
Hi all!
v2:
01: improve documentation
02: add Hanna's and Eric's r-bs, add tiny grammar fix
03: fix test by filtering instead of reducing number of writes
Parallel small writes to unallocated cluster works bad when subclusters
enabled.
Look, without subclusters, one of write requests will allocate the whole
cluster, and all other writes to this cluster will be independent of
each other, they depend only on the first one that does allocation.
With subclusters, each write to unallocated subcluster will block the
whole cluster for parallel writing.
So, assume we write 8 consecutive 4k chunks in parallel:
Without subclusters, one of the chunks will block all the cluster and
write L2 entry. The remaining 7 chunks are written in parallel.
With subclusters, each of the chunks will allocate new subcluster and
block the whole cluster. All the chunks are dependent on each other and
queue depth becomes 1. That's not good.
Let's improve the situation.
Vladimir Sementsov-Ogievskiy (3):
simplebench: add img_bench_templater.py
qcow2: refactor handle_dependencies() loop body
qcow2: handle_dependencies(): relax conflict detection
block/qcow2-cluster.c | 60 +++++++++-----
scripts/simplebench/img_bench_templater.py | 95 ++++++++++++++++++++++
scripts/simplebench/table_templater.py | 62 ++++++++++++++
tests/qemu-iotests/271 | 5 +-
tests/qemu-iotests/271.out | 4 +-
5 files changed, 202 insertions(+), 24 deletions(-)
create mode 100755 scripts/simplebench/img_bench_templater.py
create mode 100644 scripts/simplebench/table_templater.py
--
2.29.2
next reply other threads:[~2021-08-24 10:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-24 10:15 Vladimir Sementsov-Ogievskiy [this message]
2021-08-24 10:15 ` [PATCH v2 1/3] simplebench: add img_bench_templater.py Vladimir Sementsov-Ogievskiy
2021-09-13 14:46 ` Hanna Reitz
2021-08-24 10:15 ` [PATCH v2 2/3] qcow2: refactor handle_dependencies() loop body Vladimir Sementsov-Ogievskiy
2021-08-24 10:15 ` [PATCH v2 3/3] qcow2: handle_dependencies(): relax conflict detection Vladimir Sementsov-Ogievskiy
2021-08-25 14:16 ` Eric Blake
2021-09-13 14:51 ` Hanna Reitz
2021-09-13 14:54 ` [PATCH v2 0/3] qcow2: relax subclusters allocation dependencies Hanna Reitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210824101517.59802-1-vsementsov@virtuozzo.com \
--to=vsementsov@virtuozzo.com \
--cc=den@openvz.org \
--cc=eblake@redhat.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).