From owner-freebsd-questions@freebsd.org Mon Aug 31 16:52:46 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1065B9C758D for ; Mon, 31 Aug 2015 16:52:46 +0000 (UTC) (envelope-from quartz@sneakertech.com) Received: from douhisi.pair.com (douhisi.pair.com [209.68.5.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4163685 for ; Mon, 31 Aug 2015 16:52:45 +0000 (UTC) (envelope-from quartz@sneakertech.com) Received: from [10.2.2.1] (pool-173-48-121-235.bstnma.fios.verizon.net [173.48.121.235]) by douhisi.pair.com (Postfix) with ESMTPSA id A931B3F71B; Mon, 31 Aug 2015 12:52:43 -0400 (EDT) Message-ID: <55E4865B.1000104@sneakertech.com> Date: Mon, 31 Aug 2015 12:52:43 -0400 From: Quartz MIME-Version: 1.0 To: Warren Block CC: freebsd-questions@freebsd.org Subject: Re: Replacing Drive with SSD References: <20150829220311.c7608be1.freebsd@edvax.de> <55E45973.2050103@sneakertech.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 31 Aug 2015 16:52:46 -0000 > That is exactly what TRIM is, a mechanism for a filesystem to tell the > drive "this block is no longer in use". Otherwise, the only thing the > drive has to determine whether a block is in use is whether it has ever > been written. But, from what I understand, it doesn't exactly tell the firmware "this is no longer in use" so much as it says "you can zero this right now if you want" >> Simply assuming based on if or how long ago it was written to can't >> possibly be a workable solution. I'm not convinced that leaving large >> chunks of the drive 'free' has any effect on wear leveling. > > It provides a pool of blocks that have not and will not be written. Bbut how does the drive "know" that those blocks are not allocated by a partition somewhere and are safe to use as spares? It's not like the drive firmware reads into the partition table or anything.