Search

US-12625818-B2 - Storage device controlling ready-to-transfer request for write command and operating method thereof

US12625818B2US 12625818 B2US12625818 B2US 12625818B2US-12625818-B2

Abstract

A storage device receives a write command requesting to write write data from a host, determines a first time point at which a memory starts performing a target operation different from an operation of storing the write data, and, after determining the first time point, suspends transmission of a ready-to-transfer request for the write command from a second time point as a time point earlier than the first time point.

Inventors

  • Hoe Seung JUNG

Assignees

  • SK Hynix Inc.

Dates

Publication Date
20260512
Application Date
20240809
Priority Date
20240426

Claims (17)

  1. 1 . A storage device comprising: a memory configured to store write data received from a host; and a controller configured to control the memory to store the write data, wherein the controller receives, from the host, a write command requesting to write the write data, determines a first time point at which the memory starts performing a target operation different from an operation of storing the write data, and after determining the first time point, suspends transmission of a ready-to-transfer request for the write command to the host, from a second time point as a time point earlier than the first time point.
  2. 2 . The storage device according to claim 1 , wherein the controller includes a buffer memory which stores the received write data before storing the write data to the memory.
  3. 3 . The storage device according to claim 2 , wherein the controller controls the memory to perform the target operation using the buffer memory.
  4. 4 . The storage device according to claim 3 , wherein the target operation is a garbage collection operation for the memory, an operation of updating address information of the write data stored in the memory, an operation of updating firmware of the controller stored in the memory or an operation of recovering exclusive OR (XOR) parity of the write data stored in the memory.
  5. 5 . The storage device according to claim 1 , wherein the controller determines, as the first time point, a time point when a size of user data stored in the memory after a set reference time point reaches a threshold.
  6. 6 . The storage device according to claim 3 , wherein the controller determines the second time point based on the first time point, a first size, a second size and a unit time, and wherein the first size represents a size of a free space of the buffer memory necessary to execute the target operation, the second size represents a maximum size of data which can be stored during a unit operation of storing the write data to the memory, and the unit time represents a time required to execute the unit operation on the memory.
  7. 7 . The storage device according to claim 6 , wherein the controller determines the second time point as a time point (A/B)*C earlier than the first time point where A is the first size, B is the second size and C is the unit time.
  8. 8 . The storage device according to claim 6 , wherein the controller determines the second size based on the number of dies which are able to be activated simultaneously in the unit operation among memory dies included in the memory, the number of writable memory cells in one memory die, and a cell type of the writable memory cells.
  9. 9 . The storage device according to claim 1 , wherein the controller resumes transmission of the ready-to-transfer request after performing the target operation is completed.
  10. 10 . A method for operating a storage device, the method comprising: receiving, from a host, a write command requesting to store write data; determining a first time point at which performing a target operation different from an operation of storing the write data is started; and suspending, after determining the first time point, transmission of a ready-to-transfer request for the write command to the host, from a second time point as a time point earlier than the first time point.
  11. 11 . The method according to claim 10 , wherein the target operation includes an operation that uses a buffer memory which stores the write data before storing the write data to the memory.
  12. 12 . The method according to claim 11 , wherein the target operation is a garbage collection operation for a memory, an operation of updating address information of the write data stored in the memory, an operation of updating firmware stored in the memory or an operation of recovering exclusive OR (XOR) parity of the write data stored in the memory operation.
  13. 13 . The method according to claim 10 , wherein the determining the first time point determines the first time point based on a time point when a size of user data stored in the memory after a set reference time point reaches a threshold.
  14. 14 . The method according to claim 11 , wherein the suspending of the transmission of the ready-to-transfer request determines the second time point based on the first time point, a first size, a second size, and a unit time, and wherein the first size represents a size of a free space of the buffer memory necessary to execute the target operation, the second size represents a maximum size of data which can be stored during a unit operation of storing the write data to the memory, and the unit time represents a time required to execute the unit operation on the memory.
  15. 15 . The method according to claim 14 , wherein the second time point is determined as a time point (A/B)*C earlier than the first time point where A is the first size, B is the second size and C is the unit time.
  16. 16 . The method according to claim 14 , wherein the second size is determined based on the number of dies which are able to be activated simultaneously in the unit operation among memory dies included in the memory, the number of writable memory cells in one memory die, and a cell type of the writable memory cells.
  17. 17 . The method according to claim 10 , further comprising: resuming an operation of transmitting the ready-to-transfer request after performing the target operation is completed.

