Method for managing host request and data storage device

By detecting the read request type in the data storage device and performing predefined processing and obtaining the L2P mapping table in parallel, the problem of latency and cost in random read operations is solved and the data reading efficiency is improved.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing data storage devices incur delays and additional costs due to multiple extractions of logical-to-physical (L2P) mapping tables during random read operations, especially when the L2P mapping table in the cache is unavailable, affecting the efficiency of data reading.

Method used

By detecting the type of read request, and when a random read request is detected, performing predefined processing in parallel with the read request to obtain the L2P mapping table, thereby reducing latency, and performing predefined processing when obtaining the L2P mapping table. Extract data in parallel.

Benefits of technology

It effectively reduces the delay in reading data from the data storage device to the host device, improves data reading efficiency, and reduces the delay in random read operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732936A_ABST
    Figure CN118732936A_ABST
Patent Text Reader

Abstract

The invention relates to a method for managing host requests in a data storage device and the data storage device. The method includes receiving a read request for reading data from a data storage device from a host device, identifying a type of the read request, and based on the type of the read request being a random read request, performing one or more first operations related to processing of the read request in parallel with one or more second operations, the one or more second operations include: extracting a logical block address of the data from the read request; and obtaining a logical-to-physical (L2P) mapping table from a first memory associated with the data storage device based on the logical block address, the L2P mapping table to read data from the data storage device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] Priority is claimed on Indian Patent Application No. 202341024577 filed on March 31, 2023, in the Indian Intellectual Property Office, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates generally to data storage devices and more particularly to methods and data storage devices for managing host requests in data storage devices. Background Art

[0004] Data storage devices store data and instructions to be processed in a computer system. These data storage devices may include solid state drives (SSDs), hard disk drives (HDDs), etc. There are two types of read operations in SSDs, including sequential operations and random operations. Sequential read operations involve reading from blocks of data. Random read operations involve reading or writing small files that may be scattered throughout the SSD.

[0005] Reading data of a host device from a data storage device includes fetching a logical-to-physical (L2P) mapping table from a memory of the data storage device to identify the physical address of the data. Typically, this causes delays when reading data for random read operations. In a random read operation, the L2P mapping table is extracted multiple times based on a read request from the host device, resulting in an additional cost for loading the L2P mapping table. The L2P mapping table may not be available in the cache, and the L2P mapping table must be extracted from the memory for each read request. In most cases, storage may not be available to cache the entire L2P mapping in the memory. Random read operations include delays caused by extracting a read request, decoding the logical page number (LPN) of the read request, loading the L2P mapping table, loading data from the memory, and transferring the data to the host device. Summary of the invention

[0006] According to one aspect of the present disclosure, a method for managing host requests in a data storage device is provided, the method comprising: receiving a read request for reading data from a data storage device from a host device; identifying a type of the read request; and based on the type of the read request being a random read request, performing one or more first operations related to processing of the read request in parallel with one or more second operations, the one or more second operations comprising: extracting a logical block address of the data from the read request; and based on the logical block address, obtaining a logical-to-physical (L2P) mapping table from a first memory associated with the data storage device, the L2P mapping table being used to read data from the data storage device.

[0007] The read requests may be stored in a queue in one of a second memory associated with the host device and a first memory associated with the data storage device.

[0008] Performing one or more first operations related to processing of the read request may include performing predefined processing of the read request including validation of the read request and allocating one or more resources to the read request.

[0009] The logical block address may include a starting logical block address (logical block address, LBA) of the data and a number of logical blocks (number of logical blocks, NLB).

[0010] Obtaining the L2P mapping table from a first memory associated with the data storage device may include: converting a logical block address into a logical page number (LPN); and obtaining the L2P mapping table from the first memory associated with the data storage device based on the LPN.

[0011] The method may further include extracting data from the data storage device in parallel with performing one or more first operations associated with processing the read request based on the L2P mapping table being obtained.

[0012] According to another aspect of the present disclosure, a data storage device is provided, including: a controller configured to: receive a read request for reading data from the data storage device from a host device; identify the type of the read request; and based on the type of the read request being a random read request, perform one or more first operations related to processing the read request in parallel with one or more second operations, the one or more second operations including: extracting a logical block address of the data from the read request; and based on the logical block address, obtaining a logical-to-physical (L2P) mapping table from a first memory associated with the data storage device, the L2P mapping table being used to read data from the data storage device.

