From owner-freebsd-stable@FreeBSD.ORG Fri Oct 29 03:14:32 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FFAB106564A for ; Fri, 29 Oct 2010 03:14:32 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1BDA58FC0A for ; Fri, 29 Oct 2010 03:14:31 +0000 (UTC) Received: by qyk2 with SMTP id 2so1614574qyk.13 for ; Thu, 28 Oct 2010 20:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=HloN1h9KRlfYld7CqqkbUmnCEMCmui1bhVk6niWbHbc=; b=Gsi2GwXg76g9fGyuEouF831RJYAo6pqMjWoWfFchiHVID26W3DcxT6haKagAaJu3m+ juBu8x00vpGKH5XDeS6cvElFyZittMLBsg2EtXJNOoWnIWL57nURryksEqj0FLGlJc2c y4lP5LbB6Qw0ijThKhRzY0fvwRJ8FdvgpS8Aw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=CjNNQB2kBbrEDV4Vk/4sEf4SBOqDjZu5Q6hyjVinJNxtSlIUEZ8IDIZ2lGD//7dKnW 7GDvQWt66kNkEyxqmUNNo9tXApx2kzklsbvWYGRHq7HxlId1V2k5VNqAR1O5FF9kJaUs Ib0aKrzaJTf2GMvcfXYisNPRaRT3kOwK2zF1k= Received: by 10.229.224.81 with SMTP id in17mr6359004qcb.81.1288322071064; Thu, 28 Oct 2010 20:14:31 -0700 (PDT) Received: from centel.dataix.local (adsl-99-181-136-243.dsl.klmzmi.sbcglobal.net [99.181.136.243]) by mx.google.com with ESMTPS id s28sm1804112qcp.21.2010.10.28.20.14.27 (version=SSLv3 cipher=RC4-MD5); Thu, 28 Oct 2010 20:14:29 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4CCA3C11.4000609@DataIX.net> Date: Thu, 28 Oct 2010 23:14:25 -0400 From: jhell Organization: http://www.DataIX.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.12) Gecko/20101028 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: "S.N.Grigoriev" References: <398231288212690@web127.yandex.ru> <7FF9CDFF-3FA0-45EA-85F5-A236AEFC03C7@lassitu.de> <313981288251001@web49.yandex.ru> In-Reply-To: <313981288251001@web49.yandex.ru> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Stefan Bethke Subject: Re: ZFS write speed X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2010 03:14:32 -0000 On 10/28/2010 03:30, S.N.Grigoriev wrote: > > > 28.10.10, 01:54, "Stefan Bethke" : > >> Am 27.10.2010 um 22:51 schrieb S.N.Grigoriev: >> >> > Hi list, >> > >> > I've got very low write speed using ZFS on a SATA disk. >> > My HDD configuration is: >> > ad4: 70911MB at ata2-master UDMA100 SATA 3Gb/s >> > ad6: 78532MB at ata3-master UDMA100 SATA 1.5Gb/s >> > ad8: 1430799MB at ata4-master UDMA100 SATA 3Gb/s >> >> The EARS has 4k sectors, if I'm not mistaken. I don't recall the eventual >> outcome, but there was a long thread on stable or hackers on how to ensure >> proper alignment and (minimun) 4k-sized writes to make sure the disk doesn't >> have to do a read-modify-write cycle, so try and search the archives. Though this might play a small part in your write performance with the EARS drives, this issue has more to do with the stat() calls and the ACL involvement with ZFS. This was sort of solved in 8.1-STABLE and from 3 cases that I know about and 1 being my own... write/read speeds have doubled from what can be seen to an effect of 8.1-RELEASE. You may want to either upgrade to stable/8 or use one of the snapshots from here: ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/201010/ > > Stefan, > > thank you for your response. I'll try to find the topic you pointed. > >> > ad4 and ad6 are single-slice disks (UFS2 with soft updates) >> > >> > ZFS configuration is following: >> > zpool create Z ad8 >> > zfs create Z/music >> > zfs create Z/video >> > All ZFS parameters are default. >> > kern.maxvnodes = 1000000 >> > >> > To test my configuration I recursively copied from ad6 to ad8 two directories. >> > The first one contains MP3 files (average size = 10MB). >> > The second one contains AVI files (average size = 1GB). >> > >> > To compare performance I repeated above tests with ad8 using UFS2 with soft updates. >> > >> > 18GB of MP3 files required 10m35s to copy to UFS2 and 21m40s to copy to ZFS. >> > 30GB of AVI files required 16m6s to copy to UFS2 and 1h2m39s to copy to ZFS. >> > >> > I used for tests FreeBSD 8.1R amd64. Amount of RAM on my machine is 6GB. >> > >> > Any tips? >> > >> > -- > -- jhell,v