From owner-freebsd-geom@FreeBSD.ORG Wed Jun 27 02:45:10 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56E24106566C for ; Wed, 27 Jun 2012 02:45:10 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id C1D9A8FC0C for ; Wed, 27 Jun 2012 02:45:09 +0000 (UTC) Received: by lbon10 with SMTP id n10so1161576lbo.13 for ; Tue, 26 Jun 2012 19:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=L6szEdL+0LATGnNZx2CH/RktIL9bdeFVdo4nua3GHIw=; b=EnDlAlNxm+sX0MLQd9GLjIG5MLR3rryHYG99Gbn+NMCZwcQJya3v4idPZYOuI5rZZs YhsW7jhPMSa5oN2hCjP6jhvhkk1zcv4pTkrB+fmqQ1RNi8rmGE3K7Wg/GD7TFjJM5Xr3 3MBbBoK+WojhRVFanI7G1SedjsVj9sIvfzDM9G4xpZAZkAlgXh5UNTSOU+G2GG8ka//D vF4iZg9i0kaBgbXCLH9+S1+x1jApVZ6Itq6DX6GfC5kZsv5xRiMPZBzllpqleaJPPCde bvToNyIz6zPxkf8uopAA7l7L+GMRrxWPr8kS0B1O5b1NMmi6Pd8AtHTmi+85E1qYizr6 7Ekw== MIME-Version: 1.0 Received: by 10.112.98.225 with SMTP id el1mr8718635lbb.30.1340765108715; Tue, 26 Jun 2012 19:45:08 -0700 (PDT) Received: by 10.112.107.170 with HTTP; Tue, 26 Jun 2012 19:45:08 -0700 (PDT) Date: Tue, 26 Jun 2012 22:45:08 -0400 Message-ID: From: Robert Simmons To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Total system freeze when using geli X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2012 02:45:10 -0000 I've run into a total freeze with 9.0. I'm using geli encrypted swap and / with the following: geli init -b -v -a hmac/sha256 -l 256 -s 4096 /dev/ada0p4 and geli_swap_flags="-d -l 256 -s 4096" The following specs: 128M memory and 4G hard disk in a Xen HMV virtual server environment. I have allocated 384M of swap space. After install when I run the freebsd-update fetch command the server freezes at the following stage: Applying patches... I've been trying to diagnose the problem by running top and watching what happens during this stage. I noticed the following: 1) the box runs out of physical memory at this stage (totally expected, that's why there is sufficient swap space). 2) All the processes except 2 sleep: 31 processes: 1 running, 29 sleeping, 1 waiting 3) the box is responsive to hitting enter at the console (it produces another login: prompt) 4) sshd is asleep, so I can't ssh into the box 5) if I try to login to the console, it lets me enter a username then locks up totally, it does not present me with a password: prompt. 6) it has not run out of swap, nowhere close: Mem: 54M Active, 9524K Inact, 41M Wired, 24K Cache, 21M Buf, 32K Free Swap: 384M Total, 6452K Used, 378M Free, 1% Inuse 7) the moment it runs out of physical memory it begins being unresponsive I've brought this thread from freebsd-hackers because after testing this exact same environment and conditions but without using geli, I am unable to reproduce the freeze. With geli, I'm able to produce the freeze 100% of the time. It was suggested in hackers that there is a logjam in the buffer cache. Any thoughts?