Method and apparatus for reducing latency of read operations performing memory device

By reserving read destination space in the host memory and directly reading and storing data, the problem of read latency and high power consumption of SSD devices is solved, achieving lower cost and efficient storage performance.

CN118733495APending Publication Date: 2024-10-01SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410375280.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When an existing SSD device performs a read operation, the presence of an internal buffer causes increased latency and increased power consumption, and the internal buffer increases the total cost of the storage device.

Method used

By reserving read destination space in the host memory, data is read and stored directly in the host memory, eliminating dependence on the SSD's internal buffer and utilizing the host memory buffer (HMB) for data transfer.

Benefits of technology

The latency of read operations performed by the storage device is reduced, power consumption is reduced, and the cost of the storage device is reduced without affecting performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733495A_ABST
    Figure CN118733495A_ABST
Patent Text Reader

Abstract

Methods and apparatus for reducing latency of read operations performed on a storage device are disclosed. A method performed by a storage device for reducing latency of a read operation performed on the storage device includes transmitting host memory buffer (HMB) destination information to a host device. The HMB destination information is related to a read destination space reserved within the HMB of the host device. The method further includes receiving, from the host device, a read request for performing at least one data read operation on a memory of the storage device. The read request specifies data to be read from a memory of the storage device. The method further includes performing the at least one data read operation on the memory to read the data specified in the read request, and transmitting the data read from the memory to a read destination space reserved within the HMB of the host device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to storage devices. In particular, the present disclosure relates to techniques for reducing latency of read operations performed on storage devices, such as solid-state drive (SSD) devices. Background Art

[0002] Today, most SSD devices have adopted the Non-Volatile Memory Express (NVMe) interface protocol, which provides significantly higher read / write speeds than traditional interface protocols (e.g., the Serial Advanced Technology Attachment (SATA) interface protocol used in traditional SSD devices). When NVMe is used to access a non-volatile storage device included in the SSD device, the SSD device may be referred to as an NVMe SSD device.

[0003] The NVMe SSD device includes a non-volatile memory (NVM) for storing data. Additionally, the NVMe SSD includes a buffer memory or an internal buffer for temporarily storing data to be written to the NVM of the SSD device or data to be read from the NVM of the SSD device.

[0004] In the prior art, when an SSD device receives a data read request from a host device, a controller of the SSD device (also referred to as an "SSD controller") processes the data read request and performs a read operation on the NVM of the SSD device. The SSD controller reads data from the NVM and temporarily stores the read data in an internal buffer before transmitting the read data to a memory of the host device.

[0005] Such data transfer involving an internal buffer (i.e., first, transferring data from the NVM to the internal buffer, and then transferring data from the internal buffer to the host memory) increases read latency and results in more power consumption. In addition, the need for an internal buffer inside the SSD device increases the overall cost of the SSD device. Therefore, there is a need for improvements in storage devices. Specifically, there is a need for an SSD device that provides equivalent performance compared to conventional SSD devices without an internal buffer. Summary of the invention

[0006] The present disclosure may overcome one or more of the disadvantages discussed above and may provide additional advantages. An object of the present disclosure is to eliminate the reliance on internal buffers in SSD devices to reduce read latency. Another object of the present disclosure is to reduce the power consumption of SSD devices. Yet another object of the present disclosure is to reduce the cost of SSD devices without hampering overall performance.

[0007] According to one aspect of the present disclosure, a method performed by a storage device for reducing a delay in a read operation performed on the storage device includes: sending host memory buffer (HMB) destination information to a host device. The HMB destination information is associated with a read destination space reserved within the HMB of the host device. The method also includes: receiving a read request from the host device for performing at least one data read operation on a memory of the storage device. The read request specifies data to be read from the memory of the storage device. The method also includes: performing the at least one data read operation on the memory to read the data specified in the read request, and sending the data read from the memory to the read destination space reserved within the HMB of the host device.

[0008] According to another aspect of the present disclosure, a method performed by a host device for reducing latency of a read operation performed on a storage device includes: receiving HMB destination information from the storage device. The HMB destination information is associated with a read destination space reserved within an HMB of the host device. The method also includes: sending a read request for performing at least one data read operation on a memory of the storage device to the storage device. The read request specifies data to be read from the memory. The method also includes receiving data read from the memory of the storage device in the read destination space.

[0009] According to another aspect of the present disclosure, a storage device includes: a memory configured to store data; and a controller coupled to the memory and configured to send HMB destination information to a host device. The HMB destination information is associated with a read destination space reserved within the HMB of the host device. The controller is also configured to: receive a read request from the host device for performing at least one data read operation on the memory of the storage device. The read request specifies data to be read from the memory. The controller is also configured to: perform the at least one data read operation on the memory to read the data specified in the read request, and send the data read from the memory to the read destination space reserved within the HMB of the host device.

[0010] According to another aspect of the present disclosure, a host device includes: a host memory buffer (HMB) allocated within a memory of the host device; and a controller coupled to the HMB and configured to: receive HMB destination information from a storage device. The HMB destination information is associated with a read destination space reserved within the HMB. The controller is also configured to: send a read request for performing at least one data read operation on the memory of the storage device to the storage device. The read request specifies data to be read from the memory. The controller is also configured to: receive data read from the memory of the storage device in the read destination space.

[0011] According to another aspect of the present disclosure, a non-transitory computer-readable medium for reducing the delay of a read operation performed on a storage device includes one or more instructions, which when executed by at least one processor causes the at least one processor to perform the following operations: sending HMB destination information to a host device, wherein the HMB destination information is related to a read destination space reserved within the HMB of the host device; receiving a read request from the host device for performing at least one data read operation on a memory of the storage device, wherein the read request specifies data to be read from the memory; performing the at least one data read operation on the memory to read the data specified in the read request; and sending the data read from the memory to the read destination space reserved within the HMB of the host device.

[0012] According to another aspect of the present disclosure, a non-transitory computer-readable medium for reducing the latency of a read operation performed on a storage device includes one or more instructions that, when executed by at least one processor, cause the at least one processor to perform the following operations: receiving HMB destination information from the storage device, wherein the HMB destination information is related to a read destination space reserved within the HMB of a host device; sending a read request for performing at least one data read operation on a memory of the storage device to the storage device, wherein the read request specifies data to be read from the memory; and receiving data read from the memory of the storage device in the read destination space. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The disclosed embodiments are shown in the accompanying drawings, and the same reference letters indicate corresponding parts in the various drawings throughout the drawings. The embodiments herein will be better understood from the following description with reference to the accompanying drawings, in which:

[0014] Figure 1A An exemplary storage system illustrating a host device configured to communicate with a solid state drive (SSD) device according to an exemplary embodiment of the present disclosure is shown;

[0015] Figure 1B An exemplary storage system according to an exemplary embodiment of the present disclosure is shown;

[0016] Figure 2 An operation process involved in performing a read operation on an SSD device according to an exemplary embodiment of the present disclosure is shown;

[0017] Figure 3 An operational process for reducing a delay in a read operation performed on an SSD device according to an exemplary embodiment of the present disclosure is shown; and

[0018] Figure 4 Another operation process for reducing a delay of a read operation performed on an SSD device according to an exemplary embodiment of the present disclosure is illustrated. DETAILED DESCRIPTION

[0019] Although the disclosure is susceptible to various modifications and alternative forms, the specific embodiments disclosed have been shown by way of example in the accompanying drawings and will be described in detail below. However, it should be understood that it is not intended to limit the disclosure to the particular form disclosed, but on the contrary, the disclosure will cover all modifications, equivalents and substitutes falling within the scope of the disclosure.

[0020] Terms such as "solid state drive," "SSD," and "SSD device" have been used interchangeably throughout the disclosure. In addition, terms such as "host" and "host device" have been used interchangeably throughout the disclosure. Terms such as "storage device interface" and "device interface" have been used interchangeably throughout the disclosure. Terms such as "controller" and "processor" have been used interchangeably throughout the disclosure.

[0021] As discussed in the background section, an SSD device is a non-volatile data storage device that uses flash-based memory or semiconductor chips to store data. Typically, an SSD device has a high read / write speed and a faster boot time than other storage devices such as a hard disk drive (HDD).

[0022] Today, most SSD devices adopt the non-volatile memory express (NVMe) protocol as a new storage access and transfer protocol for next-generation storage devices. The NVMe protocol has introduced a feature called host memory buffer (HMB) as the most advanced storage interface. HMB enables a storage device (such as an SSD device) to use a portion of the host device's memory to cache address mapping information and / or user data. HMB enhances the performance of SSD devices with limited memory by utilizing ample memory space of the host device.

[0023] Figure 1A An exemplary storage system 100 is shown in which techniques consistent with the present disclosure may be implemented. Figure 1A As shown in FIG. 1 , storage system 100 includes a host device 110 communicatively coupled to storage device 120 via a host interface 140 and a storage device interface 142. Host device 110 may include at least one host controller (or processor) 112 and a host memory 114.

[0024] The host memory 114 may store data to be sent to or received from the storage device 120. Similarly, the storage device 120 may include at least one device controller (or processor) 122 and a flash controller 124 that controls access to a flash memory 126 of the storage device 120. The flash memory 126 may be a non-volatile memory (NVM).

[0025] In one non-limiting embodiment, Figure 1A The host device 110 may be any mobile or non-mobile device (such as, but not limited to, a portable communication terminal (e.g., a mobile phone), a smart phone, a tablet personal computer (PC), a wearable device, a healthcare device, an Internet of Things (IOT) device, a personal computer (PC), a laptop computer, a server, a media player, or an automotive device (e.g., a navigation device)). In addition, the host device 110 may include one or more image capture devices, one or more input devices, one or more output devices, one or more sensors, at least one display device, at least one power source, and at least one connection interface, but is not limited thereto. The host memory 114 may be a volatile memory (such as a static random access memory (SRAM) and / or a dynamic RAM (DRAM)).

[0026] In a non-limiting embodiment, the host controller 112 and the host memory 114 may be implemented as separate semiconductor chips. Alternatively, in some embodiments, the host controller 112 and the host memory 114 may be integrated in the same semiconductor chip. As an example, the host controller 112 may be any one of a plurality of modules included in an application processor (AP). The AP may be implemented as a system on chip (SoC). In addition, the host memory 114 may be an embedded memory included in the AP or an NVM or memory module located outside the AP. The host controller 112 may manage operations of storing data (e.g., write data) of a buffer area of ​​the host memory 114 in the flash memory 126 or storing data (e.g., read data) of the flash memory 126 in a buffer area of ​​the host memory 114. The host memory 114 may include one or more local buffers and an HMB 116. The HMB 116 may include a read destination space (memory) 118 for storing data read from the flash memory 126.

[0027] The storage device 120 may be a storage medium configured to store data in response to a request from the host device 110. As an example, the storage device 120 may include at least one of an SSD, an embedded memory, and a removable external memory. When the storage device 120 is an SSD, the storage device 120 may be a device that complies with the NVMe protocol. When the storage device 120 is an embedded memory or an external memory, the storage device 120 may be a device that complies with the Universal Flash Storage (UFS) standard or the Embedded Multimedia Card (eMMC) standard.

[0028] In one non-limiting embodiment, Figure 1A The storage device 120 is used as a nonvolatile storage device configured to store data regardless of whether power is supplied. The storage device 120 may include a flash memory 126 as an NVM, and may include a 2D NAND memory array or a 3D (or vertical) NAND (VNAND) memory array.

[0029] As another example, the memory device 120 may include various other kinds of NVM. For example, the memory device 120 may include magnetic RAM (MRAM), spin transfer torque MRAM (STT-MRAM), conductive bridging RAM (CB-RAM), ferroelectric RAM (FRAM), phase change RAM (PRAM), resistive RAM (RRAM), and various other kinds of non-volatile memory. In one non-limiting embodiment, the flash memory 126 may include a plurality of cells, each of which may typically store a single binary digit or bit of information.

[0030] In one non-limiting embodiment, the storage device 120 may be physically separated from the host controller 112, or implemented in the same package as the host controller 112. The storage device 120 may be removably coupled to the host device 110 through one or more interfaces, such as a host interface 140 and a storage device interface 142. The host interface 140 and the storage device interface 142 may be configured to enable exchange of read / write (I / O) requests and data between the host device 110 and the storage device 120. The host interface 140 may be communicatively coupled to the host device 110, and the storage device interface 142 may be communicatively coupled to the storage device 120.

[0031] The storage device interface 142 can be implemented using various interface technologies (such as, but not limited to, Advanced Technology Attachment (ATA), Serial ATA (SATA), external SATA (e-SATA), Minicomputer Small Form Factor Interface (SCSI), Serial Attached SCSI (SAS), Peripheral Component Interconnect (PCI), PCI Express (PCIe), NVMe, Universal Serial Bus (USB) interface, Secure Digital (SD) card interface, MultiMediaCard (MMC) interface, eMMC interface, UFS interface, embedded UFS (eUFS) interface, and Compact Flash (CF) card interface).

[0032] In one non-limiting embodiment, the host interface 140 may be PCIe for connecting a peripheral device (such as a NVMe-based storage device 120) to the host device 110. In one non-limiting embodiment, the storage device interface 142 may be PCIe. The storage device interface 142 may have the ability to receive I / O commands from the host device 110 and directly access the host memory 114 to connect the terminal / peripheral device to the host device 110.

[0033] Conventional storage devices (e.g., conventional SSD devices) include an internal buffer for temporarily storing data to be written to the flash memory 126 or data to be read from the flash memory 126 of the storage device 120. When the storage device receives an I / O command (e.g., a data read / write command), at least three stages of data transfer are performed. For example, when the storage device 120 receives a data read request from the host device 110, the device controller 122 may process the read request and perform a read operation on the flash memory 126 of the storage device 120.

[0034] In the first phase of the data transfer, the device controller 122 may read data from the flash memory 126 and transfer the read data to the flash memory controller of the storage device 120 (e.g., for redundant array of independent disks (RAID), low-density parity check (LDPC), memory cyclic redundancy check (MCRC) decoding, and error detection).

[0035] In the second stage, the device controller 122 may transfer the read data from the flash controller to an internal buffer (eg, a read buffer) to temporarily store the read data before transferring to the host memory 114 .

[0036] In the third stage, the device controller 122 may transfer the data from the internal buffer to the host memory 114 (e.g., via a PCIE or SATA interface). However, as explained previously, such data transfer involving the internal buffer increases the latency of the data read / write operation and also results in significant power consumption. In addition, the need for an internal buffer inside the storage device 120 increases the overall cost of the storage device 120. Furthermore, in some storage devices 120 (e.g., in memory-constrained devices such as DRAM-free storage devices), an internal buffer is not desirable. Therefore, in order to overcome these problems, the present disclosure is directed to a storage device 120 ( Figure 1A In the following paragraphs, the storage device 120 is considered to be an NVMe-based storage device 120. However, the present disclosure is not limited thereto.

[0037] Figure 1B A detailed block diagram of an exemplary storage system 100 is shown according to an exemplary embodiment of the present disclosure, and the detailed block diagram of the exemplary storage system 100 shows a process flow for performing a read operation on a storage device 120. According to the present disclosure, each time a storage device 120 is first connected to a host device 110, an SSD setup and initialization process may be performed to allocate an HMB 116 within the host memory 114.

[0038] As discussed above, HMB 116 enables storage device 120 to utilize a portion of host memory 114 to cache address mapping information and / or user data. Modern operating systems and some DRAM-less SSDs support the HMB feature.

[0039] During the SSD initialization process, the host device 110 may send an identification command to the storage device 120 (more specifically, to the device controller 122) to determine whether the storage device 120 supports HMB and to identify the HMB size required by the storage device 120. The storage device 120 may then reply with a response message and request the host device 110 to allocate HMB 116 within the host memory 114 (operation (A)). The response message may include attributes such as a host memory buffer preferred size (Host Memory Buffer Preferred Size, HMPRE) and a host memory buffer minimum size (Host Memory Buffer Minimum Size, HMMIN).

[0040] The storage device 120 can use these attributes to inform the host device 110 whether the storage device 120 supports the HMB feature. For example, if the value of the attribute HMPRE is non-zero, this indicates that the storage device 120 supports the HMB feature. In order to use the HMB feature, both the storage device 120 and the host device 110 must support the HMB feature. In a non-limiting embodiment, the storage device 120 can directly send a request for allocating HMB 116 in the host memory 114 to the host device 110.

[0041] In one non-limiting embodiment, in response to receiving a response message (or request) from the storage device 120, the host device 110 may allocate the HMB 116 within the host memory 114, and send a confirmation message about the HMB allocation together with the size and / or memory address of the HMB to the storage device 120 (operation (B)). Then, the storage device 120 may reserve some memory space from the HMB as the read destination space 118, and send information indicating the reserved space (e.g., indicating the size and / or memory address of the reserved space) to the host device 110 (operation (C)).

[0042] The host device 110 may use the reserved space to perform a read operation on the storage device 120. After the initial setup of the storage device 120 and the host device 110 is completed, the host device 110 may communicate with the storage device 120 to perform a memory read / write operation on the storage device 120. An exemplary memory read operation on the storage device 120 is described in the following paragraphs.

[0043] In one non-limiting embodiment, an application (e.g., a game application) running on the host device 110 needs to read some data from the storage device 120. The application may initiate a data read operation for reading the required data from the storage device 120. Subsequently, the host controller 112 may prepare a read command or a read request based on the data read request from the application. The read command may include information indicating a description of the read command (e.g., the source of the read data (i.e., the application requesting the data), the characteristics of the read data, the memory location from which the requested data is to be obtained, etc.). In one non-limiting embodiment, the read command may also include information about a read destination space 118 for transmitting the read data. The host controller 112 needs the information of the read command to prepare the read command.

[0044] Once the read command is prepared, the host controller 112 may transmit the read command to the host interface 140 (operation (1)), and the host interface 140 may forward the read command to the storage device interface 142 (operation (2)). In a non-limiting embodiment, the storage device 120 may include a command receiver 130 communicatively coupled to the storage device interface 142 and the device controller 122. The command receiver 130 may be configured to receive a read / write command from the host device 110 via the host interface 140 and forward the read / write command to the device controller 122.

[0045] exist Figure 1B In the example of FIG. 1 , the command receiver 130 of the storage device 120 may receive the read command from the storage device interface 142 (operation (3)), and send the received command to the device controller 122 for further processing (operation (4)). Then, the device controller 122 may instruct the flash controller 124 to perform a data read operation on the flash memory based on the information included in the received request (operation (5)).

[0046] Flash controller 124 may read the requested data from flash memory 126 and transfer the read data to the reserved read destination space 118 on HMB 116 (operation (6)). The data may then be transferred to the internal file system buffer of host device 110 to be ultimately transferred to an application running on host device 110.

[0047] Finally, flash controller 124 may notify storage device interface 142 of the completion of the read operation (operation (7)). In one non-limiting embodiment, flash controller 124 may access flash memory 126 through the flash interface to read the requested data. The flash interface may help maintain the correct ordering of data read from flash memory 126.

[0048] In one non-limiting embodiment, the flash controller 124 may include an error correction code (ECC) engine 128 for performing error detection and correction on data read from the flash memory 126. In other words, the ECC engine 128 may be used to ensure that the data read from the flash memory 126 may be error-free. If an error is found, the ECC engine 128 may attempt to repair the data by correcting the error.

[0049] In some embodiments, an inline ECC engine may be used within flash controller 124 to allow errors to be corrected before data is transferred via an internal buffer to host memory 114. In the event that ECC engine 128 is unable to perform error recovery, other techniques such as RAID, LDPC codes, and MCRC codes may be used to correct errors.

[0050] In the present disclosure, since the storage device 120 does not include an internal buffer, the ECC engine 128 may perform error correction directly at the data stored in the read destination space 118 (i.e., perform error correction directly on the data stored in the read destination space 118). More specifically, the ECC engine 128 may generate parity bits for write data to be written to the flash memory 126, and the generated parity bits may be stored in the flash memory 126 together with the write data. Once the data is read from the flash memory 126 based on a read request and stored in the read destination space 118, the ECC engine 128 may correct errors in the read data by using the parity bits read from the flash memory 126 together with the read data, and replace the erroneous data in the read destination space 118 with the error-corrected data.

[0051] In one non-limiting embodiment, storage device 120 may include a direct memory access (DMA) engine, and device controller 122 or flash controller 124 may utilize the DMA engine to transfer read data directly from the flash memory into HMB 116 .

[0052] In one non-limiting embodiment, the flash controller 124 of the storage device 120 may include other elements such as, but not limited to, a flash translation layer (FTL) and an advanced encryption standard (AES) engine. The FTL may perform various functions such as address mapping operations, wear leveling operations, and garbage collection operations. The address mapping operation may be an operation that converts a logical address received from the host device 110 into a physical address for actually storing data in the flash memory 126.

[0053] The wear leveling operation may be a technique for preventing excessive degradation of a specific block by allowing the blocks of the flash memory 126 to be used evenly. As an example, the wear leveling operation may be implemented using a firmware technique that balances the erase counts of physical blocks. The garbage collection operation may be a technique for ensuring available capacity in the flash memory 126 by erasing an existing block after copying valid data of the existing block to a new block. The AES engine may perform at least one of an encryption operation and a decryption operation on data input to the device controller 122 by using a symmetric key algorithm.

[0054] In one non-limiting embodiment, the host controller 112 may manage the read destination space 118 by reserving space for read requests in the read destination space 118. For each read request, the host controller 112 may allocate one or more buffers in the read destination space for temporarily storing the requested data read from the flash memory 126 before the requested data is sent to the application. Once the requested data is sent to the application, the host controller 112 may release the space occupied by the requested data.

[0055] Figure 2 A sequence diagram for performing a read operation on a storage device 120 (eg, an NVMe SSD device) according to an exemplary embodiment of the present disclosure is shown. Figure 2 Combination Figure 1B Summarize the various operations discussed.

[0056] like Figure 2 As shown in , each time the storage device 120 is first connected to the host device 110, an SSD initialization process (block 230) may be performed. During the SSD initialization process, initially at operation 232, the storage device 120 may send a request for allocating HMB 116 in the host memory 114 to the host device 110.

[0057] In one non-limiting embodiment, the request to the host device 110 may be sent in response to an identification command received from the host device 110. When the request is received from the storage device 120, the host device 110 may allocate the HMB 116 within the host memory 114 and send a confirmation message regarding the HMB allocation to the storage device 120 (operation 234).

[0058] In response to receiving the confirmation from the host device 110, the storage device 120 may reserve some memory space from the HMB 116 as the read destination space 118 and send the HMB destination information to the host device 110 (operations 236 and 238). The HMB destination information may be associated with the read destination space 118 reserved within the HMB 116 for temporarily storing the read data from the flash memory 126. The host device 110 may then begin to manage the read destination space 118.

[0059] Next, Figure 2 Block 240 shows various operations involved in performing a data read operation on storage device 120. Initially, application 202 running on host device 110 may need to read some data from storage device 120. The application may initiate a data read operation in order to obtain the desired data (operation 242).

[0060] The host controller 112 may allocate or reserve one or more read buffers within the read destination space 118 to store the required data (operation 244 ). At operation 246 , the host device 110 may prepare a read request and send the read request to the storage device 120 .

[0061] In response, storage device 120 may perform a data read operation on flash memory 126 (operation 248 ). In operation 250 , storage device 120 sends the data read from flash memory 126 to one or more buffers reserved within read destination space 118 on host device 110 .

[0062] Additionally, error correction (specifically, to detect and correct errors in data stored in one or more buffers) may also be performed in the read destination space 118. In operation 252, the storage device 120 notifies the host device 110 of the completion of the read operation on the SSD device side.

[0063] The read data is then returned to the application that initiated the read request at operation 254. In one non-limiting embodiment, the data may be transferred to an internal file system buffer of the host device 110 for ultimate transfer to the application that initiated the read request. Finally, at operation 256, the read data may be deleted from the read destination space 118, and the read destination space 118 may be freed. This completes the data read operation (block 240).

[0064] In a prior art storage device, an internal buffer within the storage device 120 is required to perform a data read operation on the storage device 120. Specifically, the read data is temporarily stored in the internal buffer before being sent to the host device 110. In addition, in such a storage device, the data read from the flash memory 126 may be sent to an error correction unit, which also includes an internal buffer for performing error correction on the read data. Therefore, the transmission of the read data to the host device 110 is delayed due to the internal transmission of the data to one or more internal buffers.

[0065] In contrast, the present disclosure eliminates the reliance on internal buffers and supports direct data transfer from flash memory 126 to host device 110. Thus, the techniques of the present disclosure reduce latency in data read operations performed on storage device 120 and also reduce power consumption of storage device 120. Additionally, since there is no internal buffer within storage device 120, the cost of storage device 120 is reduced without hampering the overall performance of storage device 120.

[0066] Figure 3 A flow chart of an operation process 300 for reducing delay when performing a data read operation on a storage device 120 according to an exemplary embodiment of the present disclosure is shown. The operation process 300 may be performed by the storage device 120 (specifically, using the device controller (processor) 122 of the storage device 120).

[0067] Operation process 300 may include: Figure 3 At block 302, when the SSD is initialized, HMB destination information is sent to the host device 110. The HMB destination information may be associated with a read destination space 118 reserved within the HMB 116 of the host device 110.

[0068] Operational process 300 may also include receiving a read request from host device 110 for performing at least one data read operation on storage device 120 at block 304. The read request may specify data to be read from flash memory 126 of storage device 120.

[0069] Subsequently, at block 306 , operational process 300 may include performing at least one data read operation on the non-volatile memory to read the data specified in the read request.

[0070] Finally, at block 308 , operational process 300 may include sending the data read from flash memory 126 to a read destination space 118 reserved within HMB 116 of host device 110 .

[0071] In one non-limiting embodiment, the operation process 300 may further include: when the SSD is initialized, sending a request to the host device 110 for allocating an HMB within the memory of the host device, and receiving a confirmation of the allocation of the HMB 116 from the host device 110. The operation process 300 may also include: reserving a read destination space 118 within the HMB 116 to temporarily store data read from the flash memory 126.

[0072] In another non-limiting embodiment, the operation process 300 may further include sending a request to the host device 110 to perform error correction on the read data stored in the read destination space 118. In one non-limiting embodiment, the step of sending the request to the host device 110 to allocate space in the HMB 116 includes specifying at least one of the HMB preferred size (HMPRE) and the HMMIN in the request.

[0073] Figure 4 An operational process 400 is shown for reducing a delay of a read operation performed on a storage device 120 according to an exemplary embodiment of the present disclosure. The operational process 400 may be performed by a host device 110 (specifically, using a host controller 112 of the host device 110).

[0074] Operational process 400 includes, at block 402, upon initialization, receiving HMB destination information from storage device 120. The HMB destination information may be associated with a read destination space 118 reserved within HMB 116 of host device 110.

[0075] Operational process 400 also includes sending at least one data read request for performing a read operation on flash memory 126 of storage device 120 to storage device 120 at block 404. The read request specifies data to be read from flash memory 126.

[0076] The operational process also includes receiving data read from the flash memory 126 of the storage device 120 in the read destination space 118 at block 406 .

[0077] In another non-limiting embodiment, the operation process 400 may also include receiving a request from the storage device 120 to allocate the HMB 116 within the host memory 114, and sending a confirmation of the allocation of the HMB 116 to the storage device 120. In another non-limiting embodiment, the operation of sending the read request to the storage device 120 may be initiated by the application 202 running on the host device 110.

[0078] In another non-limiting embodiment, the operational process 400 may also include managing the read destination space 118 by allocating one or more buffers within the read destination space 118 for temporarily storing data read from the flash memory 126 and releasing the one or more buffers after completing at least one read operation.

[0079] In another non-limiting embodiment, the operation process 400 may further include: when at least one read operation is completed, copying data from the read destination space 118 to the internal file system buffer of the host device 110. In another non-limiting embodiment, the request from the storage device 120 to allocate space in the HMB 116 may include at least one of the HMPRE and the HMMIN in the request. In another non-limiting embodiment, the operation process 400 may further include: performing error correction on the data stored in the read destination space 118.

[0080] Operational processes 300, 400 may be described in the general context of computer-executable instructions. Generally, computer-executable instructions may include routines, programs, objects, components, data structures, processes, modules, and functions that perform particular functions or implement particular abstract data types.

[0081] The order in which the various operations of the operational process are described is not intended to be construed as limiting, and any number of the described operational process blocks may be combined in any order to implement the operational process. Additionally, individual blocks may be deleted from the operational process without departing from the spirit and scope of the subject matter described herein. Furthermore, the operational process may be implemented in any suitable hardware, software, firmware, or combination thereof.

[0082] The operation process described above may be performed by any suitable device capable of performing the corresponding functions. The device may include Figure 1A and Figure 1B The various hardware and / or software components and / or modules shown in the drawings. Generally, where there are operations shown in the drawings, those operations may have corresponding corresponding counterpart means-plus-function components. It may be noted here that with reference to Figure 1A , Figure 1B and Figure 2 The subject matter of some or all of the described embodiments may be related to the operation processes 300, 400, and for the sake of brevity, the same will not be repeated. In addition, the present disclosure has been explained by considering the storage device as an NVMe SSD. However, it can be noted that the teachings of the present disclosure are also applicable to other types of DRAM-free NVMe storage devices.

[0083] In non-limiting embodiments of the present disclosure, one or more non-transitory computer-readable media may be used to implement embodiments consistent with the present disclosure. Certain aspects may include a computer program product for performing the operations presented herein. For example, such a computer program product may include a computer-readable medium having instructions stored (and / or encoded) thereon, and the instructions may be executed by one or more processors to perform the operations described herein. For certain aspects, the computer program product may include packaging materials.

[0084] Various components, modules, or units are described in this disclosure to emphasize functional aspects of devices configured to perform the disclosed technology, but do not necessarily need to be implemented by different hardware units. Instead, as described above, various units can be combined in hardware units, or provided by a collection of interoperable hardware units including one or more processors as described above in combination with appropriate software and / or firmware.

Claims

1. A method for reducing the latency of a read operation performed on a storage device, the method comprising: include: sending host memory buffer HMB destination information to the host device, wherein the HMB destination information is associated with a read destination space reserved within the HMB of the host device; receiving, from a host device, a read request for performing at least one data read operation on a memory of the storage device, wherein the read request specifies data to be read from the memory of the storage device; performing the at least one data read operation on a memory of a storage device to read the data specified in the read request; and Data read from the memory of the storage device is sent to a read destination space reserved within the HMB of the host device.

2. The method according to claim 1, further comprising: include: sending a request to the host device to allocate the HMB within a memory of the host device; receiving confirmation of allocation of the HMB from the host device; as well as A read destination space is reserved within the HMB to temporarily store data read from the memory of the storage device.

3. The method according to claim 1, further comprising: include: A request for performing error correction on data stored in the read destination space is sent to the host device.

4. The method according to claim 2, in, The step of sending a request to the host device for allocating an HMB includes specifying at least one of an HMB preferred size and a host memory buffer minimum size in the request.

5. A method for reducing the latency of a read operation performed on a storage device by a host device, the method include: receiving host memory buffer HMB destination information from the storage device, wherein the HMB destination information is associated with a read destination space reserved within an HMB of the host device; sending a read request to the storage device for performing at least one data read operation on a memory of the storage device, wherein the read request specifies data to be read from the memory of the storage device; and Data read from a memory of a storage device is received in a read destination space.

6. The method according to claim 5, further comprising: include: receiving, from a storage device, a request to allocate an HMB within a memory of a host device; as well as Confirmation of allocation of the HMB is sent to the storage device.

7. The method according to claim 5, in, The step of sending the read request to the storage device is initiated by an application running on the host device.

8. The method according to claim 5, further comprising managing the read destination space by: allocating one or more buffers within the read destination space to temporarily store data read from a memory of the storage device; and The one or more buffers are released after completion of the at least one data read operation.

9. The method according to claim 5, further comprising: include: When the at least one data read operation is completed, the data is copied from the read destination space to an internal file system buffer of the host device.

10. The method according to claim 6, in, The request received from the storage device to allocate space in the HMB includes at least one of the HMB preferred size and the host memory buffer minimum size.

11. The method according to any one of claims 5 to 10, further comprising: include: Error correction is performed on data stored in the read destination space.

12. A storage device, include: a memory configured to store data; as well as A controller is coupled to the memory and is configured to: sending host memory buffer HMB destination information to the host device, wherein the HMB destination information is associated with a read destination space reserved within the HMB of the host device; receiving, from a host device, a read request for performing at least one data read operation on a memory of the storage device, wherein the read request specifies data to be read from the memory of the storage device; performing the at least one data read operation on a memory of the storage device to read the data specified in the read request; and Data read from the memory of the storage device is sent to a read destination space reserved within the HMB of the host device.

13. The storage device according to claim 12, in, The controller is also configured to: sending a request to the host device to allocate the HMB within a memory of the host device; receiving confirmation of allocation of the HMB from the host device; as well as A read destination space is reserved within the HMB to temporarily store data read from the memory of the storage device.

14. The storage device according to claim 12, in, The controller is further configured to send a request for performing error correction on data stored in the read destination space to the host device.

15. A host device, include: a host memory buffer HMB allocated within a memory of the host device; as well as A controller, coupled to the HMB and configured to: receiving HMB destination information from a storage device, wherein the HMB destination information is associated with a read destination space reserved within the HMB; sending a read request for performing at least one data read operation on a memory of the storage device to the storage device, wherein the read request specifies data to be read from the memory of the storage device; and Data read from a memory of a storage device is received in a read destination space.

16. The host device according to claim 15, in, The controller is also configured to: receiving a request from a storage device to allocate an HMB within a memory of the host device; and Confirmation of allocation of the HMB is sent to the storage device.

17. The host device according to claim 15, in, The controller is also configured to manage the read destination space by: allocating one or more buffers within the read destination space to temporarily store data read from a memory of the storage device; and The one or more buffers are released after completion of the at least one data read operation.

18. The host device according to claim 15, in, The controller is further configured to copy the data from the read destination space to an internal file system buffer of the host device when the at least one data read operation is completed.

19. A non-transitory computer-readable medium for reducing latency of a read operation performed on a storage device, the non-transitory computer-readable medium comprising one or more instructions that, when executed by at least one processor, cause the at least one processor to: Sending host memory buffer HMB destination information to the host device, in, The HMB destination information is associated with a read destination space reserved within the HMB of the host device; receiving, from a host device, a read request for performing at least one data read operation on a memory of the storage device, wherein the read request specifies data to be read from the memory of the storage device; performing the at least one data read operation on a memory of a storage device to read the data specified in the read request; and Data read from the memory of the storage device is sent to a read destination space reserved within the HMB of the host device.

20. A non-transitory computer-readable medium for reducing latency of a read operation performed on a storage device, the non-transitory computer-readable medium comprising one or more instructions that, when executed by at least one processor, cause the at least one processor to: receiving host memory buffer HMB destination information from a storage device, in, The HMB destination information is associated with a read destination space reserved within the HMB of the host device; sending a read request for performing at least one data read operation on a memory of the storage device to the storage device, wherein the read request specifies data to be read from the memory of the storage device; as well as Data read from a memory of a storage device is received in a read destination space.

Citation Information

Cited By

  • Host read command processing method, system, device, equipment, medium and product

    CN122838321A