CN111324302A - Data storage device and operation method thereof - Google Patents

Data storage device and operation method thereof Download PDF

Info

Publication number
CN111324302A
CN111324302A CN201911257307.9A CN201911257307A CN111324302A CN 111324302 A CN111324302 A CN 111324302A CN 201911257307 A CN201911257307 A CN 201911257307A CN 111324302 A CN111324302 A CN 111324302A
Authority
CN
China
Prior art keywords
task
command
time
storage device
data storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911257307.9A
Other languages
Chinese (zh)
Other versions
CN111324302B (en
Inventor
金佑冽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SK Hynix Inc
Original Assignee
SK Hynix Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SK Hynix Inc filed Critical SK Hynix Inc
Publication of CN111324302A publication Critical patent/CN111324302A/en
Application granted granted Critical
Publication of CN111324302B publication Critical patent/CN111324302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The present application relates to a data storage device and a method of operating the same. The data storage device may include: a non-volatile memory; and a controller configured to control an operation of the non-volatile memory. When a command is received from the host, the controller transmits first state information as a response to the command to the host, the first state information including first time information from a point of time when the command is received to a point of time when a task corresponding to the command is generated and stored. When receiving a task execution command from the host, the controller transmits second state information including second time information from a time point when the task execution command is received to a time point when the task is completely executed to the host as a response to the task execution command.

Description

Data storage device and operation method thereof
Cross Reference to Related Applications
The present application claims priority of korean applications with application numbers 10-2018-.
Technical Field
Various embodiments relate generally to a semiconductor device, and more particularly, to a data memory device and an operating method of the data memory device.
Background
In general, the semiconductor memory device may be a volatile memory device such as a Dynamic Random Access Memory (DRAM) or a Static Random Access Memory (SRAM), or a non-volatile memory device such as a flash memory, a Ferroelectric Random Access Memory (FRAM), a phase change random access memory (PRAM), or a Magnetic Random Access Memory (MRAM). Volatile memory devices lose the data stored therein when power is removed, but non-volatile memory devices retain the stored data even when power is removed. In particular, a flash memory, which is a kind of nonvolatile memory device, has a high programming speed and low power consumption, and can store a large amount of data. Therefore, flash memory is widely used as a storage medium in various applications requiring low power and mass storage devices, such as MP3 players, digital cameras, Solid State Drives (SSDs), embedded multimedia cards (emmcs), and computer systems. The eMMC, which is a data storage device using a nonvolatile memory, has a controller coupled thereto, and is mainly used in mobile products such as a smart phone or a tablet computer.
Disclosure of Invention
Various embodiments relate to a data storage device and an operating method of the data storage device capable of checking an accurate delay for command processing.
In an embodiment, a data storage device may include: a non-volatile memory; and a controller configured to control an operation of the non-volatile memory. When a command is received from the host device, the controller may transmit first state information including first time information from a time point when the command is received to a time point when a task corresponding to the command is generated and stored, to the host device as a response to the command. When receiving a task execution command from the host device, the controller may transmit second state information including second time information from a time point when the task execution command is received to a time point when the task is completely executed to the host device as a response to the task execution command.
In an embodiment, there is provided a method of operating a data storage device, the data storage device comprising a non-volatile storage device; and a controller configured to control an operation of the nonvolatile memory device. The operation method may include: generating and storing a task corresponding to a command received from a host device; transmitting first state information to the host device as a response to the command, the first state information including first time information from a time point when the command is received to a time point when the task is stored; controlling the nonvolatile memory to perform an operation corresponding to the task according to a task execution command received from the host device; and transmitting second state information including second time information from a time point when the task execution command is received to a time point when the task is completely executed to the host device as a response to the task execution command.
In an embodiment, a data storage device may include: a memory device; and a controller configured to provide the first processing time information and the second processing time information to the external element. The first processing time information represents a time taken by the controller to generate the task in response to a first command provided from the external element, and the second processing time information represents a time taken by the controller to complete execution of the task in response to a second command provided from the external element.
Drawings
Fig. 1 is a diagram showing a configuration of a data storage device according to an embodiment.
Fig. 2 is a diagram illustrating the memory of fig. 1.
Fig. 3 is a diagram illustrating a configuration of the host of fig. 1.
Fig. 4 is a diagram illustrating the host memory of fig. 3.
Fig. 5 is a diagram illustrating a configuration of a Command Queue (CQ) engine of fig. 3.
FIG. 6 is a flow chart illustrating operation of a data storage device according to an embodiment.
Fig. 7 is a diagram illustrating a data processing system including a Solid State Drive (SSD), according to an embodiment.
Fig. 8 is a diagram showing a configuration of a controller such as the controller of fig. 7.
FIG. 9 is a diagram illustrating a data processing system including a data storage device, according to an embodiment.
FIG. 10 is a diagram illustrating a data processing system including a data storage device, according to an embodiment.
Fig. 11 is a diagram illustrating a network system including a data storage device according to an embodiment.
Fig. 12 is a block diagram illustrating a nonvolatile memory included in a data storage device according to an embodiment.
Detailed Description
Advantages, features and methods of accomplishing the same will become more apparent from the following description of exemplary embodiments when taken in conjunction with the accompanying drawings. This invention may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to describe the present invention in detail to the extent that the technical idea of the present invention can be easily implemented by those skilled in the art to which the present invention pertains. It is noted that references to "an embodiment" are not necessarily to only one embodiment, and different references to "an embodiment" are not necessarily to the same embodiment.
In this context, it will be understood that embodiments of the invention are not limited to the details shown in the drawings, and that the drawings are not necessarily to scale, and in some instances the proportions may have been exaggerated in order to more clearly describe certain features of the invention. Although specific terms are employed herein, it is to be understood that the terminology used herein is for the purpose of describing particular embodiments only, and is not intended to limit the scope of the present invention.
As used herein, the phrase "and/or" includes any and all combinations of one or more of the associated listed items. It will be understood that when an element is referred to as being "on," "connected to" or "coupled to" another element, it can be directly on, connected or coupled to the other element or intervening elements may be present. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of at least one stated feature, step, operation, and/or element, but do not preclude the presence or addition of one or more other features, steps, operations, and/or elements.
Hereinafter, various exemplary embodiments will be described in detail with reference to the accompanying drawings.
Fig. 1 is a diagram showing a configuration of a data storage apparatus 10 according to an embodiment.
Referring to fig. 1, a data storage device 10 may store data accessed by a host 20 such as: a mobile phone, an MP3 player, a laptop computer, a desktop computer, a game console, a TV or a car infotainment system. The data storage device 10 may also be referred to as a memory system.
Data storage device 10 may be manufactured or configured as any of a variety of types of storage devices, depending on the interface protocol coupled to host 20. For example, the data storage device 10 may be configured as any one of the following: a Solid State Drive (SSD), a multimedia card (MMC) such as eMMC, RS-MMC or micro-MMC, a Secure Digital (SD) card such as a mini-SD or micro-SD card, a Universal Serial Bus (USB) storage device, a universal flash memory (UFS) device, a Personal Computer Memory Card International Association (PCMCIA) card type storage device, a Peripheral Component Interconnect (PCI) card type storage device, a PCI express (PCI-E) card type storage device, a Compact Flash (CF) card, a smart media card, and a memory stick.
Data storage device 10 may be manufactured in any of a variety of types of packages. For example, the data storage device 10 may be manufactured as any one of the following: package On Package (POP), System In Package (SIP), System On Chip (SOC), multi-chip package (MCP), Chip On Board (COB), wafer-level manufacturing package (WFP), and wafer-level package on package (WSP).
The data storage device 10 may include a nonvolatile memory 100 and a controller 200.
The nonvolatile memory 100 may operate as a storage medium of the data storage device 10. The non-volatile memory 100 may be configured to include any of various types of non-volatile memory devices: NAND flash memory devices, NOR flash memory devices, Ferroelectric Random Access Memory (FRAM) using ferroelectric capacitors, magnetoresistive ram (mram) using a Tunnel Magnetoresistive (TMR) layer, phase change ram (pcram) using chalcogenide alloys, and resistive ram (reram) using transition metal oxides.
Fig. 1 shows that data storage device 10 includes a non-volatile memory 100. However, this is only an example; in another embodiment, data storage device 10 may include a plurality of non-volatile memories. As will be understood by those skilled in the art, the principles of the present disclosure described in the context of a data storage device 10 having one non-volatile memory may be applied in the same manner to a data storage device 10 comprising a plurality of non-volatile memories.
The nonvolatile memory 100 may include a memory cell array (not shown) having a plurality of memory cells arranged at respective intersections between a plurality of bit lines (not shown) and a plurality of word lines (not shown). The memory cell array may include a plurality of memory blocks, and each of the memory blocks may include a plurality of pages.
For example, each of the memory cells of the memory cell array may be configured as a single-layer cell (SLC) capable of storing 1-bit data or a multi-layer cell (MLC) capable of storing 2-bit or more data. For example, an MLC may store 2-bit data, 3-bit data, 4-bit data, or more. In general, a memory cell storing 2-bit data may be referred to as an MLC, a memory cell storing 3-bit data may be referred to as a Triple Layer Cell (TLC), and a memory cell storing 4-bit data may be referred to as a Quadruple Layer Cell (QLC). However, in the following discussion, memory cells storing 2 or more bits of data may be considered to be MLCs.
The memory cell array may include one or more of SLCs and MLCs. In addition, the memory cell array may include memory cells having a two-dimensional horizontal structure or memory cells having a three-dimensional vertical structure.
Controller 200 may control the overall operation of data storage device 10 by driving firmware or software loaded into memory 230. The controller 200 may decode and drive code-based instructions or algorithms, such as firmware or software. The controller 200 may be implemented in hardware or a combination of hardware and software.
Controller 200 may include a host interface 210, a processor 220, a memory 230, and a memory interface 240. Although not shown in fig. 1, the controller 200 may further include an Error Correction Code (ECC) engine that generates parity data by performing ECC encoding on write data provided from the host 20 and performs ECC decoding on read data read from the nonvolatile memory 100 using the parity data.
The host interface 210 may interface the host 120 and the data storage device 10 according to a protocol of the host 20. For example, the host interface 210 may communicate with the host 20 through various protocols such as: USB (universal serial bus), UFS (universal flash), MMC (multimedia card), PATA (parallel advanced technology attachment), SATA (serial advanced technology attachment), SCSI (small computer system interface), SAS (serial attached SCSI), PCI (peripheral component interconnect), and PCI-E (PCI express).
Processor 220 may include a Micro Control Unit (MCU) and/or a Central Processing Unit (CPU). Processor 220 may process requests transmitted from host 20. To process requests transmitted from the host 20, the processor 220 may drive code-based instructions or algorithms, i.e., firmware, loaded to the memory 230 and control the non-volatile memory 100 and internal functional blocks such as the host interface 210, the memory 230, and the memory interface 240.
The processor 220 may generate a control signal for controlling the operation of the nonvolatile memory 100 based on a request transmitted from the host 20 and provide the generated control signal to the nonvolatile memory 100 through the memory interface 240.
Memory 230 may be configured as Random Access Memory (RAM) such as dynamic RAM (dram) or static RAM (sram). Memory 230 may store firmware driven by processor 220. In addition, memory 230 may store data, such as metadata, that drives the firmware. That is, the memory 230 may operate as a working memory of the processor 220.
The memory 230 may include a data buffer for temporarily storing write data to be transferred from the host 20 to the nonvolatile memory 100 or read data to be transferred from the nonvolatile memory 100 to the host 20. That is, the memory 230 may operate as a buffer memory.
The memory interface 240 may control the non-volatile memory 100 under the control of the processor 220. The memory interface 240 may also be referred to as a memory controller. The memory interface 240 may provide control signals to the non-volatile memory 100. The control signals may include command, address, and operation control signals for controlling the nonvolatile memory 100. The memory interface 240 may provide data stored in the data buffer to the nonvolatile memory 100 or store data transferred from the nonvolatile memory 100 in the data buffer.
Fig. 2 is a diagram illustrating the memory 230 of fig. 1.
Referring to fig. 2, the memory 230 according to the present embodiment may include a first region 231 storing a Flash Translation Layer (FTL) and a second region 233 serving as a task queue for queuing tasks generated based on commands received from the host 20.
When the nonvolatile memory 100 is configured as a flash memory device, the processor 220 may control an intrinsic (unique) operation of the nonvolatile memory 100 and drive software called FTL in order to provide device compatibility with the host 20. When the FTL is driven, the host 20 can recognize the data storage device 10 and use the data storage device 10 as a general storage device such as a hard disk.
The FTL stored in the first region R1 of the memory 230 may include modules for performing various functions and metadata required to drive the respective modules. The FTL may be stored in a system area (not shown) of the non-volatile memory 100. When the data storage device 10 is powered on, the FTL may be read from the system area of the non-volatile memory 100 and loaded into the first region R1 of the memory 230.
The tasks may be generated by the processor 220 and stored in a second area of the memory 230. A task may include the same information as a command corresponding to the task. For example, the task may include the type of command received from the host, a starting logical address, and data size information (or length information of the logical address). When a command is received from the host 20, the processor 220 may generate a task corresponding to the received command and queue the generated task in the task queue 233 of the memory 230. The command received from the host 20 may be a command related to an operation performed by the nonvolatile memory 100 of the data storage device 10. For example, although the command may include a read command, a write command, an erase command, and the like, the embodiment is not limited thereto.
Referring to fig. 2, the memory 230 includes only a first region R1 storing FTL and a second region R2 serving as a task queue. As understood by those skilled in the art, memory 230 need not be limited to these two regions; instead, in addition to the areas shown in fig. 2, the memory 230 may include other areas for various purposes, such as an area used as a write data buffer for temporarily storing write data, an area used as a read data buffer for temporarily storing read data, and an area used as a map cache buffer for caching map data.
Fig. 3 is a diagram illustrating a configuration of the host 20 of fig. 1.
Referring to fig. 3, the host 20 may include a host controller 310, a host memory 320, and a Command Queue (CQ) engine 330.
The host controller 310 may be configured to control the overall operation of the host 20. For example, the host controller 310 may include a Micro Control Unit (MCU) and a Central Processing Unit (CPU).
The host controller 310 may generate a description for generating a command to be provided to the data storage device 10 and store the generated description in the host memory 320.
Fig. 4 is a diagram illustrating a configuration of the host memory 320 of fig. 3.
The host memory 320 may include a description area 321 for storing a description generated by the host controller 310. Fig. 4 shows that the host memory 320 includes only the description area 321. However, the present embodiment is not limited thereto, but it is apparent to those skilled in the art that the host memory 320 may further include an area for various purposes.
Fig. 5 is a diagram illustrating a configuration of the CQ engine of fig. 3.
CQ engine 330 may include a command generator 331, a first status register 333, and a second status register 335. Although not shown in fig. 5, CQ engine 330 may further include a controller (not shown) for controlling the overall operation of CQ engine 330.
The command generator 331 may acquire the description stored in the host memory 320, and generate a command to be supplied to the data storage device 10 based on the acquired description. The controller of CQ engine 330 may provide the commands generated by command generator 331 to data storage device 10. The controller of CQ engine 330 may periodically check whether a new description is stored in description area 321 of host memory 320. When a new description is stored in the description area 321, the controller of the CQ engine 330 may acquire the stored new description and provide the acquired description to the command generator 331. For example, the controller of the CQ engine 330 may check whether a new description has been stored in the description area 321 by a polling method.
First status register 333 may be configured to store data received from data storage device 10
First state information. The first state information may include first time information and task generation state information indicating whether the data storage device 10 is completely ready to execute a task corresponding to a command received from the host 20. The first time information may include information indicating a time required from a time point when the host 20 receives a command to a time point when a task corresponding to the received command is queued in the task queue 233.
The processor 220 may calculate a time from a time point when the host 20 receives the command to a time point when a task corresponding to the received command is completely generated and stored, and include the calculated time as first time information in the first state information. That is, the first state information may include first time information and task generation state information indicating whether generation of the task has been completed. For example, the first status information may include a plurality of bits, some of the plurality of bits may be set to indicate the task generation status information, and other of the plurality of bits may be set to indicate the first time information.
The second status register 335 may be configured to store second status information received from the data storage 10. The second state information may include second time information and task execution state information indicating whether the task has been completely executed. The second time information may include information indicating a time required from a time point when the host 20 receives the task execution command to a time point when the corresponding task is completely executed.
For example, when first state information is received from the data storage device 10, the host controller 310 may store the received first state information in the first state register of the CQ engine 330 and transmit a task execution command to the data storage device 10. The task execution command may be a command for executing one or more tasks queued in the task queue 233 of the data storage device 10.
When a task execution command is received from the host 20, the processor 220 of the data storage device 10 may dequeue a task corresponding to the received task execution command from the task queue 233 and control the nonvolatile memory 100 to perform an operation corresponding to the dequeued task. When the operation corresponding to the task is completely performed, the processor 220 may transmit second state information indicating that the task corresponding to the task execution command received from the host 20 has been completely processed to the host 20.
The processor 220 may calculate a time from a time point when the host 20 receives the task execution command to a time point when a task corresponding to the received command is completely processed, and include the calculated time as second time information in the second state information. That is, the second state information may include second time information and task execution state information indicating whether the task has been completely executed. For example, the second status information may include a plurality of bits, some of the plurality of bits may be set to indicate the task execution status information, and other of the plurality of bits may be set to indicate the second time information.
The host controller 310 may store the second state information received from the data storage device 10 in a second state register 335 within the CQ engine 330.
Accordingly, the first time information and the second time information may be stored in the CQ engine 330 of the host 20. The first time information may indicate a processing time of the data storage device 10 from a time point when the CQ engine 330 of the host 20 receives a command to a time point when a task corresponding to the received command is generated and stored, and the second time information may indicate a processing time of the data storage device 10 from a time point when the CQ engine 330 of the host 20 receives a task execution command to a time point when the corresponding task is completely executed.
Accordingly, the data storage device 10 can provide the host 20 with information about the time required to generate and store the task in response to the command and the time required to process the task in response to the task execution command, which can accurately check the delay of the command processing in the data storage device 10.
Fig. 6 is a flowchart illustrating an operation method of the data storage device 10 according to an embodiment. To describe an operation method of the data storage device 10 according to the present embodiment with reference to fig. 6, one or more of fig. 1 to 5 may be referred to.
In step S610, the host 20 may transmit a command to the data storage device 10. The command may be a command related to an operation performed by the non-volatile memory 100 of the data storage device 10. For example, although the command may include a read command, a write command, an erase command, and the like, the embodiment is not limited thereto. For example, although the command may include information indicating the type of the command, a start logical address, and data size information (or length information of the logical address), the embodiment is not limited thereto. Since the process of the host 20 generating and storing the command has been described above, a detailed description thereof is omitted herein.
In step S620, the processor 220 of the data storage device 10 may record a first time corresponding to a time point at which the command is received from the host 20.
In step S630, the processor 220 may generate a task corresponding to the command received from the host 20 and queue (or store) the generated task in the task queue 233 within the memory 230. A task may be generated that includes the same information as included in the command.
In step S640, the processor 220 may record a second time corresponding to a point in time at which the generated task is stored in the task queue 233. Although not shown in fig. 6, the processor 220 may generate first state information including first time information corresponding to a difference between the first time and the second time and task generation state information indicating that the task has been completely generated.
In step S650, the processor 220 may transmit the generated first state information to the host 20.
In step S660, the host 20 may transmit a task execution command to the data storage device 10. Although not shown in fig. 6, before transmitting the task execution command to the data storage device 10, the host 20 may store the first state information received from the data storage device 10 in the first state register 333 within the CQ engine 330 in step S650.
In this step, the task execution command transmitted by the host 20 to the data storage device 10 may be an execution command for a task corresponding to the command transmitted to the data storage device 10 in step S610, or an execution command for a task not corresponding to the command.
In step S670, the processor 220 of the data storage device 10 may record a third time corresponding to a point in time when the task execution command is received from the host 20.
In step S680, the processor 220 may acquire a task corresponding to the task execution command received from the host 20 from the task queue 233 of the memory 230 and control the nonvolatile memory 100 to perform an operation corresponding to the acquired task.
In step S690, the processor 220 may record a fourth time corresponding to a point in time when the task is completely executed. Although not shown in fig. 6, the processor 220 may generate second state information including second time information corresponding to a difference between the third time and the fourth time and task execution state information indicating an execution state of the task.
In step S700, the processor 220 may transmit the generated second state information to the host 20. Although not shown in fig. 6, the host 20 may store the second state information received from the data storage 10 in the second state register 335 within the CQ engine 330.
According to the present embodiment, the data storage device and the operating method can provide the host with information corresponding to the delay for command processing within the data storage device, thereby easily checking the accurate delay for command processing within the data storage device.
FIG. 7 shows a diagram of a data processing system including a Solid State Drive (SSD) according to an embodiment. Referring to fig. 7, a data processing system 2000 may include a host device 2100 and a solid state drive SSD 2200.
SSD2200 may include controller 2210, cache memory device 2220, nonvolatile memory devices 2231 through 223n, power supply 2240, signal connector 2250, and power connector 2260.
Controller 2210 may control the overall operation of SSD 2200.
The buffer memory device 2220 may temporarily store data to be stored in the nonvolatile memory devices 2231 to 223 n. In addition, the buffer memory device 2220 may temporarily store data read from the nonvolatile memory devices 2231 to 223 n. The data temporarily stored in the buffer memory device 2220 may be transferred to the host device 2100 or the nonvolatile memory devices 2231 to 223n under the control of the controller 2210.
The nonvolatile memory devices 2231 to 223n may be used as storage media of the SSD 2200. The nonvolatile memory devices 2231 to 223n may be coupled to the controller 2210 through a plurality of channels CH1 to CHn, respectively. Each of reference numerals 2231 to 223n may represent one or more non-volatile memory devices, and in the case where each of reference numerals 2231 to 223n may represent a plurality of non-volatile memory devices, more than one non-volatile memory device may be coupled to the same channel. A non-volatile memory device coupled to one channel may be coupled to the same signal bus and data bus.
The power supply 2240 may provide the power PWR input through the power connector 2260 into the SSD 2200. Power supply 2240 may include an auxiliary power supply 2241. The auxiliary power supply 2241 may supply power to normally shut off the SSD2200 when a sudden power outage occurs. The auxiliary power supply 2241 may include a large capacitor capable of storing the power PWR.
The controller 2210 may exchange signals SGL with the host device 2100 through a signal connector 2250. The signal SGL may include commands, addresses, data, and the like. The signal connector 2250 may be configured as any of various types of connectors according to an interface method between the host device 2100 and the SSD 2200.
Fig. 8 shows a configuration of the controller of fig. 7. Referring to fig. 8, the controller 2210 may include a host interface 2211, a control component 2212, a RAM 2213, an ECC component 2214, and a memory interface 2215.
The host interface 2211 may interface the host device 2100 and the SSD2200 according to a protocol of the host device 2100. For example, the host interface 2211 may communicate with the host device 2100 through any of a variety of protocols, such as: secure digital, USB (universal serial bus), MMC (multimedia card), eMMC (embedded MMC), PCMCIA (personal computer memory card international association), PATA (parallel advanced technology attachment), SATA (serial advanced technology attachment), SCSI (small computer system interface), SAS (serial SCSI), PCI (peripheral component interconnect), PCI-E (PCI express), and UFS (universal flash memory). The host interface 2211 may perform a disk emulation function that supports the identification of the SSD2200 by the host device 2100 as a general data storage device such as a Hard Disk Drive (HDD).
Control component 2212 may analyze and process signals SGL received from host device 2100. Control component 2212 may control the operation of internal functional blocks according to firmware or software used to drive SSD 2200. The RAM 2213 may be used as a working memory for driving the firmware or software.
The ECC component 2214 may generate parity data for data to be transferred to the non-volatile memory devices 2231 through 223 n. The generated parity data and data may be stored in the nonvolatile memory devices 2231 to 223 n. The ECC component 214 may detect errors in the data read from the nonvolatile memory devices 2231 through 223n based on the parity data. When the detected error is within the correctable range, the ECC assembly 2214 may correct the detected error.
The memory interface 2215 may provide control signals such as commands and addresses to the nonvolatile memory devices 2231 through 223n under the control of the control component 2212. The memory interface 2215 may exchange data with the nonvolatile memory devices 2231 through 223n under the control of the control component 2212. For example, the memory interface 2215 may provide data stored in the buffer memory device 2220 to the nonvolatile memory devices 2231 to 223n, or provide data read from the nonvolatile memory devices 2231 to 223n to the buffer memory device 2220.
FIG. 9 illustrates a data processing system including a data storage device according to an embodiment. Referring to fig. 9, the data processing system 3000 may include a host device 3100 and a data storage device 3200.
The host device 3100 may be configured as a board such as a PCB. Although not shown in fig. 9, the host device 3100 may include internal functional blocks for performing functions of the host device.
The host device 3100 may include connection terminals 3110 such as sockets, slots, or connectors. The data storage unit 3200 may be mounted on the connection terminal 3110.
The data storage 3200 may be configured as a board such as a PCB. The data storage 3200 may be referred to as a memory module or a memory card. The data storage device 3200 may include a controller 3210, a buffer memory device 3220, nonvolatile memory devices 3231 and 3232, a Power Management Integrated Circuit (PMIC)3240, and a connection terminal 3250.
The controller 3210 may control the overall operation of the data storage device 3200. The controller 3210 may be configured in the same manner as the controller 2210 shown in fig. 8
The buffer memory device 3220 may temporarily store data to be stored in the non-volatile memory devices 3231 and 3232. Further, the buffer memory device 3220 may temporarily store data read from the nonvolatile memory devices 3231 and 3232. Data temporarily stored in the buffer memory device 3220 may be transferred to the host device 3100 or the nonvolatile memory devices 3231 and 2232 under the control of the controller 3210.
Nonvolatile memory devices 3231 to 3232 may be used as storage media of the data storage device 3200.
The PMIC 3240 may supply power received through the connection terminal 3250 into the data storage device 3200. The PMIC 3240 may manage power of the data storage device 3200 under the control of the controller 3210.
The connection terminal 3250 may be coupled to a connection terminal 3110 of a host device. Through the connection terminal 3250, signals including commands, addresses, data, and the like and power may be transferred between the host device 3100 and the data storage device 3200. The connection terminal 3250 may be configured in any of various ways according to an interface method between the host device 3100 and the data storage device 3200. The connection terminal 3250 may be provided at any side of the data storage device 3200.
FIG. 10 illustrates a data processing system including a data storage device according to an embodiment. Referring to fig. 10, data processing system 4000 may include a host device 4100 and a data storage device 4200.
The host device 4100 may be configured as a board such as a PCB. Although not shown in fig. 10, the host apparatus 4100 may include internal functional blocks for performing functions of the host apparatus.
The data storage device 4200 may be configured as a surface mount package. The data storage device 4200 may be mounted on the host device 4100 by solder balls 4250. Data storage device 4200 may include a controller 4210, a cache memory device 4220, and a non-volatile memory device 4230.
The controller 4210 may control the overall operation of the data storage device 4200. The controller 4210 may have been configured in the same manner as the controller 2210 shown in fig. 8
Buffer memory device 4220 may temporarily store data to be stored in non-volatile memory device 4230. Further, the buffer memory device 4220 may temporarily store data read from the nonvolatile memory device 4230. Data temporarily stored in the buffer memory device 4220 may be transferred to the host device 4100 or the nonvolatile memory device 4230 under the control of the controller 4210.
Nonvolatile memory device 4230 may be used as a storage medium of data storage device 4200.
Fig. 11 illustrates a network system 5000 that includes a data storage device according to an embodiment of the present invention. Referring to fig. 11, the network system 5000 may include a server system 5300 and a plurality of client systems 5410, 5420, and 5430 connected through a network 5500.
The server system 5300 may provide data in response to requests by the plurality of client systems 5410, 5420, and 5430. For example, server system 5300 may store data provided from multiple client systems 5410, 5420, and 5430. For another example, server system 5300 may provide data to multiple client systems 5410, 5420, and 5430.
The server system 5300 may include a host device 5100 and a data storage device 5200. The data storage device 5200 may be configured as the data storage device 10 of fig. 1, the data storage device 2200 of fig. 7, the data storage device 3200 of fig. 9, or the data storage device 4200 of fig. 10.
Fig. 12 is a block diagram illustrating a nonvolatile memory included in a data storage device according to an embodiment. Referring to fig. 12, the nonvolatile memory 100 may include a memory cell array 110, a row decoder 120, a column decoder 140, a data read/write block 130, a voltage generator 150, and a control logic 160.
The memory cell array 110 may include memory cells MC arranged at respective intersections between word lines WL1 to WLm and bit lines BL1 to BLn.
Row decoder 120 may be coupled to memory cell array 110 by word lines WL1 through WLm. The row decoder 120 may operate under the control of control logic 160. The row decoder 120 may decode an address provided from an external device (not shown). The row decoder 120 may select and drive word lines WL1 to WLm based on the decoding result. For example, the row decoder 120 may provide the word line voltage provided from the voltage generator 150 to the word lines WL1 to WLm.
Data read/write block 130 may be coupled to memory cell array 110 by bit lines BL1 through BLn. The data read/write block 130 may include read/write circuits RW1 to RWn corresponding to the respective bit lines BL1 to BLn. The data read/write block 130 may operate under the control of the control logic 160. The data read/write block 130 may operate as a write driver or a sense amplifier depending on the mode of operation. For example, during a write operation, the data read/write block 130 may operate as a write driver that stores data supplied from an external device in the memory cell array 110. For another example, during a read operation, the data read/write block 130 may operate as a sense amplifier that reads data from the memory cell array 110.
The column decoder 140 may operate under the control of control logic 160. The column decoder 140 may decode an address provided from an external device. The column decoder 140 may couple the read/write circuits RW1 to RWn of the data read/write block 130 corresponding to the respective bit lines BL1 to BLn to data input/output lines (or data input/output buffers) according to the decoding result.
The voltage generator 150 may generate a voltage for an internal operation of the nonvolatile memory 100. The voltage generated by the voltage generator 150 may be applied to the memory cells of the memory cell array 110. For example, a program voltage generated during a program operation may be applied to a word line of a memory cell on which the program operation is to be performed. As another example, an erase voltage generated during an erase operation may be applied to a well region of a memory cell on which the erase operation is to be performed. For another example, a read voltage generated during a read operation may be applied to a word line of a memory cell on which the read operation is to be performed.
The control logic 160 may control the overall operation of the nonvolatile memory 100 based on a control signal provided from an external device. For example, the control logic 160 may control operations of the non-volatile memory 100, such as read operations, write operations, or erase operations of the non-volatile memory 100.
According to embodiments of the present disclosure, latency of a data storage device may be measured.
While various embodiments have been illustrated and described, it will be appreciated by those skilled in the art in light of the present disclosure that the disclosed embodiments are merely examples. Thus, the present invention is not limited to any of the described embodiments; on the contrary, the invention includes all changes and modifications coming within the scope of the claims and their equivalents.

Claims (18)

1. A data storage device comprising:
a non-volatile memory; and
a controller controlling an operation of the non-volatile memory,
wherein the controller transmits first state information as a response to a command to the host when the command is received from the host, the first state information including first time information from a time point when the command is received to a time point when a task corresponding to the command is generated and stored,
wherein when a task execution command is received from the host, the controller transmits second state information as a response to the task execution command to the host, the second state information including second time information from a time point when the task execution command is received to a time point when the task is completely executed.
2. The data storage device of claim 1, further comprising a memory including a task queue that queues the tasks generated by the controller.
3. The data storage device of claim 1, wherein the first time information comprises a time required for the controller to generate a task corresponding to a received command in response to the received command.
4. The data storage device of claim 1, wherein the second time information includes a time required for the controller to generate a control signal for performing an operation corresponding to the task and to provide the generated control signal to the non-volatile memory in response to the received task execution command, and a time required for the non-volatile memory to complete the operation corresponding to the task.
5. The data storage device of claim 1, wherein the first status information further comprises task generation status information indicating that generation of the task corresponding to the command received from the host has been completed.
6. The data storage device of claim 5, wherein the first status information comprises a plurality of bits, some first bits of the plurality of bits set to indicate the first time information and other second bits of the plurality of bits set to indicate the task generation status information.
7. The data storage device of claim 1, wherein the second state information further comprises task execution state information indicating that the task has been completely executed.
8. The data storage device of claim 7, wherein the second status information comprises a plurality of bits, some first bits of the plurality of bits set to indicate the second time information and other second bits of the plurality of bits set to indicate the task execution status information.
9. The data storage device of claim 1, wherein the command comprises a command related to an operation performed by the non-volatile memory.
10. The data storage device of claim 1, wherein the task execution command is a command that controls the non-volatile memory to perform an operation corresponding to the task.
11. A method of operating a data storage device, the data storage device comprising a non-volatile memory device; and a controller controlling an operation of the nonvolatile memory device, the operating method including:
generating and storing a task corresponding to a command received from a host;
transmitting first state information to the host as a response to the command, the first state information including first time information from a time point when the command is received to a time point when the task is stored;
controlling the nonvolatile memory to execute an operation corresponding to the task according to a task execution command received from the host; and is
Transmitting second state information to the host as a response to the task execution command, the second state information including second time information from a time point when the task execution command is received to a time point when the task is completely executed.
12. The method of operation of claim 11, wherein the generating and storing of the task comprises:
recording a first time corresponding to a point in time at which the command was received;
recording a second time corresponding to a point in time at which the task is stored; and
generating the first state information, the first state information including the first time information corresponding to a difference between the first time and the second time.
13. The method of operation of claim 12, wherein the first status information comprises a plurality of bits, some first bits of the plurality of bits set to indicate the first time information and other second bits of the plurality of bits set to indicate the task generation status information.
14. The operating method of claim 11, wherein controlling the performing of the operation corresponding to the task on the non-volatile memory comprises:
recording a third time corresponding to a time point at which the task execution command is received;
recording a fourth time corresponding to a point of time when an operation corresponding to the task is completely performed; and
generating the second state information, the second state information including the second time information corresponding to a difference between the third time and the fourth time.
15. The operating method of claim 14, wherein the second status information includes a plurality of bits, some first bits of the plurality of bits being set to indicate the second time information and other second bits of the plurality of bits being set to indicate information indicating whether execution of the task has been completed.
16. The method of operation of claim 11, wherein the command comprises a command related to an operation performed by the non-volatile memory.
17. The operation method according to claim 11, wherein the task execution command is a command that controls the nonvolatile memory to execute an operation corresponding to the task.
18. A data storage device comprising:
a memory device; and
a controller which provides the first processing time information and the second processing time information to the external element,
wherein the first processing time information represents a time taken for the controller to generate a task in response to a first command provided from the external element,
wherein the second processing time information represents a time taken by the controller to complete execution of the task in response to a second command provided from the external element.
CN201911257307.9A 2018-12-13 2019-12-10 Data storage device and method of operating the same Active CN111324302B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR20180161244 2018-12-13
KR10-2018-0161244 2018-12-13
KR1020190150235A KR20200073122A (en) 2018-12-13 2019-11-21 Data storage device and operating method thereof
KR10-2019-0150235 2019-11-21

Publications (2)

Publication Number Publication Date
CN111324302A true CN111324302A (en) 2020-06-23
CN111324302B CN111324302B (en) 2023-09-01

Family

ID=71137775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911257307.9A Active CN111324302B (en) 2018-12-13 2019-12-10 Data storage device and method of operating the same

Country Status (2)

Country Link
KR (1) KR20200073122A (en)
CN (1) CN111324302B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300324A1 (en) * 2007-01-19 2009-12-03 Nec Corporation Array type processor and data processing system
US20140149692A1 (en) * 2012-11-27 2014-05-29 Samsung Electronics Co., Ltd. Memory controller and operating method of memory controller
CN106371888A (en) * 2015-07-22 2017-02-01 三星电子株式会社 Storage device for supporting virtual machine, storage system including the storage device, and method of operating the same
CN107391188A (en) * 2017-07-17 2017-11-24 聚好看科技股份有限公司 A kind of method and apparatus for controlling timed task
US20180032283A1 (en) * 2016-07-29 2018-02-01 Samsung Electronics Co., Ltd. Storage device, system including the same and method of operating the same
US20180137060A1 (en) * 2016-11-11 2018-05-17 Samsung Electronics Co., Ltd. Storage device and operating method performed by the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300324A1 (en) * 2007-01-19 2009-12-03 Nec Corporation Array type processor and data processing system
US20140149692A1 (en) * 2012-11-27 2014-05-29 Samsung Electronics Co., Ltd. Memory controller and operating method of memory controller
CN106371888A (en) * 2015-07-22 2017-02-01 三星电子株式会社 Storage device for supporting virtual machine, storage system including the storage device, and method of operating the same
US20180032283A1 (en) * 2016-07-29 2018-02-01 Samsung Electronics Co., Ltd. Storage device, system including the same and method of operating the same
CN107665722A (en) * 2016-07-29 2018-02-06 三星电子株式会社 The method of the system and operating memory device of storage device including storage device
US20180137060A1 (en) * 2016-11-11 2018-05-17 Samsung Electronics Co., Ltd. Storage device and operating method performed by the same
CN107391188A (en) * 2017-07-17 2017-11-24 聚好看科技股份有限公司 A kind of method and apparatus for controlling timed task

Also Published As

Publication number Publication date
KR20200073122A (en) 2020-06-23
CN111324302B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US10936485B2 (en) Data storage device for dynamic garbage collection triggering and operating method thereof
CN107122317B (en) Data storage device
US10838653B2 (en) Electronic device and operating method thereof
CN111124273B (en) Data storage device and operation method thereof
CN113220220B (en) Controller, operation method of controller and storage device comprising controller
CN109407966B (en) Data storage device and operation method thereof
CN111061653A (en) Data storage device and operation method thereof
CN111916140A (en) Controller, method of operating the same, and memory system including the same
US11748025B2 (en) Nonvolatile memory device, data storage device including the same and operating method thereof
US10810118B2 (en) Data storage device and operating method thereof
US11042326B2 (en) Data storage device and operating method thereof
US11231882B2 (en) Data storage device with improved read performance and operating method thereof
US11003395B2 (en) Controller, memory system, and operating methods thereof
KR102469098B1 (en) Nonvolatile memory device, operating method thereof and data storage apparatus including the same
US11409473B2 (en) Data storage device and operating method thereof
CN111324297B (en) Controller, data storage device and operation method of data storage device
US11157401B2 (en) Data storage device and operating method thereof performing a block scan operation for checking for valid page counts
CN114385070A (en) Host, data storage device, data processing system, and data processing method
CN111324302B (en) Data storage device and method of operating the same
CN107863120B (en) Data storage device and operation method thereof
CN110175134B (en) Data storage device and operation method thereof
US20200409848A1 (en) Controller, memory system, and operating methods thereof
US20190212946A1 (en) Data storage device and operating method thereof
KR20210014337A (en) Data storage device and operating method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant