From owner-freebsd-fs@FreeBSD.ORG Wed Mar 20 10:59:14 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 96DECA10 for ; Wed, 20 Mar 2013 10:59:14 +0000 (UTC) (envelope-from daniel@digsys.bg) Received: from smtp-sofia.digsys.bg (smtp-sofia.digsys.bg [193.68.21.123]) by mx1.freebsd.org (Postfix) with ESMTP id 211AFE9F for ; Wed, 20 Mar 2013 10:59:13 +0000 (UTC) Received: from dcave.digsys.bg (dcave.digsys.bg [192.92.129.5]) (authenticated bits=0) by smtp-sofia.digsys.bg (8.14.6/8.14.6) with ESMTP id r2KAxACu075535 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 20 Mar 2013 12:59:10 +0200 (EET) (envelope-from daniel@digsys.bg) Message-ID: <5149967E.4050900@digsys.bg> Date: Wed, 20 Mar 2013 12:59:10 +0200 From: Daniel Kalchev User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130304 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Re: When will we see TRIM support for GELI volumes ? References: <51479D54.1040509@gibfest.dk> <20130319000232.GA18711@neutralgood.org> <5147BB5C.7020205@gibfest.dk> In-Reply-To: <5147BB5C.7020205@gibfest.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 10:59:14 -0000 On 19.03.13 03:11, Thomas Steen Rasmussen wrote: > Have you tried using an SSD without TRIM support ? It really is > awfully slow, I'm talking 10-20-30 seconds freezes while the disk is > writing. There are different SSD disks, just as there are different beers. Many SSDs that do not offer TRIP (or you not use it) perform just fine and you can hardly ever saturate them on a laptop. These just cost more. Having said that, there should be really way to use cheaper components, that greatly benefit (to a point) from TRIM. But, you have to balance your act. By the way, many SSDs perform awfully on writes with an sector size of 512b. Try setting the sector size to 4096 (for example) and see if this will make any difference for you. The comment before about TRIM being bad idea with encrypted storage is very valid. You don't want anyone to know the layout of the data on the drive. Considering, that today anyone can have access to huge computing farms, anything that can make the task of decrypting more difficult is more than welcome. If you want to be safe, just use more performant drive and encrypt it all, with no gaps. The bigger the drive, the safer your data is. Of course, as with everything UNIX, you should be allowed to shoot yourself in the foot. Maybe name the sysctl that activates TRIM on GELI something like kern.geom.eli.insecure_trim :) Daniel