From owner-freebsd-current@FreeBSD.ORG Mon Nov 26 19:48:06 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CD523C3C for ; Mon, 26 Nov 2012 19:48:06 +0000 (UTC) (envelope-from dieterich.joh@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8247F8FC13 for ; Mon, 26 Nov 2012 19:48:06 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id g24so3883325qab.13 for ; Mon, 26 Nov 2012 11:48:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=RGtgS/FjYlTc511EhXR30T3n+VHeOEtfT9Pf0JR6I2U=; b=o8KTf7i39u9Fi0JkS5uV9/S62dGUh90lkQwkjVTwbuLhPyk/F/5oU67yRCfc6Qydg4 3Kiatnc6PqB0vTfTrl2OWFIsRO54KPMOyeeBgVitHCrgy7RuX3G7PUDVbG82smyTCYes ssB+d+AwKM4LHHt0AS5Wo6rHd5ElwW3ihtT15/0wtseXawage0bP6jvgTzesZc5x/pia Q0T64vWe/N1PJnxXHkpdiOMe1s70UQBz2EnmbD2YebzgxY1tEVIx+2aF8a1WfBSpKvL/ mvTBVqH+2uXaHzCa7Jmx+Pwnes0h8PagD9vWPC+pwoSblq5XqtRtFqkf4aPN7r5QNTOs iFog== Received: by 10.224.60.18 with SMTP id n18mr13822375qah.36.1353959284245; Mon, 26 Nov 2012 11:48:04 -0800 (PST) Received: from bresson.poelloepaeae.de (jd-t430s.Princeton.EDU. [128.112.34.82]) by mx.google.com with ESMTPS id i9sm9242490qak.3.2012.11.26.11.48.03 (version=SSLv3 cipher=OTHER); Mon, 26 Nov 2012 11:48:03 -0800 (PST) Message-ID: <50B3C772.7040802@gmail.com> Date: Mon, 26 Nov 2012 14:48:02 -0500 From: Johannes Dieterich User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Samsung 830 and ZFS TRIM Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 26 Nov 2012 19:48:06 -0000 Hello, (initially posted this to -questions@ a week ago, w/o reply) I installed CURRENT on a new Thinkpad equipped with a Samsung 830 SSD: 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: 1H 63S/T 16383C) ada0: Previously was known as ad4 as the setup is ZFS+GELI based (on ada0), I enabled ZFS TRIM support in loader.conf. Interestingly, I encounter an IMHO strange behavior with the stats on that: kstat.zfs.misc.zio_trim.zio_trim_bytes: 755712 kstat.zfs.misc.zio_trim.zio_trim_success: 97 kstat.zfs.misc.zio_trim.zio_trim_unsupported: 7891 kstat.zfs.misc.zio_trim.zio_trim_failed: 0 It seems unintuitive to me why the unsupported counter first increases (seems to stay constant after that each boot) and then slowly the success counter increases as well. Probably there is a trivial explanation (GELI?) and/or fix for this that anyone is willing to share? If you need further information, let me know. Thanks a lot Johannes