Do partitions on SSDs map to physical addresses? 2

1

1

My scenario:

I partition a 250GB SSD drive in half. I fill the 1st partition with OS and data and leave the 2nd one absolutely empty. Does this affect wear leveling of the SSD?

Can partitioning an SSD make the SSD controller not use some memory cells and therefore make wear leveling worse, by overusing certain cells?

In other words, my questions are:

  1. On which level does the translation of LBAs to memory cells take place?

  2. Does the reservation of LBAs by the OS mean reserving "particular" memory cells, chips or blocks by the SSD controller??

or

  1. Do reserved LBAs translate to particular memory blocks, chips or cells? (no matter whether the blocks are located within a single chip or in many different ones)

zhossein

Posted 2015-02-13T21:44:58.327

Reputation: 13

possible duplicate of Do partitions on SSDs map to physical addresses?

– Jawa – 2015-02-14T00:05:53.530

I've already checked that post myself, I found given answers not quite straight. – zhossein – 2015-02-14T00:11:29.760

Answers

2

Partitioning a 250GB SSD in half. I fill 1st partition with OS and data and leave the 2nd one absolutly empty. Does this affect wear leveling in ssd?

If you create two partitions and just not use the second one: No.

The data for the first partition will be stored whereever the SSD controller decides it want to store it. That can (and will) use all of the flash cells. The whole disk will wear out equally.

It will not just use the first half of the flash cells for the first partition.


Now if you only created one partition and left the rest of the disk empty (specifically, known empty/unused to the SSD's controller) then it can use this extra free space for additional optimalisations. That will improve performance.

Note that you can archive the same by leaving as much space empty as the second partition is worth. E.g. on a 100GB disk you will get the same advantage with:

50GB in use   50 GB unpartitioned

as with

100GB partition with 50GB not filled with data and with TRIM enabled.


1.In which level the translation of LBAs takes place?

In the SSD. And it is not a hard mapping. LBA sector 1 might point to one flash cell today. But after writing to it it might get stored on another flash cell. This is not visible to the computer. It is only known on the SSD itself.

2.Does the reservation of LBAs by OS, mean reserving "particular" nand cells, chips or blocks by SSD controller?

One a HDD: Yes. On a SSD: No.

Or

3.Do reserved LBAs, translate to particular nand blocks, chips or cells?

Not on SSDs. The SSD will always present the same data when asked for the content of logical block, but the actual storage location might differ.

Think of it as a library.

In clasical (HHD) times a book #1, stored on shellf #1 would always be in the same place. With a SSD this is more akin to treating that as a title and the actual books location will vary. Just as long as that library knowns which book is meant with "book 1 from shelf 1" it does not matter where it is actually located.

Hennes

Posted 2015-02-13T21:44:58.327

Reputation: 60 739

Actually, on a modern HDD the mapping LBA -> physical sector is also variable. For example, if the drive detects a bad sectior, it will transparently replace it with a good sector (on the next write); this is known as "sector remapping". I believe in (very) old HDDs the mapping was fixed, as you write. – sleske – 2015-02-13T22:41:53.080

True. This works on SCSI, SAS and SATA drives. It is used for reallocation when an error is detected. As far as I know that is the only moment it is used, so it is different. Still, a good point to raise. – Hennes – 2015-02-13T22:49:56.767

Tnx for your specifc answers. Does the same varriable LBA mappings happen for ordinary usb flash drives? Is there any sort of test for figuring out if random mapping are taking place or not? (In every band controller sad or USB flash drives) – zhossein – 2015-02-13T23:56:34.637

Sry I misstyped the last sentence, I meant :( In every nand based controller ssd or USB flash drives.) – zhossein – 2015-02-14T00:05:25.207

USB pendrive can do that kind of remapping, but the typical difference between pendrives and SSDs is the controller on the SSD which does lots of 'smart stuff'. This includes the remapping. – Hennes – 2015-02-14T11:21:01.020