summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Harmon <eatnumber1@gmail.com>2023-06-04 22:08:53 -0700
committerMike Snitzer <snitzer@kernel.org>2023-06-22 18:39:51 -0400
commit2971c058746319e9853919553259cef7fe280c94 (patch)
tree954c432de9d7dd1690bddf51bcadc32f92107cd6
parent52145f284c66b9de5be7b054444dd0da066079d6 (diff)
Documentation: dm-integrity: Document an example of how the tunables relate.
Signed-off-by: Russell Harmon <eatnumber1@gmail.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
-rw-r--r--Documentation/admin-guide/device-mapper/dm-integrity.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/admin-guide/device-mapper/dm-integrity.rst b/Documentation/admin-guide/device-mapper/dm-integrity.rst
index 0241457c0027..d8a5f14d0e3c 100644
--- a/Documentation/admin-guide/device-mapper/dm-integrity.rst
+++ b/Documentation/admin-guide/device-mapper/dm-integrity.rst
@@ -213,6 +213,12 @@ table and swap the tables with suspend and resume). The other arguments
should not be changed when reloading the target because the layout of disk
data depend on them and the reloaded target would be non-functional.
+For example, on a device using the default interleave_sectors of 32768, a
+block_size of 512, and an internal_hash of crc32c with a tag size of 4
+bytes, it will take 128 KiB of tags to track a full data area, requiring
+256 sectors of metadata per data area. With the default buffer_sectors of
+128, that means there will be 2 buffers per metadata area, or 2 buffers
+per 16 MiB of data.
Status line: