IP Library Granted Patent US 12710867
Granted Patent B2
US 12710867 · App. 18/930,124 · Granted Aug 18, 2026

Storage device and storage system including the same

Inventors: Seungjun Yang (Suwon-si, KR); Nam Wook Kang (Suwon-si, KR)
Assignee: Samsung Electronics Co., Ltd.
G06F3/0608G06F3/0659G06F3/0688
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12710867
App. No.
18/930,124
Granted
Aug 18, 2026
Kind
B2
Abstract

A storage device may include a plurality of non-volatile memories, a host interface configured to receive at least one packet including a TRIM command from a host device, and the host interface configured to determine a trim path for processing the TRIM command by comparing a first trim range threshold value and a trim range of the TRIM command, a trim manage module configured to generate status data by monitoring the at least one packet, the trim manage module configure to determine the first trim range threshold value based on the status data, and a processor configured to process the TRIM command based on the trim path.

Claims (52)

1 . A storage device, comprising:

a plurality of non-volatile memories;

a host interface configured to receive at least one packet including a TRIM command from a host device, the host interface configured to determine that a trim path for processing the TRIM command is a single logical page number (LPN) path or a range LPN path by comparing a first trim range threshold value and a trim range of the TRIM command;

a trim manage module configured to generate status data by monitoring the at least one packet, the trim manage module configured to determine the first trim range threshold value based on the status data; and

a processor configured to process the TRIM command based on the trim path.

2 . The storage device of claim 1 , further comprising:

a buffer memory configured to store a plurality of first data,

wherein the processor is configured to detect a plurality of second data corresponding to the TRIM command among the plurality of first data based on the trim path, and process the TRIM command by invalidating the plurality of second data.

3 . The storage device of claim 2 , wherein the trim path comprises:

the range LPN path configured to detect the plurality of second data by entirely searching the plurality of first data; and

the single LPN path configured to detect the plurality of second data by individually searching each of the plurality of second data among the plurality of first data.

4 . The storage device of claim 3 , wherein:

the host interface is configured to determine the single LPN path as the trim path in response to the trim range being greater than the first trim range threshold value; and

the host interface is configured to determine the range LPN path as the trim path in response to the trim range is smaller than the first trim range threshold value.

5 . The storage device of claim 1 , wherein:

the trim manage module is configured to determine whether the storage device satisfies a performance indicator for the storage device; and

in response to the storage device not satisfying the performance indicator, the trim manage module is configured to determine a second trim range threshold value based on the status data, and the host interface is configured to determine the trim path based on the second trim range threshold value.

6 . The storage device of claim 5 , wherein:

the trim manage module includes an artificial neural network in which status data and trim range threshold values corresponding to the status data are learned in advance; and

the trim manage module is configured to determine the second trim range threshold value using the artificial neural network.

7 . The storage device of claim 5 , wherein the performance indicator is set according to the second trim range threshold value and a type of command included in the at least one packet.

8 . The storage device of claim 1 , wherein the trim manage module is configured to generate the status data at intervals.

9 . The storage device of claim 1 , wherein the status data includes a number of write commands per unit time and a number of TRIM commands per unit time.

10 . The storage device of claim 1 , wherein the host interface is configured to transfer the at least one packet to the processor, and the trim manage module is configured to control the host interface to control the transfer of the at least one packet based on the status data.

11 . An operation method of a storage device, comprising:

receiving at least one packet including a TRIM command from a host device;

comparing a trim range of the TRIM command and a first trim range threshold value, the first trim range threshold value determined based on status data generated by monitoring the at least one packet;

determining, based on the comparison, that a trim path for processing the TRIM command is a single logical page number (LPN) path or a range LPN path; and

processing the TRIM command based on the trim path.

12 . The operation method of claim 11 , wherein:

the storage device further includes a buffer memory configured to store a plurality of first data;

the determining the trim path includes selecting the range LPN path in response to the trim range being greater than the first trim range threshold value; and

the processing the TRIM command includes detecting a plurality of second data corresponding to the TRIM command by entirely searching the plurality of first data, and processing the TRIM command by invalidating the plurality of second data.

13 . The operation method of claim 12 , wherein:

the determining the trim path includes selecting the single LPN path in response to the trim range being smaller than the first trim range threshold value; and

the processing the TRIM command includes detecting the plurality of second data by individually searching each of the plurality of second data among the plurality of first data, and processing the TRIM command by invalidating the plurality of second data.

14 . The operation method of claim 11 , further comprising:

determining whether a performance indicator for the storage device is satisfied; and

determining a second trim range threshold value based on the status data in response to the storage device not satisfying the performance indicator.

15 . The operation method of claim 14 , wherein the comparing includes comparing the second trim range threshold value and the trim range of the TRIM command.

16 . A storage system, comprising:

a storage device configured to receive at least one packet and a first trim range threshold value, the at least one packet including a TRIM command from a host device, the storage device configured to generate status data by monitoring the at least one packet, determine that a trim path for processing the TRIM command is a single logical page number (LPN) path or a range LPN path by comparing the first trim range threshold value and a trim range of the TRIM command, and process the TRIM command based on the trim path; and

the host device configured to receive the status data from the storage device and determine the first trim range threshold value based on the status data.

17 . The storage system of claim 16 , wherein:

the storage device further includes a buffer memory configured to store a plurality of first data; and

the trim path includes the range LPN path configured to detect a plurality of second data corresponding to the TRIM command among the plurality of first data by entirely searching the plurality of first data, and the single LPN path configured to detect the plurality of second data by individually searching each of the plurality of second data among the plurality of first data.

18 . The storage system of claim 17 , wherein:

the storage device is configured to determine the single LPN path as the trim path in response to the trim range being greater than the first trim range threshold value; and

the storage device is configured to determine the range LPN path as the trim path in response to the trim range being smaller than the first trim range threshold value.

19 . The storage system of claim 16 , wherein the storage device is configured to a determine whether a performance indicator for the storage device is satisfied, and in response to the performance indicator not being satisfied, transmit the status data to the host device.

20 . The storage system of claim 19 , wherein:

the host device is configured to determine a second trim range threshold value based on the status data, and the storage device is configured to receive the second trim range threshold value and determine the trim path for processing the TRIM command by comparing the second trim range threshold value and the trim range of the TRIM command.