[0013] The read requests may be stored in a queue in one of a second memory associated with the host device or a first memory associated with the data storage device.

[0014] The controller may be configured to perform predefined processing of the read request, the predefined processing of the read request including validation of the read request and allocation of one or more resources to the read request.

[0015] The logical block address may include a starting logical block address (LBA) of data and a number of logical blocks (NLB).

[0016] The controller may be further configured to obtain the L2P mapping table from a first memory associated with the data storage device by: converting the logical block address into a logical page number (LPN); and obtaining the L2P mapping table from the first memory associated with the data storage device based on the LPN.

[0017] The controller may be further configured to extract data from the data storage device in parallel with performing one or more first operations associated with processing the read request based on the L2P mapping table being obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other objects and features of the present disclosure will become apparent by describing in detail embodiments of the present disclosure with reference to the accompanying drawings.

[0019] Figure 1 An environment for managing host requests in a data storage device according to one or more example embodiments of the present disclosure is shown;

[0020] Figure 2 A detailed diagram of a data storage device for managing host requests in the data storage device is shown according to one or more example embodiments of the present disclosure;

[0021] Figure 3 A block diagram for managing host requests in a data storage device according to one or more example embodiments of the present disclosure is shown;

[0022] Figure 4 A flow chart illustrating the operation of a method for managing host requests in a data storage device according to one or more example embodiments of the present disclosure is shown;

[0023] Figure 5 A block diagram of a computing system for managing host requests in a data storage device is shown according to one or more example embodiments of the present disclosure.

[0024] Those skilled in the art will appreciate that any block diagram herein represents a conceptual view of an illustrative system that embodies the principles of the inventive concepts of the present disclosure. Similarly, it will be appreciated that any flow chart, flow diagram, state transition diagram, pseudo code, etc., represents various processes that can be substantially represented in a computer-readable medium and executed by a computer or processor, whether or not such a computer or processor is explicitly shown. DETAILED DESCRIPTION

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

[0026] The terms "include", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a setting, apparatus, or method that includes a list of components or operations includes not only those components or operations, but may also include other components or operations not expressly listed or inherent to such setting, apparatus, or method. In other words, one or more elements in a system or device beginning with "includes..." does not exclude the presence of other or additional elements in the system or device without more constraints.

[0027] In the operation of the data storage device, a random read operation includes reading or writing files that may be scattered throughout the memory of the data storage device. Typically, there is a delay in reading data for a random read operation because a logical to physical (L2P) mapping table is fetched multiple times based on a read request from a host device. This results in an additional cost for loading the L2P mapping table.

[0028] According to an example embodiment, a method and a data storage device for managing host requests in a data storage device are provided. When a read request is received from a host device, the data storage device needs to perform certain processing of the read request before reading the data to the host device. Here, according to an example embodiment, the specific processing is a predefined processing. In addition, an L2P mapping table needs to be extracted, which increases the latency of reading data from the data storage device. According to an example embodiment of the present disclosure, the data storage device detects that the type of the read request is a random read request, and performs an operation of obtaining the L2P mapping table in parallel with the predefined processing of the read request. Therefore, when the predefined processing is performed in parallel to reduce the latency, the L2P mapping table can be obtained in advance. In addition, when the L2P mapping table is obtained, the data of the host device can also be pre-extracted in parallel with the predefined processing. Therefore, when the predefined processing is completed, the data can be read immediately for transmission to the host device.

[0029] Figure 1 An environment 100 for managing host requests in a data storage device according to one or more example embodiments is shown. The environment 100 includes a host device 101 and a data storage device 102. The host device 101 may be any computing device that communicates with other host devices on a network. The host device 101 may include a laptop, a desktop computer, a personal computer (PC), a notebook computer, a smart phone, a tablet computer, an e-book reader, a server, a network server, a cloud-based server, etc. The data storage device 102 stores data and / or instructions to be processed in the host device 101. The data storage device 102 includes a solid-state drive (SSD) or a hard disk drive (HDD). However, the present disclosure is not limited thereto, and thus, according to another example embodiment, other types of storage devices may be provided. An SSD is a solid-state device that uses integrated circuit components (typically, flash memory) to permanently store data and acts as secondary storage in the hierarchy of computer storage. An HDD is an electromechanical data storage device that uses magnetic storage to store and retrieve digital data. According to an example embodiment, the data storage device 102 refers to an SSD. However, the present disclosure is not limited thereto, and thus, according to another example embodiment, the data storage device may include any other similar data storage device.

