dm-crypt.saout.de archive mirror
 help / color / mirror / Atom feed
From: mark <mark@aktivix.org>
To: dm-crypt@saout.de
Subject: [dm-crypt] How to optimise encrypted filesystems on an SSD?
Date: Fri, 05 Feb 2010 23:48:15 +0000	[thread overview]
Message-ID: <4B6CAE3F.2060605@aktivix.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

Hi there.

For a while I've been using LUKS/dm-crypt with LVM2 to secure hard
drives in laptops and servers. Recently I've moved one of my filesystems
onto a solid-state drive (Intel X25-M-G2 80GB with latest firmware).

There are some excellent instructions here
http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/
on how to align ext4 and LVM to the erase block size of the SSD. However
I've not been able to find a recipe for optimising an encrypted
filesystem in the same way.

A typical usage case for me would be this, from following defaults for
encrypted lvm on the Debian installer:

/dev/sda1 79GB crypt-luks
/dev/mapper/sda1_crypt holds PV for LVM2
     PV has a VG with two LVs, 4GB swap and the rest for ext4 /
/dev/sda5 256MB ext2 /boot

Could anyone explain how I might go about aligning/optimising this, or
point me to some instructions? Am I better putting lvm over luks or luks
over lvm? Or something entirely different?

Thanks in advance,
Mark


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

             reply	other threads:[~2010-02-05 23:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-05 23:48 mark [this message]
2010-02-06  9:26 ` [dm-crypt] How to optimise encrypted filesystems on an SSD? Milan Broz

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=4B6CAE3F.2060605@aktivix.org \
    --to=mark@aktivix.org \
    --cc=dm-crypt@saout.de \
    /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;
as well as URLs for NNTP newsgroup(s).