From owner-freebsd-questions@FreeBSD.ORG Wed May 30 15:49:18 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00B1A106564A for ; Wed, 30 May 2012 15:49:18 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 724718FC14 for ; Wed, 30 May 2012 15:49:17 +0000 (UTC) Received: from i7-quad-PC.computinginnovations.com (dhcp-10-20-30-142.computinginnovations.com [10.20.30.142]) by betty.computinginnovations.com (8.14.5/8.14.3) with ESMTP id q4UFn8GB097403; Wed, 30 May 2012 10:49:08 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20120530104707.05ff63f8@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 30 May 2012 10:48:59 -0500 To: Warren Block , questions@freebsd.org From: Derek Ragona In-Reply-To: References: Mime-Version: 1.0 X-Antivirus: avast! (VPS 120530-0, 05/30/2012), Outbound message X-Antivirus-Status: Clean X-yoursite-MailScanner-Information: Please contact the ISP for more information X-yoursite-MailScanner-ID: q4UFn8GB097403 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Swap files and panics X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2012 15:49:18 -0000 At 10:54 AM 5/29/2012, Warren Block wrote: >Recently I rearranged partitions on an SSD. The swap partition was >eliminated in favor of a swap file on /usr. This works, allows TRIM >support on the swap space, and is easier to resize than a partition. > >However, sometimes the system panics on shutdown. It happens after >"syncing disks", so the filesystems are fine, but it's disconcerting. > >I suspect but haven't yet managed to prove that it's only when swap is not >empty. A race condition involving when the filesystems are unmounted? Or >should there be some code in /etc/rc.d/addswap to run swapoff before shutdown? > >This is on a very recent 9-STABLE amd64, i5 2500K. > >rc.conf: >swapfile="/usr/swap/swap" Did you remove the old swap file entry from /etc/fstab? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.