[0030] The data storage device 102 may include a controller 103 and a memory 104. The controller 103 is an electronic component of the data storage device 102 that acts as a bridge between the memory 104 and the host device 101. The controller 103 may be an embedded processor that executes firmware-level code and performs functions such as reading and writing, caching, error detection and correction. However, the present disclosure is not limited thereto, and thus, according to another example embodiment, the controller 103 may be configured to perform other operations. The memory 104 stores data of the host device 101. In one embodiment, the memory 104 may include a volatile memory, such as a dynamic random access memory (DRAM). In another embodiment, the memory 104 may include a non-volatile memory, such as a NAND flash memory. In yet another embodiment, the memory 104 may include a volatile memory as a cache. However, the present disclosure is not limited thereto, and thus, according to another example embodiment, any other memory type may be used in the data storage device 102. The host device 101 and the data storage device 102 may be connected via an interface. The interface may include an internal interface or an external interface. The interface can be implemented by using various interface schemes, including but not limited to Advanced Technology Attachment (ATA), Serial ATA (SATA), external SATA (e-SATA), Small Computer Small Interface (SCSI), Serial Attached SCSI (SAS), Peripheral Component Interconnection (PCI), PCI express (PCIe), NVMe, IEEE 1394, Universal Serial Bus (USB) interface, Secure Digital (SD) card interface, Multi-Media Card (MMC) interface, eMMC interface, Universal Flash Storage (UFS) interface, embedded UFS (eUFS) interface and Compact Flash (CF) card interface.

[0031] The controller 103 may be configured to manage host requests in the data storage device 102. According to an example embodiment, the controller 103 may receive a read request from the host device 101. The read request may be a received request for reading data from the data storage device 102. For example, the read request may be an instruction for reading data from the data storage device 102. The controller 103 may determine the type of the read request. For example, the controller 103 may detect that the type of the read request is a random read request. According to an example embodiment, the controller 103 may obtain a logical to physical (L2P) mapping table from the memory in parallel with the processing of the read request. For example, the controller 103 obtains the L2P mapping table from the memory in parallel with the predefined processing of the read request. According to an example embodiment, the controller 103 may perform an operation to obtain the L2P mapping table from the memory while performing an operation for the processing of the read request. According to an example embodiment, the controller 103 may obtain the L2P mapping table by extracting the logical block address of the data from the read request, and obtain the L2P mapping table from the memory 104 based on the logical block address. For example, the controller 103 may first extract the logical block address of the data from the read request, and then obtain the L2P mapping table from the memory 104 based on the logical block address. In addition, the controller 103 performs a read of the physical address in the memory 101 based on the L2P mapping table for reading the data to the host device 101.

[0032] Figure 2A detailed schematic diagram 200 of a data storage device 102 for managing host requests in the data storage device 102 according to an example embodiment of the present disclosure is shown. The data storage device 102 may include one or more central processing units 203 (also referred to as "CPUs", processors, or "controllers 203"), an input / output (I / O) interface 201, and a memory 202. In an example embodiment, the memory 202 may be communicatively coupled to the controller 203. The memory 202 stores instructions executable by the controller 203. The controller 203 may include at least one data processor for executing program components for executing user or system generated requests. The memory 202 may be communicatively coupled to the controller 203. The memory 202 stores instructions executable by the controller 203, which when executed may cause the controller 203 to manage host requests in the data storage device 102. In an example embodiment, the memory 202 may include one or more modules 205 and data 204. According to an example embodiment, the one or more modules 205 may be configured to perform operations to manage host requests in the data storage device 102. For example, one or more modules 205 may be configured to use data 204 and perform operations to manage host requests in data storage device 102 using data 204. In an example embodiment, each of one or more modules 205 may be hardware that may be outside memory 202 and coupled to data storage device 102. As used herein, the term "module" may include, but is not limited to, an Application Specific Integrated Circuit (ASIC), an electronic circuit, a Field-Programmable Gate Array (FPGA), a Programmable System-on-Chip (PSoC), a combinational logic circuit, and / or other suitable components that provide the described functions. According to an example embodiment, one or more modules 205 may be implemented by software or a combination of hardware and software. According to an example embodiment, one or more modules 205 will result in novel hardware when configured with the functions defined in the present disclosure, or may be considered as a dedicated processor. However, the present disclosure is not limited thereto, and thus, the present disclosure may be implemented in another manner according to various other example embodiments. In addition, I / O interface 201 is coupled to controller 203, and input signals or / and output signals are transmitted through controller 203. For example, the data storage device 102 may receive a read request from the host device 101 via the I / O interface 201. The I / O interface 201 may include an internal interface or an external interface.In example embodiments, the data storage device 102 may be coupled with various computing systems, such as a laptop computer, a desktop computer, a personal computer (PC), a notebook computer, a smart phone, a tablet computer, an e-book reader, a server, a network server, a cloud-based server, and the like.

[0033] According to an example embodiment, the module 205 may include, for example, an input module 211, a detection module 212, an extraction module 213, a request processing module 214, and other modules 215. It should be understood that these aforementioned modules 205 can be represented as a single module or a combination of different modules. In one embodiment, the data 204 may include, for example, input data 206, detection data 207, L2P data 208, request processing data 209, and other data 210.

[0034] In an example embodiment, the input module 211 may be configured to receive a read request from the host device 101. The data of the host device 101 may be stored in the data storage device 102. For example, the data of the host device 101 may include data related to one or more applications running in the host device 101. The host device 101 may send a read request for reading data from the data storage device 102 to the data storage device 102. The input module 211 may submit the read request in a queue. In an example embodiment, the queue may be an I / O submission queue including a circular buffer having a fixed slot size, which the host device 101 uses to submit the read request for execution by the controller 103. In an example embodiment, the read request may be stored in a queue of one of a memory associated with the host device 101 and a memory 104 associated with the data storage device 102. The read request received from the host device 101 may be stored in the memory 202 as input data 206. Reference Figure 3 , block 300 illustrates an example embodiment of an I / O submission queue in which read requests of the host device 101 are stored. As described above, the host device 101 may send a read request to the data storage device 102. As shown in 301, the read request may be stored in the I / O submission queue 300.

[0035] In an example embodiment, the detection module 212 may be configured to receive input data 206 from the input module 211. In addition, the detection module 212 may be configured to detect the type of the read request. The read request received from the host device 101 may be one of a sequential read request and a random read request. The sequential read request includes a request for reading a data block. The random read request includes a request for reading a small file that may be scattered throughout the data storage device 102. In an example embodiment, the detection module 212 may detect the type of the read request based on one or more parameters of the read request. For example, the one or more parameters may include sequentiality, sequential run length, request size, and other parameters indicating the characteristics of a sequential read request or a random read request. According to an example embodiment, any known detection method other than the above method may be used to detect the type of the read request. The result of the detection may be stored in the memory 202 as detection data 207.

