Date: Thu, 10 Sep 2015 10:00:29 -0500 From: Brandon J. Wandersee <brandon.wandersee@gmail.com> To: RW <rwmaillists@googlemail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Replacing Drive with SSD Message-ID: <867fnywc8i.fsf@WorkBox.Home> In-Reply-To: <20150831181135.7682a810@gumby.homeunix.com> References: <CEAD84AD-341A-4FB9-A3A1-D0D5A550AFFD@lafn.org> <alpine.BSF.2.20.1508281235390.74312@wonkity.com> <20150829220311.c7608be1.freebsd@edvax.de> <alpine.BSF.2.20.1508300633160.44682@wonkity.com> <55E45973.2050103@sneakertech.com> <alpine.BSF.2.20.1508311000550.42983@wonkity.com> <55E4865B.1000104@sneakertech.com> <20150831181135.7682a810@gumby.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
RW via freebsd-questions writes: > On Mon, 31 Aug 2015 12:52:43 -0400 > Quartz wrote: > >> > >> > 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. > > It's analogous to virtual memory. It's the unused physical blocks that > form the free pool. The point of leaving the unpartitioned space is > that it's a region of a logical address space with no physical blocks > attached. Just to expand on this a little more (since it confused me as well after I bought my first SSD): solid-state drives do not write data to contiguous blocks, and "partitioning" the drive does not place actual barriers at physical points on the disk as is done with an HDD. The operating system sees SSD and HDD paritions in the same way, but on an SSD partitions function more like filesystem quotas. Leaving blocks unpartitioned doesn't mean those blocks won't be written to; it just ensures that a certain amount of space (and so a certain number of blocks/cells) must always be free, forcing writes to be spread across different physical portions of the disk in a relatively even manner. It's my understanding that this over-provisioning isn't exactly necessary in most SSDs nowadays. It just serves as a stronger guarantee than entrusting everything to a drive's firmware. -- ================================================================= :: Brandon Wandersee :: :: brandon.wandersee@gmail.com :: ================================================================== 'A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.' - Douglas Adams ==================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867fnywc8i.fsf>