# US 2021/0286717 A1 · Solid-state drive performance and lifespan based on data affinity

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

- Number: US 2021/0286717 A1
- Document ID: US20210286717A1
- Status: Published application
- Kind: A1
- Application number: 16/816,313
- Filed: 2020-03-12
- Published: 2021-09-16
- Earliest claimed: 2020-03-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Zhi Zhi Huang; Yongjie Gong; Xu Chu Jiang; Yao Dong Zhang; Ning Ding; Zhen Nyu Yao; Jing Lan Chen
- Web page: https://patentgrep.com/patent/US20210286717A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06N 3/02: Neural networks
- G06F 2212/1016: Performance improvement
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The example embodiments disclose a system and method, a computer program product, and a computer system for improving solid-state drive performance. The example embodiments may include generating, by an affinity adapter located external to the solid-state drive, a plurality of affinities for each of a plurality of data to a respective plurality of subdivisions of data of a solid-state drive, wherein each of the plurality of data is associated with a logical block address (LBA) and each of the respective plurality of subdivisions has a physical block address (PBA). The example embodiments may also include receiving a request to write first data having a first LBA to the solid-state drive, determining by the solid-state drive, at a first time, that the first data has an affinity with a particular subdivision of data of a solid-state drive based on the generated plurality of affinities, and writing the first data to a memory location of the solid-state drive, wherein the PBA of the memory location has the determined affinity.

## Claims

### Claim 1

A computer-implemented method for improving solid-state drive performance, the method comprising:
generating, by an affinity adapter located external to the solid-state drive, a plurality of affinities for each of a plurality of data to a respective plurality of subdivisions of data of a solid-state drive, wherein each of the plurality of data is associated with a logical block address (LBA) and each of the respective plurality of subdivisions has a physical block address (PBA);
receiving a request to write first data having a first LBA to the solid-state drive;
determining by the solid-state drive, at a first time, that the first data has an affinity with a particular subdivision of data of a solid-state drive based on the generated plurality of affinities; and
writing the first data to a memory location of the solid-state drive, wherein the PBA of the memory location has the determined affinity.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the affinity for each of the plurality of data to the respective plurality of subdivisions of data of a solid-state drive further comprises receiving a plurality of past write requests of the solid-state drive.

### Claim 3 (depends on 1)

The method of claim 1, further comprising storing the generated plurality of affinities in one or more affinity tables.

### Claim 4 (depends on 1)

The method of claim 1, wherein the received request to write first data having a first LBA to the solid-state drive is generated by a garbage collection process.

### Claim 5 (depends on 2)

The method of claim 2, wherein the plurality of past write requests of the solid-state drive are received over a first time period.

### Claim 6 (depends on 5)

The method of claim 5, further comprising determining, at a second time subsequent to the first time, that the first data does not have an affinity with the particular subdivision of data of a solid-state drive, wherein the determining that the first data does not have an affinity with the particular subdivision of data of a solid-state drive is based on a second generation of a plurality of affinities.

### Claim 7 (depends on 1)

The method of claim 1, wherein each subdivision of the solid-state drive's memory contains data of no more than one affinity.

### Claim 8

A computer program product for improving solid-state drive performance, the computer program product comprising:
one or more non-transitory computer-readable storage media and program instructions stored on the one or more non-transitory computer-readable storage media capable of performing a method, the method comprising:
generating, by an affinity adapter located external to the solid-state drive, a plurality of affinities for each of a plurality of data to a respective plurality of subdivisions of data of a solid-state drive, wherein each of the plurality of data is associated with a logical block address (LBA) and each of the respective plurality of subdivisions has a physical block address (PBA);
receiving a request to write first data having a first LBA to the solid-state drive;
determining by the solid-state drive, at a first time, that the first data has an affinity with a particular subdivision of data of a solid-state drive based on the generated plurality of affinities; and
writing the first data to a memory location of the solid-state drive, wherein the PBA of the memory location has the determined affinity.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein generating the affinity for each of the plurality of data to the respective plurality of subdivisions of data of a solid-state drive further comprises receiving a plurality of past write requests of the solid-state drive.

### Claim 10 (depends on 8)

The computer program product of claim 8, further comprising storing the generated plurality of affinities in one or more affinity tables.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein the received request to write first data having a first LBA to the solid-state drive is generated by a garbage collection process.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the plurality of past write requests of the solid-state drive are received over a first time period.

### Claim 13 (depends on 12)

The computer program product of claim 12, further comprising determining, at a second time subsequent to the first time, that the first data does not have an affinity with the particular subdivision of data of a solid-state drive, wherein the determining that the first data does not have an affinity with the particular subdivision of data of a solid-state drive is based on a second generation of a plurality of affinities.

### Claim 14 (depends on 8)

The computer program product of claim 8, wherein the affinity of one or more units of data is determined using one or more methods from the group comprising maximum entropy methods and neural net methods.

### Claim 15

A computer system for improving solid-state drive performance, the computer system comprising:
one or more computer processors, one or more computer-readable storage media, and program instructions stored on the one or more of the computer-readable storage media for execution by at least one of the one or more processors capable of performing a method, the method comprising:
generating, by an affinity adapter located external to the solid-state drive, a plurality of affinities for each of a plurality of data to a respective plurality of subdivisions of data of a solid-state drive, wherein each of the plurality of data is associated with a logical block address (LBA) and each of the respective plurality of subdivisions has a physical block address (PBA);
receiving a request to write first data having a first LBA to the solid-state drive;
determining by the solid-state drive, at a first time, that the first data has an affinity with a particular subdivision of data of a solid-state drive based on the generated plurality of affinities; and
writing the first data to a memory location of the solid-state drive, wherein the PBA of the memory location has the determined affinity.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein generating the affinity for each of the plurality of data to the respective plurality of subdivisions of data of a solid-state drive further comprises receiving a plurality of past write requests of the solid-state drive.

### Claim 17 (depends on 15)

The computer system of claim 15, further comprising storing the generated plurality of affinities in one or more affinity tables.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein the received request to write first data having a first LBA to the solid-state drive is generated by a garbage collection process.

### Claim 19 (depends on 16)

The computer system of claim 16, wherein the plurality of past write requests of the solid-state drive are received over a first time period.

### Claim 20 (depends on 19)

The computer system of claim 19, further comprising determining, at a second time subsequent to the first time, that the first data does not have an affinity with the particular subdivision of data of a solid-state drive, wherein the determining that the first data does not have an affinity with the particular subdivision of data of a solid-state drive is based on a second generation of a plurality of affinities.