[0036] In an example embodiment, the extraction module 213 may be configured to receive input data 206 from the input module 211 and to receive detection data 207 from the detection module 212. In addition, the extraction module 213 may be configured to perform operations for obtaining the L2P mapping table in parallel with the predefined processing of the read request. The request processing module 214 may be configured to perform the predefined processing of the read request once the read request is submitted in the queue. The predefined processing of the read request may include performing verification of the read request and allocating one or more resources to the read request. The verification of the read request may include parsing the read request, checking risks, etc. However, the present disclosure is not limited thereto, and thus, according to another example embodiment, the verification of the read request may include other operations for verifying the read request. The extraction module 213 may extract the logical block address of the data from the read request in parallel with the processing of the read request. The logical block address may include the starting logical block address (LBA) and the number of logical blocks (NLB) of the data. In addition, the extraction module 213 may convert the logical block address into a logical page number (LPN). Then, the extraction module 213 may obtain the L2P mapping table from the memory 104 based on the LPN. Reference again Figure 3, the request processing module 214 may perform the predefined processing of the read request, as shown in 302. The extraction module 213 may perform the acquisition of the L2P mapping table in parallel with the processing of the read request, as shown in 303. The L2P mapping table may be stored in the memory 202 as L2P data 208. In an example embodiment, the extraction module 213 may also be configured to extract data from the data storage device 102 in parallel with the predefined processing of the read request when the L2P mapping table is obtained. For example, the extraction module 213 may complete the extraction of the L2P mapping table. However, the request processing module 214 may still be performing the predefined processing of the read request. Therefore, the extraction module 213 may extract data from the data storage device 102 in parallel with the predefined processing of the read request to keep the data ready. In an example embodiment, until the predefined processing of the read request is completed and before the data is transmitted to the host device 101, the extraction module 213 may store the data in the read buffer. Then, the data may be transmitted to the host device 101, as shown in 304. According to an example embodiment, the extraction module 213 is an independent module that works in parallel with the request processing module 214. The extraction module 213 may be implemented in any suitable hardware, software, firmware, or a combination thereof.

[0037] Other data 210 may store data generated by one or more modules 205 for performing various functions of the data storage device 102, including temporary data and temporary files. One or more modules 205 may also include other modules 215 to perform various functions of the data storage device 102. Other data 210 may be stored in the memory 202. It should be understood that one or more modules 305 may be represented as a single module or a combination of different modules.

[0038] Figure 4 A flow chart illustrating the operation of a method for managing host requests in a data storage device 102 according to an example embodiment of the present disclosure is shown. Figure 4 As shown, method 400 may include one or more operations. Method 400 may be described in the general context of computer executable instructions. Generally, computer executable instructions may include routines, programs, objects, components, data structures, procedures, modules, and functions that perform specific functions or implement specific abstract data types.

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

[0040] In operation 401, the controller 103 may receive a read request from the host device 101. The host device 101 may send a read request to the data storage device 102 for reading data from the data storage device 102. The controller 103 may submit the read request in a queue. In an example embodiment, the read request may be stored in a queue of one of a memory associated with the host device 101 and a memory 104 associated with the data storage device 102.

[0041] In operation 402, the controller 103 may detect that the type of the read request is a random read request. The read request received from the host device 101 may be one of a sequential read request and a random read request. In an example embodiment, the controller 103 may detect the type of the read request based on one or more parameters of the read request. For example, the one or more parameters may include sequentiality, sequential run length, request size, and / or other parameters indicating characteristics of a sequential read request or a random read request. According to an example embodiment, a known detection method may be used to detect the type of the read request.

[0042] In operation 403, the controller 103 may perform the acquisition of the L2P mapping table in parallel with the predefined processing of the read request. The controller 103 may be configured to perform the predefined processing of the read request once the read request is submitted in the queue. The predefined processing of the read request may include performing the verification of the read request and allocating one or more resources to the read request. The controller 103 may extract the logical block address of the data from the read request in parallel with the processing of the read request. The logical block address may include the starting logical block address (LBA) and the number of logical blocks (NLB) of the data. In addition, the controller 103 may convert the logical block address into a logical page number (LPN). Then, the controller 103 may obtain the L2P mapping table from the memory 104 based on the LPN. In an example embodiment, the controller 103 may also be configured to extract data from the data storage device 102 in parallel with the predefined processing of the read request when obtaining the L2P mapping table.

[0043] Figure 5A block diagram of a computer system 500 for implementing an example embodiment consistent with the present disclosure is shown. In an example embodiment, the computer system 500 may include a data storage device 102. Thus, the computer system 500 may be used to manage host requests in the data storage device 102. The computer system 500 and the data storage device 102 may be connected via an interface. The interface may include an internal interface or an external interface. The computer system 500 may include a central processing unit 502 (also referred to as a "CPU," "processor 502," or controller). The processor 502 may include at least one data processor. The processor 502 may include a special processing unit (such as an integrated system (bus) controller), a memory management control unit, a floating point unit, a graphics processing unit, a digital signal processing unit, and the like.

[0044] The processor 502 may be configured to communicate with one or more input / output (I / O) devices via the I / O interface 501. The I / O interface 501 may employ communication protocols / methods such as, but not limited to, audio, analog, digital, mono, RCA, stereo, IEEE (Institute of Electrical and Electronics Engineers)-1394, serial bus, universal serial bus (USB), infrared, PS / 2, BNC, coaxial, component, composite, digital visual interface (DVI), high-definition multimedia interface (HDMI), radio frequency (RF) antenna, S-Video, VGA, IEEE 802.a / b / g / n / x, Bluetooth, cellular (e.g., code-division multiple access (CDMA), high-speed packet access (HSPA+), global system for mobile communications (GSM), long-term evolution (LTE), WiMax, etc.), etc.

[0045] Using the I / O interface 501, the computer system 500 can communicate with one or more I / O devices. For example, the input device 510 can be an antenna, a keyboard, a mouse, a joystick, an (infrared) remote control, a camera, a card reader, a fax machine, a dongle, a biometric reader, a microphone, a touch screen, a touch pad, a trackball, a stylus, a scanner, a storage device, a transceiver, a video device / source, etc. The output device 511 can be a printer, a fax machine, a video display (e.g., a cathode ray tube (CRT), a liquid crystal display (LCD), a light-emitting diode (LED), a plasma, a plasma display panel (PDP), an organic light-emitting diode display (OLED), etc.), an audio speaker, etc.

[0046] The processor 502 may be configured to communicate with a communication network 509 via a network interface 503. The network interface 503 may communicate with the communication network 509. The network interface 503 may use connection protocols including, but not limited to, direct connection, Ethernet (e.g., twisted pair 10 / 100 / 1000Base T), transmission control protocol / internet protocol (TCP / IP), token ring, IEEE 802.11a / b / g / n / x, etc. The communication network 509 may include, but not limited to, direct interconnection, a local area network (LAN), a wide area network (WAN), a wireless network (e.g., using wireless application protocol), the Internet, etc. The network interface 503 may use connection protocols including, but not limited to, direct connection, Ethernet (e.g., twisted pair 10 / 100 / 1000Base T), transmission control protocol / internet protocol (TCP / IP), token ring, IEEE 802.11a / b / g / n / x, etc.

[0047] The communication network 509 includes, but is not limited to, direct interconnection, e-commerce networks, peer to peer (P2P) networks, local area networks (LANs), wide area networks (WANs), wireless networks (e.g., using wireless application protocols), the Internet, Wi-Fi, etc. The first network and the second network may be dedicated networks or shared networks, which represent associations of different types of networks that communicate with each other using various protocols (e.g., Hypertext Transfer Protocol (HTTP), Transmission Control Protocol / Internet Protocol (TCP / IP), Wireless Application Protocol (WAP), etc.). In addition, the first network and the second network may include various network devices, including routers, bridges, servers, computing devices, storage devices, etc.

[0048] In an example embodiment, the processor 502 may be configured to communicate with a memory 505 (e.g., RAM, ROM, etc.) via a storage interface 504. The storage interface 504 may be connected to the memory 505 using connection protocols such as Serial Advanced Technology Attachment (SATA), Integrated Drive Electronics (IDE), IEEE-1394, Universal Serial Bus (USB), Fibre Channel, Small Computer System Interface (SCSI), etc., including but not limited to memory drives, removable disk drives, etc. The memory drive may also include a magnetic drum, a magnetic disk drive, a magneto-optical drive, an optical drive, a Redundant Array of Independent Discs (RAID), a solid-state memory device, a solid-state drive, etc.

[0049] The memory 505 may store a collection of program or database components, including but not limited to a user interface 506, an operating system 507, a web browser 508, etc. In an example embodiment, the computer system 500 may store user / application data, such as data, variables, records, etc., as described in the present disclosure. Such a database may be implemented as a fault-tolerant, relational, scalable, secure database, such as or

[0050] Operating system 507 may facilitate resource management and operation of computer system 500. Examples of operating systems include, but are not limited to, APPLE MACINTOSH R OS X, UNIX R , UNIX-like system distributions (for example, BERKELEY SOFTWARE DISTRIBUTION TM(BSD), FREEBSD TM , NETBSD TM 、OPENBSD TM etc.), LINUX DISTRIBUTIONS TM (For example, RED HAT TM 、UBUNTU TM 、KUBUNTU TM etc.), IBM TM OS / 2, MICROSOFT TM WINDOWS TM (XP TM VISTA TM / 7 / 8, 10, etc.), APPLE R iOS TM 、GOOGLE R ANDROID TM ,BLACKBERRY R OS, etc.

