# US 2024/0393953 A1 · Bandwidth control method and storage device

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

- Number: US 2024/0393953 A1
- Document ID: US20240393953A1
- Status: Published application
- Kind: A1
- Application number: 18/347,190
- Filed: 2023-07-05
- Published: 2024-11-28
- Earliest claimed: 2023-05-26
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Hui QI; Jing XIA
- Web page: https://patentgrep.com/patent/US20240393953A1

## CPC

- G06F 3/0613: {in relation to throughput}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0673: {Single storage device}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A bandwidth control method and a storage device are provided. The bandwidth control method may include: determining a target bandwidth expected when an application uses a storage device; calculating a bandwidth difference between the target bandwidth and an allocation bandwidth allocated to the application by the storage device; and adjusting the allocation bandwidth to the target bandwidth based on the bandwidth difference.

## Claims

### Claim 1

A bandwidth control method, the bandwidth control method comprising:
determining a target bandwidth expected when an application uses a storage device;
calculating a bandwidth difference between the target bandwidth and an allocation bandwidth allocated to the application by the storage device; and
adjusting the allocation bandwidth to the target bandwidth based on the bandwidth difference.

### Claim 2 (depends on 1)

The bandwidth control method according to claim 1, wherein the adjusting of the allocation bandwidth to the target bandwidth comprises:
in response to a determination that the bandwidth difference is positive, such that the target bandwidth is a bandwidth greater than the allocation bandwidth, determining a difference between the target bandwidth and the allocation bandwidth;
determining a number of zones corresponding to the difference between the target bandwidth and the allocation bandwidth; and
adjusting the allocation bandwidth to the target bandwidth based on allocating the number of the zones to the application.

### Claim 3 (depends on 2)

The bandwidth control method according to claim 2, wherein the determining of the number of the zones comprises:
determining whether the number of the zones is available in a free zone pool;
in response to determining that the number of the zones is available in the free zone pool, determining that the number of the zones in the free zone pool is the number of the zones corresponding to the difference; and
in response to determining that the number of the zones are not available in the free zone pool, adjusting a number of zones in the free zone pool and determining the number of the zones corresponding to the difference based on the adjusted number of the zones in the free zone pool.

### Claim 4 (depends on 3)

The bandwidth control method according to claim 3, wherein the adjusting the number of the zones in the free zone pool and determining the number of the zones corresponding to the difference based on the adjusted number of the zones in the free zone pool comprises:
determining whether there is at least one other application of which zones are able to be released;
in response to determining that there is at least one other application of which zones are able to be released, releasing one or more zones used by the at least one other application; and
in response to determining that there is not at least one other application of which zones are able to be released, determining all zones in the free zone pool as the number of the zones corresponding to the difference,
wherein a priority of allocating a bandwidth to the at least one other application is lower than a priority of allocating a bandwidth to the application, and a bandwidth of the at least one other application after the one or more zones are released is greater than or equal to an expected bandwidth of the at least one other application.

### Claim 5 (depends on 1)

The bandwidth control method according to claim 1, wherein the adjusting of the allocation bandwidth to the target bandwidth comprises
in response to a determination that the bandwidth difference is negative, such that the target bandwidth is a bandwidth less than the allocation bandwidth, determining a difference between the allocation bandwidth and the target bandwidth,
determining a number of zones corresponding to the difference between the target bandwidth and the allocation bandwidth from among zones used by the application; and
adjusting the allocation bandwidth to the target bandwidth by releasing the number of the zones.

### Claim 6 (depends on 1)

The bandwidth control method according to claim 1, wherein the determining of the target bandwidth expected when the application uses the storage device comprises:
calculating a usage bandwidth when the application uses the storage device; and
determining the target bandwidth based on the usage bandwidth.

### Claim 7 (depends on 6)

The bandwidth control method according to claim 6, wherein the determining of the target bandwidth comprises:
determining the target bandwidth as the usage bandwidth.

### Claim 8 (depends on 6)

The bandwidth control method according to claim 6, wherein the calculating of the usage bandwidth comprises:
detecting a plurality of data amount that is communicated between the application and the storage device during each time period of a plurality of time periods, respectively, wherein each time period of the plurality of time periods corresponds to a same amount of time;
obtaining a plurality of sub-bandwidths respectively by dividing the plurality of data amount by the same amount of time; and
determining an average of the plurality of sub-bandwidths as the usage bandwidth.

