# US 2021/0173558 A1 · Adaptive spare block usage in solid state drives

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0173558 A1
- Document ID: US20210173558A1
- Status: Published application
- Kind: A1
- Application number: 16/704,575
- Filed: 2019-12-05
- Published: 2021-06-10
- Earliest claimed: 2019-12-05
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Abhilash Ravi Kashyap; Monish Shantilal Shah
- Web page: https://patentgrep.com/patent/US20210173558A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06N 20/00: Machine learning
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1016: Performance improvement
- G06F 2212/1036: Life time enhancement
- G06F 2212/7204: Capacity control, e.g. partitioning, end-of-life degradation
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G06F 2212/7211: Wear leveling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In non-limiting examples of the present disclosure, systems, methods and devices for partitioning dies based on spare blocks and workload expectations are provided. Data from non-volatile storage media may be received. The data may comprise information identifying each of a plurality of dies included in the non-volatile storage media and a number of blocks included in each of the plurality of dies. A number of spare blocks included in each of the plurality of dies may be determined. First and second sets of the plurality of dies may be identified, wherein the first set has a higher number of spare blocks than the second set. A first workload may be assigned to the first set of dies, the first workload being classified as write-intensive. A second workload may be assigned to the second set of dies, the second workload being classified as read-intensive.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving data from non-volatile storage media, the data comprising:
information identifying each of a plurality of dies included in the non-volatile storage media, and
a number of blocks included in each of the plurality of dies;
determining a number of spare blocks included in each of the plurality of dies;
identifying a first set of the plurality of dies and a second set of the plurality of dies, wherein the first set of dies has a higher number of spare blocks than the second set of dies;
assigning a first workload to the first set of dies, the first workload classified as being write-intensive; and
assigning a second workload to the second set of dies, the second workload classified as being read-intensive.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein determining the number of spare blocks included in each of the plurality of dies comprises:
determining a minimum number of blocks in each of the plurality of dies to meet a storage requirement for the non-volatile storage media; and
identifying a number of blocks above the minimum number of blocks for each of the plurality of dies as the number of spare blocks included in each of the plurality of dies.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein:
the first workload is determined based on receiving read-write specifications associated with a first virtual machine that will be assigned to the first set of dies; and
the second workload is determined based on receiving read-write specifications associated with a second virtual machine that will be assigned to the second set of dies.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the read-write specifications associated with the first virtual machine indicate that an application associated with the first virtual machine will require the non-volatile storage media to cache more than a threshold amount of data more than a threshold duration of times over a threshold duration of time.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the read-write specifications associated with the second virtual machine indicate that an application associated with the first virtual machine will require the non-volatile storage media to cache more than a threshold amount of data less than a threshold duration of times over a threshold duration of time.

### Claim 6 (depends on 3)

The computer-implemented method of claim 3, wherein:
the read-write specifications associated with the first virtual machine are determined via application of a machine learning model that has been trained to identify read-write patterns to data associated with a first application that will be executed by the first virtual machine; and
the read-write specifications associated with the second virtual machine are determined via application of the machine learning model to data associated with a second application that will be executed by the second virtual machine.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein each die in the first set of dies has a higher number of spare blocks than each die in the second set of dies.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the dies included in the first set of dies are distributed across a plurality of channels and a plurality of rows in the plurality of channels.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the dies included in the first set of dies are arranged in a first channel and the dies included in the second set of dies are arranged in a second channel.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the dies included in the first set of dies are arranged in a first row in a plurality of channels and the dies included in the second set of dies are arranged in a second row in the plurality of channels.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, further comprising:
executing a first garbage collection policy to the first set of dies, wherein the first garbage collection policy provides that garbage collection for the first set of dies will be initiated upon determining that less than a first threshold number of blocks in the first set of dies are free; and
executing a second garbage collection policy to the second set of dies, wherein the second garbage collection policy provides that garbage collection for the second set of dies will be initiated upon determining that less than a second threshold number of blocks in the second set of dies are free.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining that there is no additional space in one of the first or second sets of dies to accept additional write operations; and
converting the set of dies with no additional space to a read-only set.

### Claim 13

A storage device comprising:
non-volatile storage media;
a controller coupled with the non-volatile storage media and configured to:
receive data from the non-volatile storage media, the data comprising:
information identifying each of a plurality of dies included in the non-volatile storage media, and
a number of blocks included in each of the plurality of dies;
determine a number of spare blocks included in each of the plurality of dies;
identify a first set of the plurality dies and a second set of the plurality of dies, wherein the first set of dies has a higher number of spare blocks than the second set of dies;
assign a first workload to the first set of dies, the first workload classified as being write-intensive; and
assign a second workload to the second set of dies, the second workload classified as being read-intensive.

### Claim 14 (depends on 13)

The storage device of claim 13, wherein:
the first workload is determined based on receiving read-write specifications associated with a first virtual machine that will be assigned to the first set of dies; and
the second workload is determined based on receiving read-write specifications associated with a second virtual machine that will be assigned to the second set of dies.

### Claim 15 (depends on 13)

The storage device of claim 13, wherein each die in the first set of dies has a higher number of spare blocks than each die in the second set of dies.

### Claim 16 (depends on 15)

The storage device of claim 15, wherein the dies included in the first set of dies are distributed across a plurality of channels and a plurality of rows in the plurality of channels.

### Claim 17 (depends on 13)

The storage device of claim 13, wherein the controller is further configured to:
execute a first garbage collection policy to the first set of dies; and
execute a second garbage collection policy to the second set of dies.

### Claim 18 (depends on 13)

The storage device of claim 13, wherein:
the first garbage collection policy provides that garbage collection for the first set of dies will be initiated upon determining that less than a first threshold number of blocks in the first set of dies are free; and
the second garbage collection policy provides that garbage collection for the second set of dies will be initiated upon determining that less than a second threshold number of blocks in the second set of dies are free.

### Claim 19

A computing apparatus comprising:
a host processing system;
a storage system coupled to the host processing system and configured to:
receive a command to partition a plurality of dies included in the storage system into a first set of dies and a second set of dies, wherein the first set of dies has a higher number of spare blocks than the second set of dies;
partition the plurality of dies into the first set of dies and the second set of dies;
write data from a first application executed on a first virtual machine of the host processing system to the first set of dies, wherein the first application is classified as a write-intensive application; and
write data from a second application executed on a second virtual machine of the host processing system to the second set of dies, wherein the second application is classified as a read-intensive application.

### Claim 20 (depends on 19)

The computing apparatus of claim 19, wherein the storage system is further configured to:
apply a first garbage collection policy to the first set of dies, the first garbage collection policy providing that garbage collection for the first set of dies will be initiated upon determining that less than a first threshold number of blocks in the first set of dies are free; and
apply a second garbage collection policy to the second set of dies, wherein the second garbage collection policy provides that garbage collection for the second set of dies will be initiated upon determining that less than a second threshold number of blocks in the second set of dies are free.
