Documentation: dm-integrity: Document an example of how the tunables relate.
authorRussell Harmon <eatnumber1@gmail.com>
Mon, 5 Jun 2023 05:08:53 +0000 (22:08 -0700)
committerMike Snitzer <snitzer@kernel.org>
Thu, 22 Jun 2023 22:39:51 +0000 (18:39 -0400)
Signed-off-by: Russell Harmon <eatnumber1@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Documentation/admin-guide/device-mapper/dm-integrity.rst

index 0241457c0027cb7b049d9a94943ff6b8285a2174..d8a5f14d0e3c41a78d77678519bd2513b04dc009 100644 (file)
@@ -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: