From owner-freebsd-current@FreeBSD.ORG Sat Jun 8 17:18:32 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 71D8861D for ; Sat, 8 Jun 2013 17:18:32 +0000 (UTC) (envelope-from prvs=18715e5890=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 0050A1774 for ; Sat, 8 Jun 2013 17:18:31 +0000 (UTC) Received: from r2d2 ([82.69.141.170]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50004218664.msg for ; Sat, 08 Jun 2013 18:18:24 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Sat, 08 Jun 2013 18:18:24 +0100 (not processed: message from valid local sender) X-MDDKIM-Result: neutral (mail1.multiplay.co.uk) X-MDRemoteIP: 82.69.141.170 X-Return-Path: prvs=18715e5890=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: current@freebsd.org Message-ID: <2511265B30D641F58EE30309F9A4695D@multiplay.co.uk> From: "Steven Hartland" To: "Dan Mack" , References: <20130608104911.V76215@coco.macktronics.com> Subject: Re: should TRIM be working on my ZFS L2ARC devices? Date: Sat, 8 Jun 2013 18:18:19 +0100 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-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jun 2013 17:18:32 -0000 ----- Original Message ----- From: "Dan Mack" To: Sent: Saturday, June 08, 2013 4:56 PM Subject: should TRIM be working on my ZFS L2ARC devices? > Hiya, > > Hopefully a simple question on TRIM + ZFS, > > I have a couple L2ARCs for a zpool on a test box, two different SSDs: > > ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 > > ada0: ATA-9 SATA 3.x device > > ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) > ada0: Command Queueing enabled > ada0: 122104MB (250069680 512 byte sectors: 16H 63S/T 16383C) > ada0: Previously was known as ad4 > ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 > > ada1: ATA-9 SATA 3.x device > > ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) > ada1: Command Queueing enabled > ada1: 114473MB (234441648 512 byte sectors: 16H 63S/T 16383C) > ada1: Previously was known as ad6 > > I'm just using a small piece of each one for the L2ARC per below: > > capacity operations bandwidth > pool alloc free read write read write > ----------- ----- ----- ----- ----- ----- ----- > tron 98.2G 3.53T 7 23 58.2K 970K > mirror 49.1G 1.76T 3 11 29.2K 485K > ada2 - - 1 5 15.4K 485K > ada4 - - 1 5 14.7K 485K > mirror 49.1G 1.76T 3 11 29.0K 485K > ada3 - - 1 5 14.6K 485K > ada5 - - 1 5 15.3K 485K > cache - - - - - - > gpt/larc0 2.89G 29.1G 0 5 9 201K > gpt/larc1 2.12G 29.9G 0 1 9 148K > ----------- ----- ----- ----- ----- ----- ----- > > I'm running 10.0-CURRENT #34 251520 and I never seen any successful trim > events: > > kstat.zfs.misc.zio_trim.bytes: 0 > kstat.zfs.misc.zio_trim.success: 0 > kstat.zfs.misc.zio_trim.unsupported: 102 > kstat.zfs.misc.zio_trim.failed: 0 > > kstat.zfs.misc.zio_trim.unsupported is always > 0 and the other values > stick at 0. > > Does the Vertex 4 and Intel 520 not work with TRIM on FreeBSD or is > something else going on here? Connected to an controller which supports BIO_DELETE yes they should. Check with: camcontrol identify ada0 camcontrol identify ada1 > Like, will TRIM only kick in after each device gets full and > pages start getting evicted ? I would indeed expect ZFS to only evict data from the L2ARC when it becomes stale, assuming this is the case you may not see TRIM's as often as you might first expect. Regards Steve ================================================ 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.