From owner-freebsd-stable@freebsd.org Thu Feb 9 11:14:24 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A467CD799D for ; Thu, 9 Feb 2017 11:14:24 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from smtp.rlwinm.de (smtp.rlwinm.de [IPv6:2a01:4f8:201:31ef::e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAE82BCB for ; Thu, 9 Feb 2017 11:14:23 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from crest.local (unknown [87.253.189.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.rlwinm.de (Postfix) with ESMTPSA id 280FE119EA for ; Thu, 9 Feb 2017 12:14:12 +0100 (CET) Subject: Re: Boot partition size To: freebsd-stable@freebsd.org References: <54f66195-2929-ef8c-ac53-deaec574c182@ish.com.au> From: Jan Bramkamp Message-ID: <0d4019df-ce72-99ad-fd6c-67afe91811c4@rlwinm.de> Date: Thu, 9 Feb 2017 12:14:12 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <54f66195-2929-ef8c-ac53-deaec574c182@ish.com.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 11:14:24 -0000 On 29/01/2017 06:43, Aristedes Maniatis wrote: > On 29/1/17 3:50pm, Warner Losh wrote: >> (2) shrinking a swap partition to snag >> some space > Yes, except I put my swap into a zvol. I did this when I lost a disk once with a dedicated swap partition and that caused the system to crash. So I realised that dedicated swap was a really bad idea and I needed to choose between zvol and gmirror. I chose zvol to avoid having one more thing to check and worry about. Swapping to ZVOLs is dangerous. Writes to a ZVOL may require kernel memory allocations to finish. This can deadlock/panic your system if the write was to a swap device. I would recommend using GEOM mirror for swap devices.