[0051] In an example embodiment, computer system 500 may implement a program component stored in web browser 508. Web browser 508 may be a hypertext viewing application such as MICROSOFT R INTERNET EXPLORER TM 、GOOGLE R CHROME TM0 、MOZILLA R FIREFOX TM 、APPLE R SAFARI TM etc. Secure Hypertext Transport Protocol (HTTPS), Secure Sockets Layer (SSL), Transport Layer Security (TLS), etc. may be used to provide secure web browsing. Web browser 508 may utilize AJAX, etc. TM , DHTML TM 、ADOBE R FLASH TM 、JAVASCRIPT TM , JAVA TM, Application Programming Interface (API) and other facilities. In an exemplary embodiment, the computer system 500 may implement a program component stored in a mail server. The mail server may be an Internet mail server, such as Microsoft Exchange, etc. The mail server may utilize a server such as ASP. TM 、ACTIVEX TM , ANSI TM C++ / C#、MICROSOFT R , .NET TM 、CGI SCRIPTS TM , JAVA TM 、JAVASCRIPT TM PERL TM , PHP TM 、PYTHON TM 、WEBOBJECTS TM The mail server can use facilities such as Internet Message Access Protocol (IMAP), Messaging Application Programming Interface (MAPI), MICROSOFT R The computer system 500 may be implemented with a program component stored in a mail client. The mail client may be a mail viewing application such as APPLE R MAIL TM MICROSOFT R ENTOURAGE TM MICROSOFT R OUTLOOK TM 、MOZILLA R THUNDERBIRD TM wait.

[0052] In addition, one or more computer-readable storage media can be used to implement embodiments consistent with the present disclosure. Computer-readable storage media refers to any type of physical memory on which processor-readable information or data can be stored. Therefore, a computer-readable storage medium can store instructions executed by one or more processors, including instructions for causing (multiple) processors to perform operations or stages consistent with the embodiments described herein. The term "computer-readable medium" should be understood to include tangible items, excluding carrier waves and transient signals, i.e., non-temporary. Examples include random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), volatile memory, non-volatile memory, hard disk drive, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), digital video disc (Digital Video Disc, DVD), flash drive, disk, and any other known physical storage medium.

[0053] According to an example embodiment of the present disclosure, a method and a data storage device for managing host requests in a data storage device are provided. When a read request is received from a host device, the data storage device needs to perform certain predefined processing of the read request before reading the data to the host device. In addition, an L2P mapping table needs to be extracted, which increases the latency of reading data from the data storage device. In this way, according to an example embodiment, the data storage device detects that the type of the read request is a random read request. Then, the data storage device performs an operation of obtaining the L2P mapping table in parallel with the predefined processing of the read request. Therefore, the L2P mapping table can be pre-obtained in parallel when the predefined processing is performed, thereby reducing latency. In addition, when the L2P mapping table is obtained, the data of the host device can also be pre-extracted in parallel with the predefined processing. Therefore, when the predefined processing is completed, the data can be read immediately for transmission to the host device.

[0054] In the above-described example embodiments, components according to the example embodiments of the present disclosure are referenced by using modules or units. The modules or units may be implemented with various hardware devices, such as integrated circuits, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), and complex programmable logic devices (CPLDs), firmware driven in hardware devices, software (such as applications), or a combination of hardware devices and software. In addition, the modules or units may include circuits implemented with semiconductor elements in integrated circuits, or circuits registered as intellectual property (IP).

[0055] The terms “example embodiment,” “embodiment,” “embodiments,” “the embodiment,” “the embodiments,” “one or more embodiments,” “some embodiments,” and “one embodiment” mean “one or more (but not all) embodiments of the invention,” unless expressly specified otherwise.

[0056] The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless expressly specified otherwise.

[0057] An enumerated listing of items does not imply that any or all of the items are mutually exclusive unless expressly specified otherwise.The terms "a," "an," and "the" mean "one or more," unless expressly specified otherwise.

