From owner-freebsd-stable@freebsd.org Mon Jan 30 18:41:23 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 C9184CC8588 for ; Mon, 30 Jan 2017 18:41:23 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id B700D9CD for ; Mon, 30 Jan 2017 18:41:23 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: by mailman.ysv.freebsd.org (Postfix) id B3587CC8587; Mon, 30 Jan 2017 18:41:23 +0000 (UTC) Delivered-To: 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 B3078CC8586 for ; Mon, 30 Jan 2017 18:41:23 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from constantine.ingresso.co.uk (ingresso-1-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:411::2]) (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 852E99CB for ; Mon, 30 Jan 2017 18:41:23 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from dilbert.london-internal.ingresso.co.uk ([10.64.50.6] helo=dilbert.ingresso.co.uk) by constantine.ingresso.co.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1cYGtF-000CnM-VK for stable@freebsd.org; Mon, 30 Jan 2017 18:41:21 +0000 Received: from petefrench by dilbert.ingresso.co.uk with local (Exim 4.87_1 (FreeBSD)) (envelope-from ) id 1cYGtF-000I5u-Sz for stable@freebsd.org; Mon, 30 Jan 2017 18:41:21 +0000 To: stable@freebsd.org Subject: HASt and write amplification on the seconday Message-Id: From: Pete French Date: Mon, 30 Jan 2017 18:41:21 +0000 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: Mon, 30 Jan 2017 18:41:23 -0000 I have a pair of machines which I have been runnig HAST on for a number of years. It works well, it does what Ineed it to do, and I havent considered the details until recently. As I udnesratnd it though, the minimum size of block copied is set by default to something quite arge (2 meg). I see whay, but as I am using ZFS on top I am generating lots of writes which are scattered across the disc (ZFS not known for keeping writes all in the same place!). So, is each 512 byte write being turned into a 2 meg write on the secondary ? If so this worries me, as I am about to replcae these drives with SSD's, which I do not want to wearn out with excessive writes. Am I worrying over nothing ? Should I try and tune the HAST sizes and the zpool ashift to match, or will that trash performances 9some limited experiments suggest it will). -pete.