From owner-freebsd-questions@FreeBSD.ORG Tue May 29 18:35:41 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1DA7106566C for ; Tue, 29 May 2012 18:35:41 +0000 (UTC) (envelope-from pldrouin@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 67FC88FC0A for ; Tue, 29 May 2012 18:35:41 +0000 (UTC) Received: by ggnm2 with SMTP id m2so3473249ggn.13 for ; Tue, 29 May 2012 11:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type; bh=7ChNBO75phQHYJO1YIL/zSOvQvUg4LzbCHaIbBQeg8k=; b=XjNCW6FPTb3JxcCsCuCFbHMMCjqASyCVdybe4G0Gl4ozeYfBeHhLyOU5R1IpSxh2LU JgOGaV9gwbGvQ3T7BhLRKDkrNFiXrQe4sSoPm2jZz+bpw1fbwgT8yLY6syFBzwSeOdTE enZtJZWwPucLysDKtlR6t7kiG3SYg/jo8inFF0VLPy3xDWQa7NODZVVOFP/ztaTLFMZq 56BLM0mw2f4qaHQtU4LY8psR0p5IKgGcDiG/5S47XXbDtqEHSTKK0EabnLQUQ0z3dq2/ JICN4KgDL+ypfGFIzIIkAb67LXOSt9ejuofP//s9wv7YGEEFkHnPDg9DhLH3UfSt0Js9 64Pg== MIME-Version: 1.0 Received: by 10.50.168.100 with SMTP id zv4mr8590731igb.4.1338316227618; Tue, 29 May 2012 11:30:27 -0700 (PDT) Sender: pldrouin@gmail.com Received: by 10.64.44.74 with HTTP; Tue, 29 May 2012 11:30:27 -0700 (PDT) In-Reply-To: <20120529180500.GA92876@slackbox.erewhon.net> References: <20120529180500.GA92876@slackbox.erewhon.net> Date: Tue, 29 May 2012 14:30:27 -0400 X-Google-Sender-Auth: 1oxccQwCG-j2C6nmszlpXOjg6dw Message-ID: From: Pierre-Luc Drouin Cc: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: newfs on a SSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 18:35:41 -0000 On Tue, May 29, 2012 at 2:05 PM, Roland Smith wrote: > On Fri, May 11, 2012 at 09:01:33AM +0200, Christer Solskogen wrote: > > After years of waiting for a decent price on one of these I finally > > got one. The questions is, which options should I use on a SSD that > > will be / on my system. I see that newfs supports TRIM, so that will > > be turned on, but should I use journaling? gjournal? softupdates? soft > > updates journaling? I'm confused :) > > Enabling TRIM with the '-t' option for newfs sounds like a good idea. > Assuming > the underlaying device supports it. You can check that with the 'camcontrol > identify' command, assuming you're using the ada(4) driver. > > OCZ has a page with tips for Linux. Some would apply to FreeBSD as well; > > http://www.ocztechnologyforum.com/forum/showthread.php?54379-Linux-Tips-tweaks-and-alignment&highlight=linux > > Aligning the partitions with the Erase Block Size is important. See: > https://wiki.archlinux.org/index.php/Solid_State_Drives > > One thing to keep in mind is to mount the filesystems you make on the SSD > with > the "noatime" option. This to avoid a lot of unnecessary writes. > > Some of the newfs parameters like blocks per cilinder group don't seem to > make > much sense for an SSD. Since the controller of the SSD already does all > kinds > of things to emulate a harddisk, I'm not sure if it makes much sense to > tune > the filesystem's parameters much. > > As for softupdates (journaled of not): try it and let us know if you see > differences, especially in write performance. :-) > > The FreeBSD foundation has awarded a grant to port a special Flash > filesystem > and tools to FreeBSD: > > http://freebsdfoundation.blogspot.com/2012/03/new-project-nand-flash-support.html > It might be worthwhile to keep that in mind for the future. > > What I would certainly recommend is that you make a daily automated backup > (may I suggest calling rsync from cron at night?) of the SSD's filesystem > to > an actual HDD, just to be sure. > > Roland > -- > R.F.Smith http://rsmith.home.xs4all.nl/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) > Is there a tool in FreeBSD, similar to fstrim in Linux, that allows to perform trimming through a cronjob as opposed to perform it every time data is deleted? It supposedly results into a significant gain in performance... Thanks!