From owner-freebsd-questions@freebsd.org Thu Oct 15 16:29:54 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 0A32AA15238 for ; Thu, 15 Oct 2015 16:29:54 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01.mail.uk1.eechost.net [217.69.40.69]) by mx1.freebsd.org (Postfix) with ESMTP id A277840E for ; Thu, 15 Oct 2015 16:29:52 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [88.151.27.41] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1ZmlCP-0006nY-Hr for freebsd-questions@freebsd.org; Thu, 15 Oct 2015 17:16:13 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.marelmo.com with smtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZmlCN-000A3D-TW for freebsd-questions@freebsd.org; Thu, 15 Oct 2015 16:16:12 +0000 Date: Thu, 15 Oct 2015 17:16:11 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Follow-up install questions Message-Id: <20151015171611.4c2c5581b962d9da9c1f92c5@sohara.org> In-Reply-To: <561F9FAC.9080308@hiwaay.net> References: <561F9FAC.9080308@hiwaay.net> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 24227@permanet.ie (plain) 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: Thu, 15 Oct 2015 16:29:54 -0000 On Thu, 15 Oct 2015 07:49:58 -0453.75 "William A. Mahaffey III" wrote: > Pursuant to ongoing issues trying to install FreeBSD 9.3R on my Myth-TV > box, I have some questions about provisioning another box, also w/ 9.3R. > That box is AMD A-10 APU based, w/ 8X 1 TB 2.5" HDD's. Given the > problems I am having getting the (smaller, simpler box) going. I am > pondering using ZFS on the larger box. You have a fair number of options with 8 drives and they all involve trade offs - for example the maximum storage would be striping across all eight, maximum read performance would be an eight way mirror although the stripes can be nearly as good for undisturbed streaming (once there's any noticable interference with the streaming the stripe performance degrades rapidly). RAIDZ1/2/3 provide more bytes for a given protection level than mirroring at the cost of performance. But all of that is just rules of thumb - for performance start with what you need in terms of random and streaming I/O and what sort of load you want to impose. Then work out how to get it, at least that's my approach. Sometimes it pays to separate pools based on usage, so that they can be tuned separately and that the different kinds of workloads don't get to interfere with each other. > To that end, I have a couple of > questions. ZFS supports (man page) 'unmirrored pools'. Is that > tantamount to striped RAID ? Yes. > If so, what sort of I/O performance can I > look for there ? There are really good documents on the performance of the various options for ZFS, but for real world use so much depends on the actual workload that it's really best to use the documents to short list some options and then benchark them with real loads if possible. > up across the LAN onto other boxen, so I am worrying less about HDD > reliability & more about performance & max available GiB's/TiB's. Right there is a tradeoff - maximising data means only one copy and so that means that the small random I/O performance can fall to that of a single drive, OTOH the performance for undisturbed large reads striped across all drives is effectively multiplied by the number of drives (with decent management) - for eight 4k drives (and matching stripe blocks) this means 32Kbyte reads are needed. Mirrors effectively multiply all read performance by the number of drives in the mirror. So you see it depends what sort of performance you need - maybe you'd be best with a mix - some in a mirror for the random I/O and the rest striped for streaming performance - or maybe just swap one drive for an SSD for the random I/O and stripe the rest. None of this is epecific to ZFS (or FreeBSD). -- Steve O'Hara-Smith