From owner-freebsd-current@FreeBSD.ORG Sat Jun 8 15:56:40 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 98320594 for ; Sat, 8 Jun 2013 15:56:40 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from coco.macktronics.com (coco.macktronics.com [209.181.253.65]) by mx1.freebsd.org (Postfix) with ESMTP id 79AF012CE for ; Sat, 8 Jun 2013 15:56:40 +0000 (UTC) Received: from coco.macktronics.com (coco.macktronics.com [209.181.253.65]) by coco.macktronics.com (Postfix) with ESMTP id 5FF694AC40 for ; Sat, 8 Jun 2013 10:56:34 -0500 (CDT) Date: Sat, 8 Jun 2013 10:56:34 -0500 (CDT) From: Dan Mack To: current@freebsd.org Subject: should TRIM be working on my ZFS L2ARC devices? Message-ID: <20130608104911.V76215@coco.macktronics.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 15:56:40 -0000 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? Like, will TRIM only kick in after each device gets full and pages start getting evicted ? Thanks! Dan