### Claim 9 (depends on 1)

The bandwidth control method according to claim 1, wherein the storage device includes a zoned namespace solid state drive (ZNS SSD).

### Claim 10

A storage device, the storage device comprising:
a memory device comprising a plurality of memory units configured to store data for an application; and
a processor configured to execute machine-readable instructions to
determine a target bandwidth expected when the application uses the storage device,
calculate a bandwidth difference between the target bandwidth and an allocation bandwidth allocated to the application by the storage device, and
adjust the allocation bandwidth to the target bandwidth based on the bandwidth difference.

### Claim 11 (depends on 10)

The storage device according to claim 10, wherein the processor is configured to execute the machine-readable instructions to:
in response to a determination that the bandwidth difference is positive, such that the target bandwidth is a bandwidth greater than the allocation bandwidth, determine a difference between the target bandwidth and the allocation bandwidth;
determine a number of zones corresponding to the difference between the target bandwidth and the allocation bandwidth; and
adjust the allocation bandwidth to the target bandwidth based on allocating the number of the zones to the application.

### Claim 12 (depends on 11)

The storage device according to claim 11, wherein the processor is configured to execute the machine-readable instructions to:
determine whether the number of the zones is available in a free zone pool;
in response to determining that the number of the zones is available in the free zone pool, determine that the number of the zones in the free zone pool is the number of the zones corresponding to the difference; and
in response to determining that the number of the zones are not available in the free zone pool, adjust a number of zones in the free zone pool and determining the number of the zones corresponding to the difference based on the adjusted number of the zones in the free zone pool.

### Claim 13 (depends on 12)

The storage device according to claim 12, wherein the processor is configured to execute the machine-readable instructions to:
determine whether there is at least one other application of which zones are able to be released;
in response to determining that there is at least one other application of which zones are able to be released, release one or more zones used by the at least one other application; and
in response to determining that there is not at least one other application of which zones are able to be released, determine all zones in the free zone pool as the number of the zones corresponding to the difference,
wherein a priority of allocating a bandwidth to the at least one other application is lower than a priority of allocating a bandwidth to the application, and a bandwidth of the at least one other application after the one or more zones are released is greater than or equal to an expected bandwidth of the at least one other application.

### Claim 14 (depends on 10)

The storage device according to claim 10, wherein the processor is configured to execute the machine-readable instructions to:
in response to a determination that the bandwidth difference is negative, such that the target bandwidth is a bandwidth less than the allocation bandwidth, determine a difference between the allocation bandwidth and the target bandwidth,
determine a number of zones corresponding to the difference between the target bandwidth and the allocation bandwidth from among zones used by the application; and
adjust the allocation bandwidth to the target bandwidth by releasing the number of the zones.

### Claim 15 (depends on 10)

The storage device according to claim 10, wherein the processor is configured to execute the machine-readable instructions to:
calculate usage bandwidth when the application uses the storage device; and
determine the target bandwidth based on the usage bandwidth.

### Claim 16 (depends on 15)

The storage device according to claim 15, wherein the processor is configured to execute the machine-readable instructions to:
determine the target bandwidth as the usage bandwidth.

### Claim 17 (depends on 15)

The storage device according to claim 15, wherein the processor is configured to execute machine-readable instructions to:
detect a plurality of data amount that is communicated between the application and the storage device during each time period of a plurality of time periods, respectively, wherein each time period of the plurality of time periods corresponds to a same amount of time;
obtain a plurality of sub-bandwidths respectively by dividing the plurality of data amount by the same amount of time; and
determine an average of the plurality of sub-bandwidths as the usage bandwidth.

### Claim 18 (depends on 10)

The storage device according to claim 10, wherein the storage device includes a zoned namespace solid state drive (ZNS SSD).

### Claim 19

A storage system, the storage system comprising:
a memory device comprising a plurality of memory units configured to store data for an application; and
a memory controller configured to communicate with the memory device through a channel, wherein the memory controller is configured to
determine a target bandwidth expected when the application uses the memory device,
calculate a bandwidth difference between the target bandwidth and an allocation bandwidth allocated to the application by the memory device, and
adjust the allocation bandwidth to the target bandwidth based on the bandwidth difference.

### Claim 20 (depends on 19)

The storage system according to claim 19, wherein the memory device includes a zoned namespace solid state drive (ZNS SSD).
