From owner-freebsd-questions@FreeBSD.ORG Sat Jul 20 10:31:33 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B9941157 for ; Sat, 20 Jul 2013 10:31:33 +0000 (UTC) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) by mx1.freebsd.org (Postfix) with ESMTP id 80F27CB6 for ; Sat, 20 Jul 2013 10:31:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at BSDLabs AB Message-ID: <51EA65C8.8060607@intersonic.se> Date: Sat, 20 Jul 2013 12:26:16 +0200 From: Per olof Ljungmark Organization: Intersonic AB User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130630 Thunderbird/17.0.7 MIME-Version: 1.0 To: aurfalien Subject: Re: ZFS trim patches References: <6BB846C4-0D41-4CD4-81C4-A0A44FA40FE5@gmail.com> In-Reply-To: <6BB846C4-0D41-4CD4-81C4-A0A44FA40FE5@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2013 10:31:33 -0000 On 2013-07-20 07:25, aurfalien wrote: > Hi, > > Is this; > > http://lists.freebsd.org/pipermail/freebsd-current/2012-September/036777.html > > ... available in the form of a patch for stable rels? > > Its ZFS TRIM support. > According to /usr/src/UPDATING, yes: 20130605: Added ZFS TRIM support which is enabled by default. To disable ZFS TRIM support set vfs.zfs.trim.enabled=0 in loader.conf. Creating new ZFS pools and adding new devices to existing pools first performs a full device level TRIM which can take a significant amount of time. The sysctl vfs.zfs.vdev.trim_on_init can be set to 0 to disable this behaviour. ZFS TRIM requires the underlying device support BIO_DELETE which is currently provided by methods such as ATA TRIM and SCSI UNMAP via CAM, which are typically supported by SSD's. Stats for ZFS TRIM can be monitored by looking at the sysctl's under kstat.zfs.misc.zio_trim.