From owner-freebsd-fs@FreeBSD.ORG Wed Jul 9 09:28:51 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AFF132F for ; Wed, 9 Jul 2014 09:28:51 +0000 (UTC) Received: from smtp-sofia.digsys.bg (smtp-sofia.digsys.bg [193.68.21.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smtp-sofia.digsys.bg", Issuer "Digital Systems Operational CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CDF7B2690 for ; Wed, 9 Jul 2014 09:28:50 +0000 (UTC) Received: from dcave.digsys.bg (dcave.digsys.bg [193.68.6.1]) (authenticated bits=0) by smtp-sofia.digsys.bg (8.14.6/8.14.6) with ESMTP id s699RNLg010304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 9 Jul 2014 12:27:23 +0300 (EEST) (envelope-from daniel@digsys.bg) Message-ID: <53BD0AFB.3000909@digsys.bg> Date: Wed, 09 Jul 2014 12:27:23 +0300 From: Daniel Kalchev User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Re: Using 2 SSD's to create a SLOG References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 09:28:51 -0000 On 08.07.14 04:06, javocado wrote: > I am hoping to dumbly plug two SSDs onto motherboard SATA ports and just > hand them over, raw, to ZFS. > Others already commented how you should setup mirrored SLOG. In addition to that, because of the nature of SSDs and SLOG, I would recommend the following: The SLOG size does not need to be large, it should only cover several seconds of your synchronous write throughput -- usually few GB are plenty. Today's SSDs are much large than needed for SLOG. But, today's SSDs also suffer severe performance degradation, especially for writing when you fill them up with data and they need to do garbage collection. Also, most SSDs have "good performance" only when using an 8GB span, not the whole drive. All of this only makes sense if the drive has TRIM. FreeBSD already supports TRIM for ZFS SLOG. Therefore ensure you do TRIM of the entire drive, then partition it with GPT to only use (say) 8GB for the SLOG. Leave the rest unallocated -- you will never write there but the drive's controller will use those blocks as spares for TRIM and this will both improve performance and make the drive last much longer. Then add both slices as a mirrored log device to your ZFS pool. Daniel