# US 2025/0165390 A1 · Operating a storage system

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

- Number: US 2025/0165390 A1
- Document ID: US20250165390A1
- Status: Published application
- Kind: A1
- Application number: 18/651,459
- Filed: 2024-04-30
- Published: 2025-05-22
- Earliest claimed: 2023-11-21
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Yejin Jo; Kwangsuk Kim; Jinhwan Choi; Wonho Kang; Jungyoung Kim; Jungtae Lee
- Web page: https://patentgrep.com/patent/US20250165390A1

## CPC

- G06F 3/0608: {Saving storage space on storage systems}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0661: {Format or protocol conversion arrangements}
- 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 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

There is provided a method of operating a storage system that includes a host and a storage device. According to the method, device-filled-ratio of a storage space of a plurality of nonvolatile memory devices in the storage device is queried by the host to the storage device, calculated device-filled-ratio is transmitted, by a storage controller that controls the plurality of nonvolatile memory devices, to the host in response to the querying, an unmap command and target logical block addresses are transmitted, by the host, to the storage device based on the calculated device-filled-ratio, and physical block addresses corresponding to the target logical block addresses are deallocated, by the storage device, in response to the unmap command.

## Claims

### Claim 1

A method of operating a storage system that includes a host and a storage device, the method comprising:
querying, by the host, the storage device for a device-filled-ratio of a storage space of a plurality of nonvolatile memory devices in the storage device;
transmitting, by a storage controller in the storage device, a calculated device-filled-ratio to the host in response to the querying, wherein the storage controller is configured to control the plurality of nonvolatile memory devices;
transmitting, by the host and to the storage device, an unmap command and target logical block addresses based on the calculated device-filled-ratio; and
deallocating, by the storage device, physical block addresses corresponding to the target logical block addresses in response to the unmap command.

### Claim 2 (depends on 1)

The method of claim 1, wherein the host and the storage device are configured to communicate with each other according to universal flash storage (UFS) standards.

### Claim 3 (depends on 1)

The method of claim 1, wherein querying the device-filled-ratio includes:
transmitting, by the host, a query request including a universal flash storage (UFS) attribute associated with the device-filled-ratio of the storage space, and
wherein transmitting the calculated device-filled-ratio to the host includes transmitting, by the storage controller, a query response including the calculated device-filled-ratio to the host.

### Claim 4 (depends on 3)

The method of claim 3, wherein the query request is transmitted from the host to the storage device using UFS protocol information units (UPIUs) according to UFS standards, and the query response is transmitted from the storage device to the host, using UPIUs according to the UFS standards.

### Claim 5 (depends on 3)

The method of claim 3, wherein the query request corresponds to a query request UFS protocol information unit (UPIU) according to the UFS standards, and wherein the host is configured to:
set a query function of the query request UPIU to a standard read request; and
define the UFS attribute associated with the device-filled-ratio of the storage space by using reserved identification numbers of the query request UPIU,
wherein the query response corresponds to a query response UPIU, and
wherein the storage controller is configured to transmit the calculated device-filled-ratio the host by using reserved identification numbers of the query response UPIU.

### Claim 6 (depends on 3)

The method of claim 3, wherein the storage controller is configured to calculate the device-filled-ratio based on counts of valid pages of the plurality of nonvolatile memory devices, and wherein the valid pages store valid data.

### Claim 7 (depends on 1)

The method of claim 1, wherein the host is configured to query the device-filled-ratio to the host after transmitting a suspend entrance command to the host, and
wherein the host is configured to transmit the unmap command and the target logical block addresses to the storage device when a difference between the calculated device-filled-ratio and a device-filled-ratio recognized by a file system of the host is greater than a reference value.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
entering, by the host, the storage device in a suspend mode when difference between the calculated device-filled-ratio and a device-filled-ratio recognized by a file system of the host is greater than a reference value after deallocating the physical block addresses.

### Claim 9

A method of operating a storage system that includes a host and a storage device, the method comprising:
in response to a first request from the host, transmitting, by the storage device, a first response notifying the host that an exception event has occurred in the storage device;
transmitting, by the host and to the storage device, a second request to check that the exception event occurred in the storage device;
in response to the second request, transmitting, by the storage device and to the host, a second response including information indicating that the exception event is associated with a device-filled-ratio of a storage space of a plurality of nonvolatile memory devices in the storage device;
querying, by the host, the storage device for the device-filled-ratio;
transmitting, by a storage controller in the storage device and to the host, a calculated device-filled-ratio in response to the querying; and
transmitting, by the host and to the storage device, an unmap command and target logical block addresses based on the calculated device-filled-ratio,
wherein the storage controller configured to control the plurality of nonvolatile memory devices.

