Skip to contentSkip to conversation

dm-thin: Add data block size limits to the Documentation

PATCH In review Carlos Maiolino 2 participants 3 messages Jul 23, 2013 – Jul 24, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm-thin: Add data block size limits to the Documentation

$data_block_size can't be any arbitrary number, i.e. its value should be between 64K and 1G. Also, it should be a multiple of 64K.
Add this information to the dm-thin documentation in order to let users know which values they must use.

---
 Documentation/device-mapper/thin-provisioning.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/device-mapper/thin-provisioning.txt +2 -2
index 30b8b83..ff1629b 100644
@@ -104,8 +104,8 @@ primarily interested in thin provisioning may want to use a value such
 as 1024 (512KB).  People doing lots of snapshotting may want a smaller value
 such as 128 (64KB).  If you are not zeroing newly-allocated data,
 a larger $data_block_size in the region of 256000 (128MB) is suggested.
-$data_block_size must be the same for the lifetime of the
-metadata device.
+$data_block_size must be between 128 (64KB) and 2097152 (1GB) and be a multiple
+of 128 (64KB), and the same for the lifetime of the metadata device.
 
 $low_water_mark is expressed in blocks of size $data_block_size.  If
 free space on the data device drops below this level then a dm event
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 2 lines · Carlos Maiolino

$data_block_size can't be any arbitrary number, i.e. its value should be between 64K and 1G. Also, it should be a multiple of 64K.

The limits 64K and 1G are correct and enforced by the pool constructor in the target.

Blocksize is _not_ a multiple of 64K; it has to be power of 2.

Thus 64K,128K,256K,512K and 1G are valid block sizes for the pool with the current pool constructor limits enforced.

-- lvmguy

Quoted 23 lines

Add this information to the dm-thin documentation in order to let users know which values they must use.

---
  Documentation/device-mapper/thin-provisioning.txt | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/device-mapper/thin-provisioning.txt +2 -2
index 30b8b83..ff1629b 100644
@@ -104,8 +104,8 @@ primarily interested in thin provisioning may want to use a value such
  as 1024 (512KB).  People doing lots of snapshotting may want a smaller value
  such as 128 (64KB).  If you are not zeroing newly-allocated data,
  a larger $data_block_size in the region of 256000 (128MB) is suggested.
-$data_block_size must be the same for the lifetime of the
-metadata device.
+$data_block_size must be between 128 (64KB) and 2097152 (1GB) and be a multiple
+of 128 (64KB), and the same for the lifetime of the metadata device.
 
  $low_water_mark is expressed in blocks of size $data_block_size.  If
  free space on the data device drops below this level then a dm event
#2 lore raw
Quoted 9 lines · Heinz Mauelshagen
Quoted 2 lines · Carlos Maiolino

$data_block_size can't be any arbitrary number, i.e. its value should be between 64K and 1G. Also, it should be a multiple of 64K.

The limits 64K and 1G are correct and enforced by the pool constructor in the target.

Blocksize is _not_ a multiple of 64K; it has to be power of 2.

Thus 64K,128K,256K,512K and 1G are valid block sizes for the pool with the current pool constructor limits enforced.

Correction self: 64K increments are upstream -> your patch is correct.

Quoted 34 lines

-- lvmguy

Quoted 26 lines

Add this information to the dm-thin documentation in order to let users know which values they must use.

---
  Documentation/device-mapper/thin-provisioning.txt | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/device-mapper/thin-provisioning.txt +0 -0
index 30b8b83..ff1629b 100644
@@ -104,8 +104,8 @@ primarily interested in thin provisioning may 

want to use a value such
as 1024 (512KB). People doing lots of snapshotting may want a
smaller value
such as 128 (64KB). If you are not zeroing newly-allocated data, a larger $data_block_size in the region of 256000 (128MB) is
suggested.
-$data_block_size must be the same for the lifetime of the -metadata device.
+$data_block_size must be between 128 (64KB) and 2097152 (1GB) and be a multiple
+of 128 (64KB), and the same for the lifetime of the metadata device.
$low_water_mark is expressed in blocks of size $data_block_size. If
free space on the data device drops below this level then a dm event

Signature · 3 lines
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel