All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Carlo Wood <carlo@alinoe.com>
Cc: dm-crypt@saout.de, Nicolas Bock <nicolasbock@gmail.com>
Subject: Re: [dm-crypt] system freezes when using swap that is encrypted
Date: Sun, 14 Nov 2010 09:23:18 +0100	[thread overview]
Message-ID: <4CDF9C76.9070005@redhat.com> (raw)
In-Reply-To: <20101114003552.GA9904@alinoe.com>

On 11/14/2010 01:35 AM, Carlo Wood wrote:
> I use the following configuration for my swap:
> 
> /etc/fstab:
> 
> /dev/mapper/cswap none          swap    sw,pri=1        0       0
> 
> /etc/crypttab:
> 
> cswap       /dev/md1        /dev/random swap
> 
> /dev/md1 is a 16 GB partition on my RAID 5 with three disks.

Stacking devices for swap is not good idea in principle.

It should work in theory but if there is any allocation which
does not use reserved memory pools, it ends in deadlock
(waiting for itself to free some memory by swapping).

Try to set swap to individual device - if it works,
the problem is in MD RAID layer if not, it can be similar
to problem reported before.

dm-crypt uses own reserved bisosets and memory pools so
I expect that problems is in some other subsystem
(but I need to reproduce this to get some info what's going on there)

Milan

  reply	other threads:[~2010-11-14  8:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-12 15:17 [dm-crypt] system freezes when using swap that is encrypted Nicolas Bock
2010-11-12 16:49 ` dave b
2010-11-12 16:51 ` Arno Wagner
2010-11-12 18:23   ` Nicolas Bock
2010-11-12 19:32   ` Nicolas Bock
2010-11-12 21:01     ` Milan Broz
2010-11-13  3:40       ` Nicolas Bock
2010-11-13 14:53         ` Arno Wagner
2010-11-13 17:01           ` Heinz Diehl
2010-11-13 17:02             ` Heinz Diehl
2010-11-14 13:08             ` Arno Wagner
2010-11-14 15:28               ` dave b
2010-11-13 18:49           ` Nicolas Bock
2010-11-14  0:35             ` Carlo Wood
2010-11-14  8:23               ` Milan Broz [this message]
2010-11-14  7:54             ` Heinz Diehl

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=4CDF9C76.9070005@redhat.com \
    --to=mbroz@redhat.com \
    --cc=carlo@alinoe.com \
    --cc=dm-crypt@saout.de \
    --cc=nicolasbock@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.