Skip to content

Commit 2971c05

Browse files
eatnumber1Mike Snitzer
authored andcommitted
Documentation: dm-integrity: Document an example of how the tunables relate.
Signed-off-by: Russell Harmon <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 52145f2 commit 2971c05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/admin-guide/device-mapper/dm-integrity.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ table and swap the tables with suspend and resume). The other arguments
213213
should not be changed when reloading the target because the layout of disk
214214
data depend on them and the reloaded target would be non-functional.
215215

216+
For example, on a device using the default interleave_sectors of 32768, a
217+
block_size of 512, and an internal_hash of crc32c with a tag size of 4
218+
bytes, it will take 128 KiB of tags to track a full data area, requiring
219+
256 sectors of metadata per data area. With the default buffer_sectors of
220+
128, that means there will be 2 buffers per metadata area, or 2 buffers
221+
per 16 MiB of data.
216222

217223
Status line:
218224

0 commit comments

Comments
 (0)