From owner-freebsd-fs@FreeBSD.ORG Thu Nov 28 12:51:49 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D69A7862 for ; Thu, 28 Nov 2013 12:51:49 +0000 (UTC) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 73F141C35 for ; Thu, 28 Nov 2013 12:51:48 +0000 (UTC) Received: from r2d2 ([82.69.179.241]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50006859340.msg for ; Thu, 28 Nov 2013 12:51:41 +0000 X-Spam-Processed: mail1.multiplay.co.uk, Thu, 28 Nov 2013 12:51:41 +0000 (not processed: message from valid local sender) X-MDDKIM-Result: neutral (mail1.multiplay.co.uk) X-MDRemoteIP: 82.69.179.241 X-Return-Path: prvs=1044cd13f0=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-fs@freebsd.org Message-ID: <03CB6E4FFD454EBA9E416813A5187C9F@multiplay.co.uk> From: "Steven Hartland" To: "Richard Kojedzinszky" , References: Subject: Re: ssd for zfs Date: Thu, 28 Nov 2013 12:51:36 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 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: Thu, 28 Nov 2013 12:51:50 -0000 FreeBSD has TRIM support and some disks have very slow TRIM support. Try disabling TRIM support in /boot/loader.conf vfs.zfs.trim.enabled=0 Also check to see if your seeing ashift 12 as I suspect thats actually a 4k not 512b device. This can be confirmed by looking at the boot output. Regards Steve ----- Original Message ----- From: "Richard Kojedzinszky" To: Sent: Wednesday, November 27, 2013 8:51 AM Subject: ssd for zfs > 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" > ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.