Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 01:16:09 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        freebsd-geom@FreeBSD.org
Subject:   Is TRIM working with gmirror?
Message-ID:  <52A90049.7050001@quip.cz>

next in thread | raw e-mail | index | archive | help
Is TRIM working on gmirror?

I have FreeBSD 8.4-RELEASE-p1 amd64 GENERIC machine with 2x SSDs:

<Samsung SSD 840 PRO Series DXM05B0Q> 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: <Samsung SSD 840 PRO Series DXM05B0Q> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52A90049.7050001>