From: Max Gautier <mg@max.gautier.name>
To: cryptsetup@lists.linux.dev
Subject: dm-integrity: estimate the size needed for separate integrity device
Date: Mon, 1 Jun 2026 09:50:19 +0200 [thread overview]
Message-ID: <ah05u91w9wfghC8_@framework> (raw)
Hello,
I'm building a media server where I intend to use RAID10 on top of
dm-integrity (and cryptsetup on top of that, but that's not really
relevant, AFAIK). I plan to put the integrity tags of dm-integrity on my
NVME, to avoid some of the performance penalty.
But I'm not sure what size each "integrity tags" partition should be,
depending on the data device.
I'm using this blog [1] as the base for the calculation, but I couldn't
find a reference for the calculation in the dm-integrity kernel
documentation, in cryptsetup wiki or in the integritysetup man page.
Is there a reference for calculating that size ? I'm fine looking at
some code, and it looks like the dm-integrity source[2] has some functions names
which could be helpful, but any pointers would help :)
Thanks !
[1]: https://blog.tty8.org/posts/2025-04-02-moving-dm-integrity-tags-off-the-hdd-to-speed-up-raid.html
[2]: https://codebrowser.dev/linux/linux/drivers/md/dm-integrity.c.html
--
Max Gautier
reply other threads:[~2026-06-01 7:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ah05u91w9wfghC8_@framework \
--to=mg@max.gautier.name \
--cc=cryptsetup@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox