# US 10,372,349 B2 · Method and apparatus for facilitating wear leveling of solid state disk

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

- Number: US 10,372,349 B2
- Document ID: US10372349B2
- Status: Granted
- Kind: B2
- Application number: 15/387,744
- Filed: 2016-12-22
- Published: 2017-07-06
- Granted: 2019-08-06
- Earliest claimed: 2015-12-30
- Assignees: EMC IP Holding Company LLC
- Applicants: Emc IP Holding Company LLC
- Inventors: Xinlei Xu; Liam Xiongcheng Li; Jian Gao; Lifeng Yang; Ruiyong Jia
- Web page: https://patentgrep.com/patent/US10372349B2

## CPC

- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0673: {Single storage device}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 2212/60: Details of cache memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure relate to a method and apparatus for facilitating wear leveling of a solid state disk (SSD). The method comprises obtaining a performance parameter of a SSD device of a plurality of SSD devices in the SSD cache, and the SSD device includes one or more SSD disks. The method further comprises determining a weight for the SSD device based on the performance parameter of the SSD device. The method also comprises setting reserved space for the SSD device according to the weight for the SSD device, and the reserved space is inaccessible in the SSD device.

## Claims

### Claim 1

A method for facilitating wear leveling for a solid state disk (SSD), comprising:
obtaining a performance parameter of a SSD device of a plurality of SSD devices in a SSD cache, the SSD device including one or more SSD disks, wherein the performance parameter is enabled to comprise temperature of the SSD device;
determining a weight for the SSD device based on the performance parameter of the SSD device; and
setting reserved space for the SSD device according to the weight for the SSD device, the reserved space being inaccessible in the SSD device;
wherein setting the reserved space for the SSD device according to the weight for the SSD device comprises at least one of the following:
setting the reserved space greater than a threshold space in response to the weight being above a predetermined threshold, and
setting the reserved space less than the threshold space in response to the weight being below the predetermined threshold; and
wherein
if the reserved space is set to be greater than the threshold space, a writing frequency of the SSD device is set to be less than a threshold frequency, and
if the reserved space is set to be less than the threshold space, the writing frequency of the SSD device is set to be greater than the threshold frequency.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the SSD cache uses a cache page to store hot data frequently accessed in a hard disk drive (HDD).

### Claim 3 (depends on 2)

The method according to claim 2, wherein the hot data is random data with a size below 64 KB.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the obtaining a performance parameter of a SSD device of a plurality of SSD devices in a SSD cache comprises:
periodically obtaining the performance parameter of the SSD device.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining a weight for the SSD device based on the performance parameter of the SSD device comprises at least one of the following:
configuring analysis of the weight for the SSD device so that the weight increases as the performance parameter increases; and
configuring analysis of the weight for the SSD device so that the weight decreases as the performance parameter decreases.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the plurality of SSD devices has a same default weight.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the performance parameter further includes at least one of a working current and a wearing ratio.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the performance parameter of the SSD device is obtained periodically in response to expiration of a predefined time period; and
wherein the method further comprises:
detecting that the temperature of another SSD device of the plurality of SSD devices is higher than a predefined temperature threshold, and
in response to detecting that the temperature of the other SSD device is higher than the predefined temperature threshold, obtaining the performance parameter of each SSD of the plurality of SSD devices.

### Claim 9

An apparatus for facilitating wear leveling for a solid state disk (SSD), comprising:
an obtaining unit configured to obtain a performance parameter of a SSD device of a plurality of SSD devices in a SSD cache, the SSD device including one or more SSD disks, wherein the performance parameter is enabled to comprise temperature of the SSD device;
a determining unit configured to determine a weight for the SSD device based on the performance parameter of the SSD device; and
a setting unit configured to set reserved space for the SSD device according to the weight for the SSD device, the reserved space being inaccessible in the SSD device;
wherein the setting unit is configured to perform at least one of the following:
setting the reserved space greater than a threshold space in response to the weight being above a predetermined threshold, and
setting the reserved space less than the threshold space in response to the weight being below the predetermined threshold, and
wherein
if the reserved space is set to be greater than the threshold space, a writing frequency of the SSD device is set to be less than a threshold frequency, and
if the reserved space is set to be less than the threshold space, the writing frequency of the SSD device is set to be greater than the threshold frequency.

### Claim 10 (depends on 9)

The apparatus according to claim 9, wherein the SSD cache uses a cache page to store hot data frequently accessed in a hard disk drive (HDD).

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein the hot data is random data with a size below 64 KB.

### Claim 12 (depends on 9)

The apparatus according to claim 9, wherein the obtaining apparatus is further configured to:
periodically obtain the performance parameter of the SSD device.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein the determining apparatus is configured to perform at least one of the following:
configuring the weight for the SSD device so that the weight increases as the performance parameter increases; and
configuring the weight for the SSD device so that the weight decreases as the performance parameter decreases.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the plurality of SSD devices has a same default weight.

### Claim 15 (depends on 9)

The apparatus according to claim 9, wherein the performance parameter further includes at least one of a working current and a wearing ratio.

### Claim 16 (depends on 9)

The apparatus according to claim 9, wherein the obtaining unit obtains the performance parameter of the SSD device periodically in response to expiration of a predefined time period; and
wherein the obtaining unit is further configured to:
detect that the temperature of another SSD device of the plurality of SSD devices is higher than a predefined temperature threshold, and
in response to detecting that the temperature of the other SSD device is higher than the predefined temperature threshold, obtain the performance parameter of each SSD of the plurality of SSD devices.

### Claim 17 (depends on 9)

The apparatus according to claim 9, wherein the processor obtains the performance parameter of the SSD device periodically in response to expiration of a predefined time period; and
wherein the processor is further configured to:
detect that the temperature of another SSD device of the plurality of SSD devices is higher than a predefined temperature threshold, and
in response to detecting that the temperature of the other SSD device is higher than the predefined temperature threshold, obtain the performance parameter of each SSD of the plurality of SSD devices.

### Claim 18

An apparatus for facilitating wear leveling of a solid state disk SSD, comprising:
a memory; and
a processor configured to:
obtain a performance parameter of a SSD device of a plurality of SSD devices in a SSD cache, the SSD device including one or more SSD disks, wherein the performance parameter is enabled to comprise temperature of the SSD device;
determine a weight for the SSD device based on the performance parameter of the SSD device; and
set reserved space for the SSD device according to the weight for the SSD device, the reserved space being inaccessible in the SSD device;
wherein the processor, when setting the reserved space for the SSD device according to the weight for the SSD device, is constructed and arranged to perform at least one of the following:
set the reserved space greater than a threshold space in response to the weight being above a predetermined threshold, and
set the reserved space less than the threshold space in response to the weight being below the predetermined threshold; and
wherein
if the reserved space is set to be greater than the threshold space, a writing frequency of the SSD device is set to be less than a threshold frequency, and
if the reserved space is set to be less than the threshold space, the writing frequency of the SSD device is set to be greater than the threshold frequency.