[0058] The description of an example embodiment with several components in communication with each other does not imply that all such components are required. Rather, various optional components are described to illustrate the wide variety of possible embodiments of the present invention.

[0059] When a single device or article is described herein, it is apparent that more than one device / article (whether or not they collaborate) may be used in place of a single device / article. Similarly, where more than one device or article is described herein (whether or not they collaborate), it is apparent that a single device / article may be used in place of more than one device or article, or a different number of devices / articles may be used instead of the number of devices or articles shown. The functions and / or features of a device may alternatively be embodied by one or more other devices that are not explicitly described as having such functions / features. Therefore, other embodiments of the present invention do not need to include the device itself.

[0060] Figure 4 The operations shown show specific events that occur in a particular order. In alternative embodiments, some operations can be performed, modified or removed in different orders. In addition, operations can be added to the above logic and still meet the described embodiments. In addition, the operations described herein can occur in sequence, or some operations can be processed in parallel. In addition, operations can be performed by a single processing unit or a distributed processing unit.

[0061] Finally, the language used in the specification is selected primarily for readability and instructional purposes, rather than for describing or defining the subject matter of the present invention. Therefore, the scope of the present invention is not limited by this detailed description, but by any claims issued on an application based thereon. Accordingly, the disclosure of the embodiments of the present invention is intended to illustrate, but not to limit, the scope of the present invention, which is set forth in the following claims.

[0062] While various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for purposes of illustration and are not intended to be limiting, with the true scope being indicated by the appended claims.

Claims

1. A method for managing host requests in a data storage device, the method include: receiving, from a host device, a read request for reading data from the data storage device; identifying a type of the read request; as well as Based on the type of the read request being a random read request, performing one or more first operations related to processing the read request in parallel with one or more second operations, the one or more second operations comprising: extracting a logical block address of the data from the read request; as well as A logical-to-physical L2P mapping table is obtained from a first memory associated with the data storage device based on the logical block address, the L2P mapping table being used to read data from the data storage device.

2. The method according to claim 1, in, The read requests are stored in a queue in one of a second memory associated with the host device and a first memory associated with the data storage device.

3. The method according to claim 1, in, The performing one or more first operations related to the processing of the read request includes performing predefined processing of the read request including validation of the read request and allocation of one or more resources to the read request.

4. The method according to claim 1, in, The logical block address includes a starting logical block address LBA of the data and a number of logical blocks (NLB).

5. The method according to claim 1, in, The obtaining of the L2P mapping table from a first memory associated with the data storage device comprises: Converting the logical block address into a logical page number LPN; and The L2P mapping table is obtained from a first memory associated with the data storage device based on the LPN.

6. The method according to claim 1, further comprising: include: Based on the L2P mapping table being obtained, the data is extracted from the data storage device in parallel with performing one or more first operations associated with processing the read request.

7. A data storage device, include: The controller is configured as: receiving, from a host device, a read request for reading data from the data storage device; identifying a type of the read request; as well as Based on the type of the read request being a random read request, performing one or more first operations related to processing the read request in parallel with one or more second operations, the one or more second operations comprising: extracting a logical block address of the data from the read request; as well as A logical-to-physical L2P mapping table is obtained from a first memory associated with the data storage device based on the logical block address, the L2P mapping table being used to read the data from the data storage device.

8. The data storage device according to claim 7, in, The read requests are stored in a queue in one of a second memory associated with the host device or a first memory associated with the data storage device.

9. The data storage device according to claim 7, in, The controller is configured to perform predefined processing of the read request, the predefined processing of the read request including validation of the read request and allocation of one or more resources to the read request.

10. The data storage device according to claim 7, in, The logical block address includes a starting logical block address LBA and a logical block number NLB of the data.

11. The data storage device according to claim 7, in, The controller is further configured to obtain the L2P mapping table from a first memory associated with the data storage device by: Converting the logical block address into a logical page number LPN; and The L2P mapping table is obtained from a first memory associated with the data storage device based on the LPN.

12. The data storage device according to claim 7, in, The controller is also configured to: Based on the L2P mapping table being obtained, the data is extracted from the data storage device in parallel with performing one or more first operations associated with processing the read request.