From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 08:40:44 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A474106564A; Sat, 19 May 2012 08:40:44 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id D78238FC12; Sat, 19 May 2012 08:40:41 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q4J8eWag013169; Sat, 19 May 2012 10:40:33 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q4J8eWnS013166; Sat, 19 May 2012 10:40:32 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sat, 19 May 2012 10:40:32 +0200 (CEST) From: User Wojtek To: Dimitry Andric In-Reply-To: <4FB6B713.7080807@FreeBSD.org> Message-ID: References: <4FB6B713.7080807@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Sat, 19 May 2012 10:40:33 +0200 (CEST) Cc: freebsd-hackers@freebsd.org Subject: Re: proper newfs options for SSD disk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2012 08:40:44 -0000 > You may be able to find the exact erase block size in the technical > documentation of your specific SSD. But the manufacturers don't always > tell. :) > > >> b) small fragments (like 1KB) to reduce space usage, as there is no >> seeking so it will not slow down but save space on relatively small SSD > > I don't think you would want to write lots of very small fragments to > any SSD. :) i do - i have quite a lot of small files. with 4kB fragments i am losing 10% of space. but found it is right settings - Sandforce controller actually manages data with 4kB blocks. > > >> c) anything else? > > Be sure to use "-t enable" when creating the filesystem: > > -t enable | disable > Turn on/off the TRIM enable flag. If enabled, and if the under- > lying device supports the BIO_DELETE command, the file system > will send a delete request to the underlying device for each > freed block. The trim enable flag is typically set when the > underlying device uses flash-memory as the device can use the > delete command to pre-zero or at least avoid copying blocks that > have been deleted. already done. thanks