From owner-freebsd-questions@freebsd.org Sat Aug 29 20:13:25 2015 Return-Path: Delivered-To: freebsd-questions@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 330059C58C8 for ; Sat, 29 Aug 2015 20:13:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFB5F1197 for ; Sat, 29 Aug 2015 20:13:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-125-111.dynamic.qsc.de [92.195.125.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 1C7553CF47; Sat, 29 Aug 2015 22:03:12 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t7TK3BGW002577; Sat, 29 Aug 2015 22:03:11 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 29 Aug 2015 22:03:11 +0200 From: Polytropon To: Warren Block Cc: freebsd-questions@freebsd.org Subject: Re: Replacing Drive with SSD Message-Id: <20150829220311.c7608be1.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2015 20:13:25 -0000 On Fri, 28 Aug 2015 12:47:30 -0600 (MDT), Warren Block wrote: > If you are a belt-and-suspenders type, create a smallish, maybe 4G, > partition on the drive that will never be used and leave it empty. > Don't write to it, ever. This is called over-provisioning. The drive > sees that all those blocks are free and it can swap them around for wear > leveling. This can be used in addition to trim. To extend the idea (because sometimes I am the axe-and-byrnie type): Does this also work with _no_ partitions at all? For example, when the device is formatted "as a whole" (dedicated), like # bsdlabel -w ada0 # bsdlabel -e ada0 set type "4.2BSD" for 'a' partition make 'a' same size as 'c' save # newfs -m 0 -i 16384 -b 16384 -f 2048 -U -t enable -n disable -L ssdroot /dev/ada0a # bsdlabel -B ada0 where /dev/ada0a has been prepared with bsdlabel to span the entire device (as in the example) - or in this case, to be a little bit less (4G) than the whole disk capacity? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...