From owner-freebsd-questions@FreeBSD.ORG Fri May 8 16:09:48 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D016EBDC for ; Fri, 8 May 2015 16:09:48 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 674941C98 for ; Fri, 8 May 2015 16:09:47 +0000 (UTC) Received: from [192.168.0.143] ([95.91.227.7]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Mg3h3-1YcdhI2bBd-00NSxp; Fri, 08 May 2015 18:09:33 +0200 Message-ID: <554CDFBC.3020804@gmx.de> Date: Fri, 08 May 2015 18:09:32 +0200 From: "lokadamus@gmx.de" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Mike Tancsa , freebsd-questions Subject: Re: enabling TRIM on an existing UFS file system ? References: <554CCE55.9090307@sentex.net> In-Reply-To: <554CCE55.9090307@sentex.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:KlTvVAlVQ25jEQn7CDfn7IAQAP91gayRvPa6+yDhbxrpJDVN2ou psiMH2BJhOzdMnLjPMzvrInaJ+JY3Oe935RheEgImk+h/QCo0OGe9XiHgJXXYJveZRHy3hF 9PPXWGNLiStiymZmw/ZrnfAisjrty648Qqj23H4IIjvxH8eyIY2j9DdJxriE/Oou2v5/obt TaTMIWy6rqIJNWQDJKPaQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2015 16:09:48 -0000 On 05/08/15 16:55, Mike Tancsa wrote: > > I noticed TRIM was not enabled on an existing SSD drive, so I thought I > would shut the box to single usermode and enable it. > > But once I boot up, it seems to be disabled again ? > > 0(mdt)# tunefs -p /dev/ada0p2 > tunefs: POSIX.1e ACLs: (-a) disabled > tunefs: NFSv4 ACLs: (-N) disabled > tunefs: MAC multilabel: (-l) disabled > tunefs: soft updates: (-n) enabled > tunefs: soft update journaling: (-j) enabled > tunefs: gjournal: (-J) disabled > tunefs: trim: (-t) disabled > tunefs: maximum blocks per file in a cylinder group: (-e) 4096 > tunefs: average file size: (-f) 16384 > tunefs: average number of files in a directory: (-s) 64 > tunefs: minimum percentage of free space: (-m) 8% > tunefs: space to hold for metadata blocks: (-k) 6408 > tunefs: optimization preference: (-o) time > tunefs: volume label: (-L) > 0(mdt)# > > the SSD seems to report that it does support TRIM > > ---Mike > I kick some lines of your mail. Have you set the parameter in your fstab? http://www.freebsd.org/cgi/man.cgi?query=tunefs greetings