From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Sun, 14 Nov 2010 09:23:30 +0100 (CET) Message-ID: <4CDF9C76.9070005@redhat.com> Date: Sun, 14 Nov 2010 09:23:18 +0100 From: Milan Broz MIME-Version: 1.0 References: <20101112165136.GA23352@tansi.org> <4CDDAB0C.1020603@redhat.com> <20101113145346.GA12522@tansi.org> <20101114003552.GA9904@alinoe.com> In-Reply-To: <20101114003552.GA9904@alinoe.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] system freezes when using swap that is encrypted List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Carlo Wood Cc: dm-crypt@saout.de, Nicolas Bock 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