dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [dm-devel] Slow write speeds on new laptop
@ 2020-11-30 14:48 Matthew Wilcox
  0 siblings, 0 replies; only message in thread
From: Matthew Wilcox @ 2020-11-30 14:48 UTC (permalink / raw)
  To: dm-devel

I just got a Tiger Lake based laptop and installed Debian on it with
dm-crypt.  The installer attempts to write zeroes to the encrypted partition
in order to prevent various metadata attacks (using blockdev-wipe [1])

After about eight hours with it not even halfway, I aborted this attempt.
The drive is about a terabyte in size, so that's around 15MB/s.  This
is atrocious!  cryptsetup benchmark says the CPU is capable of doing
4GB/s with aes-xts and a 512b key.  The cipher in use is reported as
aes-xts-plain64.

dd iflag=direct of=/dev/null bs=64k count=100000 gives some pretty poor
results.  with if=/dev/nvme0n1p3, I get 1.2GB/s.  with if=/dev/dm-0,
I get 600MB/s.

I found this critique of the dm-crypt architecture:
https://blog.cloudflare.com/speeding-up-linux-disk-encryption/
I'm using Linux 5.9, and I'm not sure how much of this has been incorporated.

[1] https://salsa.debian.org/installer-team/partman-crypto/-/blob/master/blockdev-wipe/blockdev-wipe.c

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-30 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30 14:48 [dm-devel] Slow write speeds on new laptop Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).