Description

CROSS-REFERENCE TO RELATED APPLICATION The present application claims priority under 35 U.S.C. § 119(a) to Korean Patent Application No. 10-2024-0056051 filed on Apr. 26, 2024, which is incorporated herein by reference in its entirety. BACKGROUND 1. Technical Field Embodiments of the present disclosure generally relate to a storage device which controls a ready-to-transfer request for a write command and an operating method thereof. 2. Related Art A storage device is a device for storing data according to a request from an external device such as a computer, a mobile terminal (e.g., a smart phone or tablet), or the like. A storage device may include a memory for storing data therein and a controller for controlling the memory. The memory may be a volatile memory or a non-volatile memory. The controller may receive a command from an external device (i.e., a host), and execute or control operations to write data in the memory included in the storage device, read data from the memory, or erase data stored in the memory, according to the received command. The controller may execute a preset target operation at a specific time point. The controller needs to secure a free space of at least a predetermined size to execute the target operation. If the size of the free space currently available for the controller to use is insufficient, the controller may secure a free space by deleting data necessary to perform another operation. Due to this fact, performance degradation may be caused in a process in which the controller performs the other operation. SUMMARY Various embodiments of the present disclosure are directed to providing a storage device and an operating method thereof capable of minimizing performance degradation caused in the process of securing a free space for executing a target operation. In an embodiment of the present disclosure, a storage device may include a memory configured to store write data received from a host; and a controller configured to control the memory to store the write data, wherein the controller receives a write command requesting to write the write data from the host, determines a first time point at which the memory starts performing a target operation different from an operation of storing the write data, and, after determining the first time point, suspends transmission of a ready-to-transfer request for the write command from a second time point as a time point earlier than the first time point. In another embodiment of the present disclosure, a method for operating a storage device may include receiving a write command requesting to write write data from a host; determining a first time point at which performing a target operation different from an operation of storing the write data is started; and suspending, after determining the first time point, transmission of a ready-to-transfer request for the write command from a second time point as a time point earlier than the first time point. In another embodiment of the present disclosure, a system may include a host configured to transmit write data and a write command requesting to store the write data; and a storage device including a memory, a buffer memory, and a controller configured to receive, from the host, the write data and the write command, store the write data in the buffer memory, control the memory to perform a program operation for storing, in the memory, the write data stored in the buffer memory, and transmit, to the host, a ready-to-transfer request in response to the write command. The controller may suspend transmission of the ready-to-transfer request before a target operation using the buffer memory is performed, and resume the transmitting of the ready-to-transfer request after performing the target operation is completed, and the target operation is different from the program operation. According to the embodiments of the present disclosure, it is possible to minimize performance degradation caused in the process of securing a free space for executing a target operation. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic configuration diagram of a storage device according to an embodiment of the present disclosure. FIG. 2 is a block diagram schematically illustrating a memory of FIG. 1. FIG. 3 is a diagram illustrating the schematic structure of a storage device according to an embodiment of the present disclosure. FIG. 4 is a diagram illustrating a basic operation in which the storage device according to the embodiment of the present disclosure writes write data. FIG. 5 is a diagram illustrating an operation in which the storage device according to the embodiment of the present disclosure suspends transmission of a ready-to-transfer request to a host. FIG. 6 is a diagram illustrating an operation in which the storage device according to the embodiment of the present disclosure determines a first time point. FIG. 7 is a diagram illustrating an operation in which the storage device according to th