From owner-freebsd-stable@FreeBSD.ORG Thu Oct 28 07:30:06 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 72BBA10656A3 for ; Thu, 28 Oct 2010 07:30:06 +0000 (UTC) (envelope-from serguey-grigoriev@yandex.ru) Received: from forward2.mail.yandex.net (forward2.mail.yandex.net [77.88.46.7]) by mx1.freebsd.org (Postfix) with ESMTP id 1D37D8FC21 for ; Thu, 28 Oct 2010 07:30:05 +0000 (UTC) Received: from web49.yandex.ru (web49.yandex.ru [77.88.47.155]) by forward2.mail.yandex.net (Yandex) with ESMTP id 1C93C38A9B89; Thu, 28 Oct 2010 11:30:04 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1288251004; bh=3+lu+DxRUST62HYp6Lt4n6NJPw58e52ANquQId5cpno=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=WHdpS6vcX6hMXjyPzQAX0ocp4zoyk05BZqMlE/ZgmAouDlbx4wmvC3GMA5U4sZzOf IiYqt3qM4xpGSjU19X9N6JEQd777ahm+LZYgHhCdIeRglkk1gZgbkpXJGcQVgeY/jg eEaZR4JgpUmrHDGvgNh29z+ZLuLRpDdYUwXX8p+0= Received: from localhost (localhost.localdomain [127.0.0.1]) by web49.yandex.ru (Yandex) with ESMTP id 111D04E803D; Thu, 28 Oct 2010 11:30:04 +0400 (MSD) X-Yandex-Spam: 0 X-Yandex-Front: web49.yandex.ru X-Yandex-TimeMark: 1288251004 Received: from netman.spbcity.net (netman.spbcity.net [77.244.18.5]) by mail.yandex.ru with HTTP; Thu, 28 Oct 2010 11:30:01 +0400 From: S.N.Grigoriev To: Stefan Bethke In-Reply-To: <7FF9CDFF-3FA0-45EA-85F5-A236AEFC03C7@lassitu.de> References: <398231288212690@web127.yandex.ru> <7FF9CDFF-3FA0-45EA-85F5-A236AEFC03C7@lassitu.de> MIME-Version: 1.0 Message-Id: <313981288251001@web49.yandex.ru> Date: Thu, 28 Oct 2010 11:30:01 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: freebsd-stable@freebsd.org 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: Thu, 28 Oct 2010 07:30:06 -0000 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. 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? > > > > -- -- Regards, Serguey.