diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-02-26 20:19:07 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-03-10 19:33:01 +0100 |
commit | 4a394f410d571d8c8ef7c9f87df781df0f7988bd (patch) | |
tree | e330df013565146adc7f9d2fff41fce6bed670b9 /conf/example.conf.in | |
parent | bb20fac4ab65454dd4cabc90426546c25254d927 (diff) | |
download | lvm2-4a394f410d571d8c8ef7c9f87df781df0f7988bd.tar.gz |
cache: introduce allocation/cache_metadata_format
Add new profilable configation setting to let user select
which metadata format of a created cache pool he wish to use.
By default the 'best' available format is autodetected at runtime,
but user may enforce format 1 or 2 ATM.
Code also detects availability for metadata2 supporting cache target.
In case of troubles user may easily Disable usage of this feature
by placing 'metadata2' into global/cache_disabled_features list.
Diffstat (limited to 'conf/example.conf.in')
-rw-r--r-- | conf/example.conf.in | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/conf/example.conf.in b/conf/example.conf.in index 5e238e499..614ce53e7 100644 --- a/conf/example.conf.in +++ b/conf/example.conf.in @@ -403,9 +403,20 @@ allocation { # This configuration option has an automatic default value. # cache_mode = "writethrough" + # Configuration option allocation/cache_metadata_format. + # Sets default metadata format for new cache. + # + # Accepted values: + # 0 Automatically detected best available format + # 1 Original format + # 2 Improved 2nd. generation format + # + # This configuration option has an automatic default value. + # cache_metadata_format = 0 + # Configuration option allocation/cache_policy. # The default cache policy used for new cache volume. - # Since kernel 4.2 the default policy is smq (Stochastic multique), + # Since kernel 4.2 the default policy is smq (Stochastic multiqueue), # otherwise the older mq (Multiqueue) policy is selected. # This configuration option does not have a default value defined. @@ -1013,7 +1024,7 @@ global { # Configuration option global/cache_disabled_features. # Features to not use in the cache driver. # This can be helpful for testing, or to avoid using a feature that is - # causing problems. Features include: policy_mq, policy_smq. + # causing problems. Features include: policy_mq, policy_smq, metadata2. # # Example # cache_disabled_features = [ "policy_smq" ] @@ -1277,8 +1288,9 @@ activation { # Configuration option activation/raid_region_size. # Size in KiB of each raid or mirror synchronization region. - # For raid or mirror segment types, this is the amount of data that is - # copied at once when initializing, or moved at once by pvmove. + # The clean/dirty state of data is tracked for each region. + # The value is rounded down to a power of two if necessary, and + # is ignored if it is not a multiple of the machine memory page size. raid_region_size = 512 # Configuration option activation/error_when_full. |