From: Zdenek Kabelac <zkabelac@redhat.com>
To: lilofile <lilofile@aliyun.com>,
device-mapper development <dm-devel@redhat.com>,
Mike Snitzer <msnitzer@redhat.com>,
Ondrej Kozina <okozina@redhat.com>,
"Alasdair G. Kergon" <agk@redhat.com>
Subject: Re: Thinly-Provisioned Logical Volumes
Date: Mon, 22 Sep 2014 09:02:23 +0200 [thread overview]
Message-ID: <541FC97F.9050700@redhat.com> (raw)
In-Reply-To: <b3abf2cc-2219-4b5a-b546-5f71301c40e4@aliyun.com>
Dne 20.9.2014 v 16:19 lilofile napsal(a):
> when I test Thinly-Provisioned Logical Volumes(use device thinprovison target),I found the random write performance is very low. What factors will influence the random write performance of thin volume. how can i quickly understand dm-bufio.c?
>
In general 2 major factors -
1. - size of chunk/(provisioned block)
the bigger the block is - the better usually filesystem performs - since the
all the aggregation logic and optimization of fs works.
on the other - the bigger the block is - the less efficient snapshot you get
(since much bigger chunk needs to be copied for i.e. single byte write)
2. - zeroing on provisionsing.
when the block provisioned for the first time - it's (by default config) fully
zeroes - so you don't get random disk content from unwritten areas.
If you don't care about this - you could safely disable zeroing - number of
filesystem usually already manages unwritten space well so if you use block
device for ext4 so shouldn't normally be able to read unwritten areas.
So please try i.e. 256KB chunk size with non-zeroing (-c 256 -Zn) when
creating thin-pool - do you still fell you get poor performance ?
Zdenek
NOTE: you could change zeroing with existing pool, but not your thin-pool
chunk size for now (though future version might be less restrictive here).
next prev parent reply other threads:[~2014-09-22 7:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-20 14:19 Thinly-Provisioned Logical Volumes lilofile
2014-09-22 7:02 ` Zdenek Kabelac [this message]
2014-09-22 12:38 ` Mike Snitzer
2014-09-23 13:51 ` reply: " lilofile
2014-09-23 14:07 ` Zdenek Kabelac
2014-09-24 2:11 ` lilofile
2014-09-24 7:02 ` Zdenek Kabelac
2014-09-24 8:37 ` Joe Thornber
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=541FC97F.9050700@redhat.com \
--to=zkabelac@redhat.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=lilofile@aliyun.com \
--cc=msnitzer@redhat.com \
--cc=okozina@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.