From owner-freebsd-fs@FreeBSD.ORG Wed Nov 27 12:21:01 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2E443A2A for ; Wed, 27 Nov 2013 12:21:01 +0000 (UTC) Received: from mail-yh0-x232.google.com (mail-yh0-x232.google.com [IPv6:2607:f8b0:4002:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E95CF2C6A for ; Wed, 27 Nov 2013 12:21:00 +0000 (UTC) Received: by mail-yh0-f50.google.com with SMTP id b6so4851504yha.23 for ; Wed, 27 Nov 2013 04:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:content-type; bh=NRjOzbCC0nn4SWn7D3FE/ftFRHgCbUHnb3mesOlKdy0=; b=mE+gWqCcY1qrd8j1+NO2ZZK/KwSrlW92MvcMRR/AnrSwTsRWEPsVQb1J6M+kaqTry8 YLWI43fLty9oXSZjWqD75t1k7Euna8Yvia0Sg79aeLhwhdi2xJPEILL5NDTkIUwjeXYR mNpbSjzPnUryy4MryEMe+NvUFi2WUI8+RFW1myutXxD7Ma8Y5gLmpMbO9kjW3kGeClhv he6JEwcRqtRliorcfvVSSrxM77TMG2q2iXCbqtmDxqHmraqhsw81bka6btszeawrix5w jKHkVB3pY2SrOWCRbvRYexC9x+9K8p3eJYqZIuwo9LUjGTwbGwssv8+1mhOozqAvikVO LUrA== X-Received: by 10.236.190.199 with SMTP id e47mr35437660yhn.26.1385554860171; Wed, 27 Nov 2013 04:21:00 -0800 (PST) Received: from blackbeast.local (75-120-65-175.dyn.centurytel.net. [75.120.65.175]) by mx.google.com with ESMTPSA id 48sm89328736yhq.11.2013.11.27.04.20.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2013 04:20:59 -0800 (PST) From: Chuck Burns To: freebsd-fs@freebsd.org Subject: Re: ssd for zfs Date: Wed, 27 Nov 2013 06:20:58 -0600 Message-ID: <1464424.7QQFLu4g0t@blackbeast.local> User-Agent: KMail/4.10.5 (FreeBSD/10.0-BETA3; KDE/4.10.5; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 12:21:01 -0000 On Wednesday, November 27, 2013 9:51:06 AM Richard Kojedzinszky wrote: > Dear fs developers, > > Probably this is not the best list to report my issue, but please forward > it to where it should get. > > I bought an SSD for my ZFS filesystem to use it as a ZIL. I've tested it > under linux, and found that it can handle around 1400 random synchronized > write IOPS. Then I placed it into my freebsd 9.2 box, and after attaching > it as a ZIL, my zpool only performs 100 (!) write iops. I've attached it > to an AHCI controller and to an LSI 1068 controller, on both it behaves > the same. So I expect that something in the scsi layer is different, > FreeBSD is handling this device slower, but actually it can handle the > 1400 iops as tested under linux. > > Please give some advice where to go, how to debug, and how to improve > FreeBSD's performance with this drive. > > The device is: > # camcontrol identify ada3 > pass4: ATA-8 SATA 2.x device > pass4: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes) > > protocol ATA/ATAPI-8 SATA 2.x > device model STEC MACH16 M16SD2S-50UI > firmware revision 00000299 > serial number STM0001680E8 > WWN 5000a7203006f8e5 > media serial number STEC MACH16 M16SD2S-50UI STM00 > cylinders 16383 > heads 15 > sectors/track 63 > sector size logical 512, physical 512, offset 0 > LBA supported 97696368 sectors > LBA48 supported 97696368 sectors > PIO supported PIO4 > DMA supported WDMA2 UDMA6 > media RPM non-rotating > > Feature Support Enabled Value Vendor > read ahead yes yes > write cache yes yes > flush cache yes yes > overlap no > Tagged Command Queuing (TCQ) no no > Native Command Queuing (NCQ) yes 32 tags > SMART yes yes > microcode download yes yes > security yes no > power management yes yes > advanced power management no no > automatic acoustic management no no > media status notification no no > power-up in Standby yes no > write-read-verify no no > unload no yes > free-fall no no > Data Set Management (DSM/TRIM) yes > DSM - max 512byte blocks yes 8 > DSM - deterministic read yes any value > Host Protected Area (HPA) yes no 97696368/97696368 > HPA - Security no > > Regards, > > Kojedzinszky Richard > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" So.. You tested the speed of the ZIL device, and it's fast.. But you're complaining about the speed of the zpool? We can't give you any information, because a ZIL is not the only thing in a zpool. Are the rest of your drives SSDs, or are they mechanical drives? Are they AHCI? Or SAS? Your actual storage devices are likely what is slow here. break19