From owner-freebsd-geom@FreeBSD.ORG Thu Dec 12 00:16:13 2013 Return-Path: Delivered-To: freebsd-geom@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 BC32D87B for ; Thu, 12 Dec 2013 00:16:13 +0000 (UTC) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7AE4A1768 for ; Thu, 12 Dec 2013 00:16:13 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 3841928427 for ; Thu, 12 Dec 2013 01:16:11 +0100 (CET) Received: from [192.168.1.2] (ip-89-177-49-222.net.upcbroadband.cz [89.177.49.222]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 32D1C28422 for ; Thu, 12 Dec 2013 01:16:10 +0100 (CET) Message-ID: <52A90049.7050001@quip.cz> Date: Thu, 12 Dec 2013 01:16:09 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: freebsd-geom@FreeBSD.org Subject: Is TRIM working with gmirror? Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2013 00:16:13 -0000 Is TRIM working on gmirror? I have FreeBSD 8.4-RELEASE-p1 amd64 GENERIC machine with 2x SSDs: ATA-9 SATA 3.x device They are partitioned with gpart GPT scheme: ada2p2 + ada3p2 There is gmirror gm1ssdp2 on top of these two partitions: mirror/gm1ssdp2 COMPLETE ada2p2 (ACTIVE) ada3p2 (ACTIVE) SSD it-self has support for TRIM # camcontrol identify ada2 pass2: ATA-9 SATA 3.x device pass2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) protocol ATA/ATAPI-9 SATA 3.x device model Samsung SSD 840 PRO Series firmware revision DXM05B0Q serial number S1ANNSAD760349A WWN 50025385a00b57ec cylinders 16383 heads 16 sectors/track 63 sector size logical 512, physical 512, offset 0 LBA supported 250069680 sectors LBA48 supported 250069680 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 no no write-read-verify yes no 0/0x0 unload no no free-fall no no data set management (TRIM) yes But there is a WARNING at boot: WARNING: /ssd_db: TRIM flag on fs but disk does not confirm that it supports TRIM The filesystem is classic UFS2. Is TRIM supported throught gmirror, or not? Miroslav Lachman