### Claim 10 (depends on 9)

The method of claim 9, wherein the host and the storage device are configured to communicate with each other according to universal flash storage (UFS) standards.

### Claim 11 (depends on 10)

The method of claim 10, wherein the first response corresponds to a response UFS protocol information unit (UPIU) according to the UFS standards,
wherein the storage controller is configured to notify the host that the exception event occurred by setting an exception event alert bit to a first value, and
wherein the exception event alert bit is included in a device information field of the response UPIU.

### Claim 12 (depends on 10)

The method of claim 10, wherein the second response corresponds to a query response UFS protocol information unit (UPIU) according to the UFS standards, and
wherein the storage controller is configured to notify the host that the exception event is associated with the device-filled-ratio of the storage space by using one of reserved bits of an exception event control attribute of the query response UPIU.

### Claim 13 (depends on 12)

The method of claim 12, wherein the storage controller is configured to notify the host that the exception event is associated with the device-filled-ratio of the storage space by:
assigning one bit of the one of reserved bits of the exception event control attribute of the query response UPIU to indicate that the storage device is fully filled; and
setting the one bit to a first value.

### Claim 14 (depends on 10)

The method of claim 10, wherein the second response corresponds to a query response UFS protocol information unit (UPIU) according to the UFS standards, and
wherein the storage controller is configured to notify the host that the exception event is associated with the device-filled-ratio of the storage space by using one of reserved bits of an exception event status attribute of the query response UPIU.

### Claim 15 (depends on 14)

The method of claim 14, wherein the storage controller is configured to notify the host that the exception event is associated with the device-filled-ratio of the storage space by:
assigning one bit of the one of reserved bits of the exception event status attribute of the query response UPIU to indicate that the storage device is fully filled; and
setting the one bit to a first value.

### Claim 16 (depends on 10)

The method of claim 10, wherein querying the device-filled-ratio includes:
transmitting, by the host, a query request including a universal flash storage (UFS) attribute associated with the device-filled-ratio of the storage space, and
wherein transmitting the calculated device-filled-ratio to the host includes transmitting, by the storage controller, a query response including the calculated device-filled-ratio to the host.

### Claim 17 (depends on 16)

The method of claim 16, wherein the query request corresponds to a query request UFS protocol information unit (UPIU) according to the UFS standards, and wherein the host is configured to:
set a query function of the query request UPIU to a standard read request; and
define the UFS attribute associated with the device-filled-ratio of the storage space by using reserved identification numbers of the query request UPIU,
wherein the query response corresponds to a query response UPIU, and
wherein the storage controller is configured to transmit the calculated device-filled-ratio the host by using reserved identification numbers of the query response UPIU.

### Claim 18 (depends on 9)

The method of claim 9, further comprising deallocating, by the storage device, physical block addresses corresponding to the target logical block addresses in response to the unmap command.

### Claim 19

A storage system comprises:
a storage device including a plurality of nonvolatile memory devices and a storage controller configured to control the plurality of nonvolatile memory devices; and
a host configured to control the storage device by communicating with the storage device,
wherein the storage controller is configured to:
transmit a first response notify the host that an exception event has occurred in the storage device in response to a first request from the host;
transmit, to the host, a second response including information indicating that the exception event is associated with a device-filled-ratio of a data storage space of the plurality of nonvolatile memory devices in the storage device, in response to a second request for checking the exception event;
calculate a device-filled-ratio of the nonvolatile memory devices in response to a query associated with the device-filled-ratio;
transmit the calculated device-filled-ratio to the host; and
deallocate physical block addresses corresponding to target logical block addresses in response to an unmap command and the target logical block addresses from the host.

### Claim 20 (depends on 19)

The storage system of claim 19,
wherein the host and the storage device are configured to communicate with each other according to universal flash storage (UFS) standards,
wherein the first response corresponds to a response UFS protocol information unit (UPIU) according to the UFS standards,
wherein the storage controller is configured to notify the host that the exception event that occurred of the host by setting an exception event alert bit to a first value, the exception event alert bit being included in a device information field of the response UPIU,
wherein the second response corresponds to a query response UPIU according to the UFS standards, and
wherein the storage controller is configured to notify the host that the exception event is associated with the device-filled-ratio of the storage space by using one of reserved bits of an exception event control attribute of the query response UPIU.
