Storage device, storage system, and method for operating a storage device
By dividing storage banks in storage devices and using free storage banks for data migration, the problem of limited performance of traditional SSD interfaces is solved, and the certainty of host device I/O execution time and performance optimization are achieved.
Patent Information
- Application Number
- CN201910762325.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-07
- Filing Date
- 2019-08-16
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-08-16
AI Technical Summary
The performance of traditional SSD interfaces such as SATA is limited and difficult to meet the needs of high data volume processing. The existing technology is difficult to perform internal operations while ensuring the determinism of the I/O execution time of the host device.
By dividing the storage blocks of multiple non-volatile storage devices into multiple storage banks in the storage device, and using a free storage bank for data migration operations, it ensures that I/O requests are independent of data migration operations and reduces the number of interruptions between sets. Performance interference.
It achieves deterministic execution time when performing I/O requests on the host device, hides the loss leveling of data migration operations on the host device, reduces performance interference, and improves the efficiency of the storage system.
Smart Images

Figure CN110888597B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the priority of Korean Patent Application No. 10-2018-0106913 filed on September 7, 2018 in the Korean Intellectual Property Office (KIPO), the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] Example embodiments relate generally to data processing and, more particularly, to storage devices, storage systems including storage devices, and / or methods of operating storage devices. Background Art
[0004] A solid state drive (SSD) is a typical example of a data storage device based on a flash memory device. Examples of interfaces used in data storage devices such as SSDs include Serial AT Attachment (SATA), Peripheral Component Interconnect Express (PCIe), Serial Attached Small Computer System Interface (SCSI) (SAS), etc. As the amount of data being processed gradually increases, the performance of SSDs gradually improves.
[0005] However, since traditional interfaces such as SATA may not be dedicated interfaces for data storage devices such as SSDs compared to other interfaces, the performance of SATA may be limited. Therefore, vendors have generated the Non-Volatile Memory Express (NVMe) specification as part of an effort to develop a standardized interface suitable for SSDs. NVMe is a register-level interface that performs communication between data storage devices such as SSDs and host software. NVMe is based on the traditional PCIe bus and is an interface designed or optimized for SSDs. Summary of the invention
[0006] Some example embodiments provide a storage device capable of performing internal operations while providing (eg, supporting and / or guaranteeing) deterministic input / output (I / O) execution times relative to a host device.
[0007] Some example embodiments provide a storage system capable of performing internal operations while providing (eg, supporting and / or guaranteeing) deterministic I / O execution times relative to a host device.
[0008] Some example embodiments provide a method of operating a storage device capable of performing internal operations while guaranteeing a deterministic I / O execution time with respect to a host device.
[0009] According to some example embodiments, a storage device includes a main memory including a plurality of nonvolatile memory devices, the main memory being configured to store data, and a storage controller configured to control the main memory. The storage controller is configured to: divide a plurality of storage blocks of the plurality of nonvolatile memory devices into a plurality of memory banks, assign each of the plurality of memory banks to one of a) a plurality of sets and b) a free memory bank, each of the plurality of sets including at least one memory bank, perform a data migration operation for transferring data between sets by using the free memory bank in response to an I / O request from an external host device while ensuring a specific input / output (I / O) execution time, and control the data migration operation so that the I / O request is independent of the data migration operation.
[0010] According to some example embodiments, a storage system includes a storage device including a main memory configured to store data and a storage controller configured to control the main memory, the main memory including a plurality of nonvolatile memory devices; and a host device configured to control the storage device in units of sets. The storage controller is configured to: divide a plurality of storage blocks of the plurality of nonvolatile memory devices into a plurality of memory banks, assign each of the plurality of memory banks to a) one of a plurality of sets and b) one of a free memory bank, each of the plurality of sets including at least one memory bank, perform a data migration operation for transferring data between sets by using one of the free memory banks in response to an I / O request from an external host device while ensuring an I / O execution time, and control the data migration operation so that the I / O request is independent of the data migration operation.
[0011] According to some example embodiments, in a method of operating a storage device, the storage device includes a main memory storing data and a storage controller controlling the main memory, a plurality of storage blocks of the main memory being divided into a plurality of sets and a free memory body, each of the plurality of sets including at least one memory body; and in response to an input / output (I / O) request from an external host device, a data migration operation for transferring data between the plurality of sets is performed by using a free memory body.
[0012] Therefore, the storage device can perform a data migration operation for transferring data between collections by using a free memory bank in response to an I / O request from a host device while providing (e.g., supporting and / or guaranteeing) a specific and / or predetermined I / O execution time relative to the host, and can control the data migration operation so that the I / O request is independent of the data migration operation. Therefore, the storage device can perform wear leveling as an operation hidden from the host device while reducing (e.g., minimizing) performance interference between collections. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Illustrative, non-limiting example embodiments will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings.
[0014] Figure 1 is a block diagram illustrating a data storage system (or storage system) according to some example embodiments.
[0015] Figure 2 is a diagram showing a method according to some example embodiments Figure 1 Block diagram of the host device in .
[0016] Figure 3 is a diagram showing a method according to some example embodiments Figure 1 Block diagram of the storage controller in .
[0017] Figure 4 According to some example embodiments Figure 1 An example of multiple channels and ways of main memory in .
[0018] Figure 5 It shows Figure 1 A block diagram of the relationship between a storage controller and a nonvolatile memory device in a storage device.
[0019] Figure 6 is a diagram showing a method according to some example embodiments Figure 5 Block diagram of a non-volatile memory device in FIG.
[0020] Figure 7 It shows Figure 6 A block diagram of a memory cell array in a nonvolatile memory device.
[0021] Figure 8 It shows Figure 7 Circuit diagram of one of the memory blocks.
[0022] Fig. 9 Shows Figure 8 An example of the structure of a cell string CS in a memory block of FIG.
[0023] Fig.10 Assignment to multiple collections Figure 1 An example of a non-volatile memory included in a storage device in .
[0024] Fig.11 Shows when Fig.10 When the collection in assigns a bank in nonvolatile memory Figure 3 An example of a mapping table in .
[0025] Fig.12The data migration operation performed by the storage device is shown before Figure 1 An example of the state of the storage system, and Fig.13 Shown in Fig.12 In the case Figure 3 An example of a mapping table in .
[0026] Fig.14 Shows the execution from Fig.12 An example of a data migration operation from a first storage body to an idle storage body in a storage system of Fig.15 Shown in Fig.14 In the case Figure 3 An example of a mapping table in .
[0027] Fig.16 Shows the execution from Fig.14 a data migration operation from a third storage body in the storage system to an idle storage body, and Fig.17 Shown in Fig.16 In the case Figure 3 An example of a mapping table in .
[0028] Fig.18 Shows the execution from Fig.16 a data migration operation from a fourth storage body in the storage system to an idle storage body, and Fig.19 Shown in Fig.18 In the case Figure 3 An example of a mapping table in .
[0029] Fig. 20 is a timing diagram for explaining the operation of a memory device according to some example embodiments.
[0030] Fig.21 is a flowchart illustrating a method of operating a storage device according to some example embodiments.
[0031] Fig. 22 is a diagram showing a method according to some example embodiments Figure 1 A block diagram of another example of a host device in a storage system.
[0032] Fig.23 shows that when the host device is deployed in Figure 1 An example of a storage system is a storage system in which a
[0033] Fig.24 and Fig.25 An interface between a host device and a storage device for securing a free memory bank in a storage system according to some example embodiments is illustrated.
[0034] Fig.26 is a block diagram illustrating a redundant array of independent disks (RAID) storage system according to some example embodiments. DETAILED DESCRIPTION
[0035] Various example embodiments will be described more fully hereinafter with reference to the accompanying drawings, in which some example embodiments are shown.
[0036] As shown below, each of the component blocks can be implemented in hardware, for example, in hardware configured to execute non-transient instructions. For example, unless otherwise specified, components such as controllers (e.g., storage controllers), engines (e.g., error detection and correction engines), managers (e.g., migration managers), etc. can be implemented as circuits, FPGAs, and / or processors configured to execute machine-readable instructions, such that the machine-readable instructions, when executed by the processor, cause the processor to perform specific functions.
[0037] Figure 1 is a block diagram illustrating a memory system (or data storage system) according to some example embodiments.
[0038] refer to Figure 1 , the storage system 10 includes a host device 100 and a solid state drive (SSD or storage device) 200.
[0039] The host device 100 may control the overall operation of the storage device (SD) 200. The host device 100 may exchange signals with the storage device 200. The signals exchanged between the host device 100 and the storage device 200 may include at least one of a command, an address, data, and the like.
[0040] The storage device 200 may include a storage controller 300 and a main memory 400, and the main memory 400 may include a plurality of nonvolatile memories 410-4k0. Each of the nonvolatile memories 410-4k0 may include a NAND flash memory. Here, k is a natural number greater than 2.
[0041] The memory controller 300 may exchange signals such as commands, addresses, data, etc. with the host device 100. The memory controller 300 may write data into a corresponding nonvolatile memory according to a command, or may read data from a corresponding nonvolatile memory.
[0042] The memory device 200 may further include a dynamic random access memory (DRAM) 220 connected to the memory controller 300 .
[0043] DRAM 220 may be used as a buffer area for temporarily storing data received from host device 100 and / or temporarily storing data read from non-volatile memory 410-4k0. DRAM 220 may also be used to drive software for management (e.g., effective management of non-volatile memory 410-4k0). DRAM 220 may be used to store metadata received from host device 100 and / or may be used to store cache data. In some embodiments, storage device 200 may be implemented by enhancing or replacing DRAM with a volatile memory such as SRAM.
[0044] A plurality of nonvolatile memories 410-4k0 may be used as storage media of the storage device 200. The nonvolatile memories 410-4k0 may be connected to the storage controller 300 through a plurality of channel groups CHG1-CHGk. Each of the channel groups CHG1-CHGk may include at least one channel. One or more nonvolatile memories may be connected to one channel group. The nonvolatile memories connected to one channel group may be connected to the same data bus.
[0045] Although not shown, the storage device 200 may further include a connection pad to be connected to the host device 100. Through the connection pad, the storage device 200 can be attached to and / or detached from the host device 100, for example, easily attached and / or detached. The connection pad may be formed inside the storage device 200, or may be formed outside the storage device 200 in the form of a connector. In some example embodiments, the storage device 200 may not include a connection pad, and may be connected to the host device 100 through a wiring process.
[0046] Figure 2 is a diagram showing a method according to some example embodiments Figure 1 Block diagram of the host device in .
[0047] refer to Figure 2 The host device 100 may include a processor 110, a read only memory (ROM) 120, a host memory 130, a user interface (I / F) 140, a storage interface (I / F) 150, and / or a bus 165. The host device 100 may further include a compression / decompression engine 160.
[0048] The bus 165 may refer to a transmission channel through which data is transmitted between the processor 110 , the ROM 120 , the host memory 130 , the user interface 140 , the storage interface 150 , and / or the compression / decompression engine 160 of the host device 100 .
[0049] The ROM 120 may store various application programs, for example, an application program supporting storage protocols such as Advanced Technology Attachment (ATA), Small Computer System Interface (SCSI), Embedded MultiMedia Card (eMMC), and Universal Flash Storage (UFS) protocols and NVMe.
[0050] The host memory 130 may temporarily store data or programs.
[0051] The storage interface 150 may include an interface supporting storage protocols such as SATA, SAS, eMMC, UFS, and / or NVMe.
[0052] The user interface 140 may be or include a physical or virtual medium, a computer program, etc., for exchanging information between a user and the host device 100, and may include physical hardware and logical software. For example, the user interface 140 may include an input device for allowing a user to manipulate the host device 100 and / or an output device for outputting a result of processing the user input.
[0053] The processor 110 may control the overall operation of the host device 100. The processor 110 may generate a request and / or command for storing data in the storage device 200 or a request and / or command for reading data from the storage device 200 by using an application stored in the ROM 120, and send the request to the storage device 200 via the storage interface 150.
[0054] Figure 3 is a diagram showing a method according to some example embodiments Figure 1 00 is a block diagram of a storage controller 300 in FIG.
[0055] refer to Figure 3 , the storage controller 300 may include a processor 310 such as a CPU, a buffer memory 320, an error correction code (ECC) engine 330, a host interface (I / F) 340, a migration manager 360, a non-volatile memory interface (NVM I / F) 350 and / or a bus 315.
[0056] The bus 315 may refer to a transmission channel through which data is transmitted between the processor 310, the buffer memory 320, the ECC engine 330, the host interface 340, the migration manager 360, and the non-volatile memory interface 350 of the storage controller 300. The processor 310 may perform operations for data exchange between the host device 100 and the non-volatile memories 410~4k0.
[0057] The host interface 340 is connected to the host device 100, and the non-volatile memory interface 350 is connected to the non-volatile memories 410-4k0. The processor 310 can communicate with the host device 100 via the host interface 340. The host interface 340 can be implemented using (but not limited to) a SATA interface, a parallel advanced technology attachment (PATA) interface, a USB or SAS interface, an eMMC interface, a UFS interface, and / or an eMMC interface.
[0058] The processor 310 may communicate with the nonvolatile memories 410~4k0 through the nonvolatile memory interface 350. The nonvolatile memory interface 350 may be connected to each of the nonvolatile memories 410~4k0.
[0059] The ECC engine 330 may generate an error correction code (ECC) for data received from the host device 100 using various engines during a write operation. During a read operation, the ECC engine 330 may perform error detection and error correction on data read from the nonvolatile memories 4104k0 to provide data to the host device 100.
[0060] The buffer memory 320 may temporarily store one or more of the original data, the compressed data, and the read compressed data. In addition, the buffer memory 320 may include a mapping table (MT) 325, which stores mapping information for mapping a logical memory address to a physical memory address of a memory, and a plurality of memory blocks of the non-volatile memory 410-4k0 are divided into memory. In addition, the mapping table 325 may store a set identifier of a set to distinguish a physical memory.
[0061] The host device 100 may access the nonvolatile memories 410 ˜ 4 k0 in units of sets.
[0062] When the storage device 200 receives an input / output (I / O) request from the host device 100, the migration manager 360 and / or the storage controller 300 provides (e.g., ensures and / or guarantees) a deterministic I / O execution time relative to the host device 100, performs a data migration operation for transferring data between sets by using an idle memory bank, and controls the data migration operation so that the I / O request is independent of (e.g., unrelated to) the data migration operation. For example, the migration manager 360 controls the data migration operation so that the I / O request is not affected by (e.g., not affected by) the data migration operation. The migration manager 360 may include a program / erase (P / E) cycle counter 363 that counts program / erase cycles for each memory bank in the memory bank and / or each set in the set.
[0063] Providing (e.g., ensuring and / or guaranteeing) a deterministic I / O execution time relative to the host device 100 means that the execution time of the I / O operation between the host device 100 and the storage device 200 is not affected by the data migration operation, is not changed by the data migration operation, and / or is not delayed by the data migration operation. For example, the I / O operation between the host device 100 and the storage device 200 is executed according to the time interval defined in the specification (e.g., the NVMe specification), while the data migration operation is executed inside the storage device 200.
[0064] The program / erase cycle counter 363 may count program / erase cycles associated with requests from the host device 100 for each of the memory banks, and may count program / erase cycles associated with data migration operations for each of the memory banks. The program / erase cycle counter 363 may store the counted program / erase cycles for each of the memory banks in the mapping table 325.
[0065] Figure 4 According to some example embodiments Figure 1 An example of multiple channels and ways of main memory in .
[0066] refer to Figure 4 , the nonvolatile memory 410~4k0 is coupled to the corresponding channel group in the plurality of channel groups CHG1~CHGk. The plurality of nonvolatile memory devices 411~41m, 421~42m, ..., 4k1~4km coupled to the corresponding channel group in the plurality of channel groups CHG1~CHGk can form a plurality of roads: road 1 to road m. Here, m is a natural number greater than 2. That is, each of the plurality of nonvolatile memory devices 411~41m, 421~42m, ..., 4k1~4km can be respectively included in the corresponding road in the m roads.
[0067] A way represents a unit for dividing nonvolatile memory devices sharing the same channel. Each of the nonvolatile memory devices may be identified according to a channel number and a way number.
[0068] Figure 5 It shows Figure 1 1 is a block diagram of a relationship between a storage controller 300 and a nonvolatile memory device 411 in a storage device 200.
[0069] refer to Figure 5The nonvolatile memory device 411 may perform an erase operation, a program operation, and / or a write operation under the control of the memory controller 300. The nonvolatile memory device 411 may receive a command CMD, an address ADDR, and data DATA from the memory controller 300 through an input / output line to perform these operations.
[0070] In addition, the nonvolatile memory device 411 may receive a control signal CTRL from the memory controller 300 through a control line and receive power PWR from the memory controller 300 through a power line. In addition, the nonvolatile memory device 411 may provide a state signal RnB to the memory controller 300 through a control line.
[0071] Figure 6 is a diagram showing a method according to some example embodiments Figure 5 0048. Block diagram of the non-volatile memory device 411 in FIG.
[0072] refer to Figure 6 , the nonvolatile memory device 411 includes a memory cell array 420 , an address decoder 450 , a page buffer circuit 430 , a data input / output (I / O) circuit 440 , a control circuit 460 , and a voltage generator 470 .
[0073] The memory cell array 420 may be coupled to the address decoder 450 through a string selection line SSL, a plurality of word lines WL, and a ground selection line GSL. In addition, the memory cell array 420 may be coupled to the page buffer circuit 430 through a plurality of bit lines BL.
[0074] The memory cell array 420 may include a plurality of memory cells coupled to a plurality of word lines WL and a plurality of bit lines BL.
[0075] In some example embodiments, the memory cell array 420 may be or may include a three-dimensional memory cell array formed on a substrate in a three-dimensional structure (e.g., a vertical structure). In this case, the memory cell array 420 may include a vertical cell string oriented vertically such that at least one memory cell is located above another memory cell.
[0076] In some example embodiments, the memory cell array 420 may be or may include a two-dimensional memory cell array formed on a substrate in a two-dimensional structure (or a horizontal structure).
[0077] Figure 7 It shows Figure 6 4 is a block diagram of a memory cell array 420 in a nonvolatile memory device.
[0078] refer to Figure 7, the memory cell array 420 may include a plurality of memory blocks BLK1 to BLKz. The memory blocks BLK1 to BLKz extend along first to third directions D1, D2, and D3. In some example embodiments, the memory blocks BLK1 to BLKz are composed of Figure 6 The address decoder 450 selects the memory block BLK corresponding to the block address among the memory blocks BLK1 to BLKz.
[0079] Figure 8 It shows Figure 7 Circuit diagram of one of the memory blocks.
[0080] Figure 8 The memory block BLKi may be formed in a three-dimensional structure (or a vertical structure) on the substrate SUB. For example, a plurality of memory cell strings included in the memory block BLKi may be formed in a direction PD perpendicular to the substrate SUB.
[0081] refer to Figure 8 , the memory block BLKi may include memory cell strings NS11 to NS33 coupled between bit lines BL1, BL2, and BL3 and a common source line CSL. Each of the memory cell strings NS11 to NS33 may include a string selection transistor SST, a plurality of memory cells MC1 to MC8, and a ground selection transistor GST. Figure 8 , it is shown that each of the memory cell strings NS11 to NS33 includes eight memory cells MC1 to MC8. However, the inventive concept is not limited thereto. In some example embodiments, each of the memory cell strings NS11 to NS33 may include any number of memory cells.
[0082] The string selection transistor SST may be connected to the corresponding string selection lines SSL1 to SSL3. The plurality of memory cells MC1 to MC8 may be connected to the corresponding word lines WL1 to WL8, respectively. The ground selection transistor GST may be connected to the corresponding ground selection lines GSL1 to GSL3. The string selection transistor SST may be connected to the corresponding bit lines BL1, BL2, and BL3, and the ground selection transistor GST may be connected to the common source line CSL.
[0083] Word lines (eg, WL1) having the same height may be connected in common, and ground selection lines GSL1 to GSL3 and string selection lines SSL1 to SSL3 may be separated. Figure 8 , it is shown that the memory block BLKi is coupled to eight word lines WL1 to WL8 and three bit lines BL1 to BL3. However, the inventive concept is not limited thereto. In some example embodiments, the memory cell array 420 may be coupled to any number of word lines and bit lines.
[0084] Fig. 9 Shows Figure 8 An example of the structure of a cell string CS in a memory block of FIG.
[0085] refer to Figure 8 and Fig. 9 , a pillar PL is disposed on the substrate SUB such that the pillar PL extends in a direction perpendicular to the substrate SUB to contact the substrate SUB. Fig. 9 Each of the ground selection line GSL1, word lines WL1 to WL8, and string selection line SSL1 shown in FIG. 1 may be formed of a conductive material (eg, a metal material) parallel to the substrate SUB. The pillar PL may contact the substrate SUB through the conductive material forming the string selection line SSL1, word lines WL1 to WL8, and ground selection line GSL1.
[0086] Fig. 9 A cross-sectional view taken along line AA' is also shown in FIG. In some example embodiments, a cross-sectional view of a first memory cell MC1 corresponding to a first word line WL1 is shown. The pillar PL may include a cylinder BD. An air gap AG may be defined inside the body BD.
[0087] The body BD may include P-type silicon and may be a region where a channel will be formed. The pillar PL may also include a cylindrical tunnel insulating layer TI surrounding the body BD and a cylindrical charge trap layer CT surrounding the tunnel insulating layer TI. The blocking insulating layer BI may be disposed between the first word line WL1 and the pillar PL. The body BD, the tunnel insulating layer TI, the charge trap layer CT, the blocking insulating layer BI, and the first word line WL1 may constitute or be included in a charge trap type transistor formed in a direction perpendicular to the substrate SUB or the top surface of the substrate SUB. The string selection transistor SST, the ground selection transistor GST, and other memory cells may have the same structure as the first memory cell MC1.
[0088] return Figure 6 , the control circuit 460 may receive a command (signal) CMD and an address (signal) ADDR from the storage controller 300, and may control an erase cycle, a program cycle, and / or a read operation of the nonvolatile memory device 411 based on the command signal CMD and the address signal ADDR. A program cycle may include a program operation and a program verification operation. An erase cycle may include an erase operation and an erase verification operation.
[0089] For example, the control circuit 460 may generate a control signal CTL for controlling the voltage generator 470 based on the command signal CMD and generate a row address R_ADDR and a column address C_ADDR based on the address signal ADDR. The control circuit 460 may provide the row address R_ADDR to the address decoder 450 and provide the column address C_ADDR to the data input / output circuit 440.
[0090] The address decoder 450 may be coupled to the memory cell array 420 through the string selection line SSL, the plurality of word lines WL, and the ground selection line GSL. During a program operation or a read operation, the address decoder 450 may determine one of the plurality of word lines WL as a first word line (e.g., a selected word line) and determine the remaining word lines of the plurality of word lines WL except the first word line as unselected word lines based on the row address R_ADDR.
[0091] The voltage generator 470 may generate a word line voltage VWL required for the operation of the nonvolatile memory device 411 based on the control signal CTL. The voltage generator 470 may receive power PWR from the memory controller 300. The word line voltage VWL may be applied to a plurality of word lines WL through the address decoder 450.
[0092] For example, during an erase operation, the voltage generator 470 may apply an erase voltage to a well of a memory block and may apply a ground voltage to all word lines of the memory block. During an erase verification operation, the voltage generator 470 may apply an erase verification voltage to all word lines of the memory block or sequentially apply an erase verification voltage to word lines one by one.
[0093] For example, during a program operation, the voltage generator 470 may apply a program voltage to the first word line and may apply a program pass voltage to unselected word lines. In addition, during a program verification operation, the voltage generator 470 may apply a program verification voltage to the first word line and may apply a verification pass voltage to unselected word lines.
[0094] Furthermore, during a read operation, the voltage generator 470 may apply a read voltage to a first word line, and may apply a read pass voltage to unselected word lines.
[0095] The page buffer circuit 430 may be coupled to the memory cell array 420 through a plurality of bit lines BL. The page buffer circuit 430 may include a plurality of page buffers. In some example embodiments, one page buffer may be connected to one bit line. In some example embodiments, one page buffer may be connected to two or more bit lines.
[0096] The page buffer circuit 430 may temporarily store data to be programmed in a selected page or data read out from a selected page.
[0097] The data input / output circuit 440 may be coupled to the page buffer circuit 430 through the data line DL. During a program operation, the data input / output circuit 440 may receive data DATA from the memory controller 300 and provide the data DATA to the page buffer circuit 430 based on the column address C_ADDR received from the control circuit 460. During a read operation, the data input / output circuit 440 may provide the data DATA stored in the page buffer circuit 430 to the memory controller 300 based on the column address C_ADDR received from the control circuit 460.
[0098] In addition, the page buffer circuit 430 and the data input / output circuit 440 read data from the first region of the memory cell array 420 and write the read data to the second region of the memory cell array 420. For example, the page buffer circuit 430 and the data input / output circuit 440 may perform a copy-back operation.
[0099] The control circuit 460 may include a status signal generator 465 , and the status signal generator 465 may generate a status signal RnB indicating that each of a program operation, an erase operation, and a read operation has been completed and / or is in progress.
[0100] Fig.10 Assignment to multiple collections Figure 1 An example of a non-volatile memory included in a storage device in .
[0101] refer to Fig.10 , memory blocks included in the nonvolatile memories 410 ˜ 4k0 may be divided into a plurality of memory banks BNK1 ˜ BNK9 .
[0102] Each of the plurality of memory banks BNK1 ˜ BNK9 may include memory blocks BLK1 ˜ BLK4 .
[0103] At a given time, the memory controller 300 may perform only one of a read operation, a program operation, and an erase operation on one of the plurality of memory banks BNK1 to BNK9. Each of the plurality of memory banks BNK1 to BNK9 may include a memory element that generates a delay due to interference of the read operation, the program operation, and the erase operation in the same memory bank.
[0104] The host device 100 may access some of the memory banks BNK1 to BNK9 in units of such a set.
[0105] The host device 100 may assign the memory banks BNK1 and BNK2 to the first set SET1, may assign the memory banks BNK3 and BNK4 to the second set SET2, may assign the memory banks BNK5 and BNK6 to the third set SET3, may assign the memory banks BNK7 and BNK8 to the fourth set SET4, and may access the memory banks BNK1 to BNK8 in units of sets. The memory bank BNK9 that is not assigned to a set by the host device 100 may be used as an idle memory bank FBNK in the storage device 200.
[0106] A set means a group of storage bodies that is logically and / or physically separated from other sets. The performance / operation of one set is not affected by the performance / operation of another set. The host device 100 can store separated (e.g., required to be separated) data in different sets among the sets SET1 to SET4, and can access the data stored in different sets according to the application without interfering with the performance.
[0107] Fig.11 Shows when Fig.10 When the collection in assigns a bank in nonvolatile memory Figure 3 An example of mapping table 325 in FIG.
[0108] refer to Fig.11 The mapping table 325 can store a set identifier SET_ID for identifying each set in the set, a logical storage body number LBKN of each storage body in the storage body, a physical storage body number PBNK of each storage body in the storage body, and a program / erase cycle P / E CYCLE of each storage body in the storage body.
[0109] The physical bank number PBNK (e.g., physical bank address) of the bank BNK1 may be assigned to the first logical bank number LBKN1 (e.g., logical bank address) of the set SET1, and the physical bank number of the bank BNK2 may be assigned to the second logical bank number LBKN2 of the set SET1. The physical bank number PBNK of the bank BNK3 may be assigned to the first logical bank number LBKN1 of the set SET2, and the physical bank number of the bank BNK4 may be assigned to the second logical bank number LBKN2 of the set SET2. The above mapping may be similarly applied to the banks BNK5 to BNK8.
[0110] Fig.12 The data migration operation performed by the storage device is shown before Figure 1 An example of the state of the storage system, and Fig.13 Shown in Fig.12 In the case Figure 3 An example of a mapping table in .
[0111] refer to Fig.12 , the host device 100 may assign applications APP1-APP4 to a corresponding one of the sets SET1-SET4 according to the characteristics of the applications APP1-APP4 running on the host device 100. As described above, the host device 100 may assign memory banks BNK1 and BNK2 to the first set SET1, memory banks BNK3 and BNK4 to the second set SET2, memory banks BNK5 and BNK6 to the third set SET3, and memory banks BNK7 and BNK8 to the fourth set SET4.
[0112] For illustration purposes, assume that a first memory bank BNK1 includes memory blocks BLK11, BLK13, BLK15, and BLK17, a second memory bank BNK2 includes memory blocks BLK12, BLK14, BLK16, and BLK18, a third memory bank BNK3 includes memory blocks BLK21, BLK23, BLK25, and BLK27, and a fourth memory bank BNK4 includes memory blocks BLK22, BLK24, BLK26, and BLK28.
[0113] The application APP1 may be write-intensive, and the first program / erase cycle of the memory banks BNK1 and BNK2 in the first set SET1 has a value of 50, for example, 50 program / erase cycles have been performed on BNK1 and BNK2. The application APP2 may be read-intensive, and the second program / erase cycle of the memory banks BNK3 and BNK4 in the second set SET2 has a value of 2, for example, 2 program / erase cycles have been performed on BNK3 and BNK4. Since the first program / erase cycle of the first set SET1 is greater than the second program / erase cycle of the second set SET2, when the program / erase cycle of the first set SET1 continues to increase, the life and / or performance of the main memory 400 may be reduced due to the first set SET1.
[0114] When an imbalance occurs between program / erase cycles of a set, the migration manager 360 in the storage controller 300 can provide (e.g., ensure / guarantee) a more deterministic I / O execution time to the host device 100, and can perform data migration operations for transferring data between sets by using a free storage body FBNK within the storage device 200.
[0115] Fig.14 Shows the execution from Fig.12 An example of a data migration operation from a first storage body to an idle storage body in a storage system of Fig.15 Shown in Fig.14 In the case Figure 3 An example of a mapping table in .
[0116] refer to Fig.14 and Fig.15 , the migration manager 360 migrates the first data stored in the first memory bank BNK1 of the MIG to the ninth memory bank BNK9 as the free memory bank FBNK, and when the migration of the first data is completed, the physical memory bank address of the ninth memory bank BNK9 is mapped to the logical memory bank address LBK1 of the first set SET1, and the memory blocks BLK11, BLK13, BLK15 and BLK17 of the first memory bank BNK1 are erased, and the first data is erased. Fig.15 As shown, the mapping table 325 is updated by recording the first memory bank BNK1 as a free memory bank FBNK in the mapping table 325 .
[0117] exist Fig.14 and Fig.15 In the case of , the program / erase cycle of the ninth memory bank BNK9 mapped to the first logical memory bank address LBK1 of the first set SET1 may have a value of 1. In addition, since the program / erase operation is performed only in the free memory bank FBNK, there is no performance interference between the sets.
[0118] Fig.16 FIG. 24 shows a data migration operation performed from the third storage body in the storage system of FIG. 24 to the idle storage body, and Fig.17 Shown in Fig.16 In the case Figure 3 An example of a mapping table in .
[0119] refer to Fig.16 and Fig.17 , the migration manager 360 migrates the second data stored in the MIG third memory bank BNK3 to the first memory bank BNK1 as the free memory bank FBNK, and when the migration of the second data is completed, the physical memory bank address of the first memory bank BNK1 is mapped to the first logical memory bank address LBK1 of the second set SET2, and the memory blocks BLK21, BLK23, BLK25 and BLK27 of the third memory bank BNK3 are erased, and as shown in FIG. Fig.17 As shown, the mapping table 325 is updated by recording the third memory bank BNK3 as a free memory bank FBNK in the mapping table 325 .
[0120] exist Fig.16 and Fig.17 In the case of , the program / erase cycle of the first memory bank BNK1 mapped to the first logical memory bank address LBK1 of the second set SET2 may have a value of 51. In addition, since the program / erase operation is performed only in the free memory bank FBNK, there is no performance interference between the sets.
[0121] Fig.18 Shows the execution from Fig.16 a data migration operation from a fourth storage body in the storage system to an idle storage body, and Fig.19 Shown in Fig.18 In the case Figure 3 An example of a mapping table in .
[0122] exist Fig.18 In the example, it is assumed that the third data stored in the second memory bank BNK2 has been migrated to the third memory bank BNK3.
[0123] refer to Fig.18 and Fig.19 , the migration manager 360 migrates the fourth data stored in the MIG fourth memory bank BNK4 to the second memory bank BNK2 as the free memory bank FBNK, and when the migration of the fourth data is completed, the physical memory bank address of the second memory bank BNK2 is mapped to the second logical memory bank address LBK2 of the second set SET2, and the memory blocks BLK22, BLK24, BLK26 and BLK28 of the fourth memory bank BNK4 are erased, and as shown in FIG. Fig.19 As shown, the mapping table 325 is updated by recording the fourth memory bank BNK4 as a free memory bank FBNK in the mapping table 325 .
[0124] exist Fig.18 and Fig.19 In the case of , the program / erase cycle of the second memory bank BNK2 mapped to the second logical memory bank address LBK2 of the second set SET2 may have a value of 51. In addition, since the program / erase operation is performed only in the free memory bank FBNK, there is no performance interference between the sets.
[0125] As reference Figures 12 to 19 As described, when an imbalance occurs between program / erase cycles of a set, the migration manager 360 in the storage controller 300 can perform wear leveling by executing a data migration operation for transferring data between sets within the storage device 200. The data migration operation can be hidden from the host device 100.
[0126] When the memory controller 300 receives a read request for the first data from the host device 100 during migration of the first data from the first memory bank BNK1 to the ninth memory bank BNK9 , the memory controller 300 may provide a read command corresponding to the read request to the first memory bank BNK1 and the ninth memory bank BNK9 simultaneously.
[0127] In response to the read command, the memory controller 300 may provide the first data received earlier from one of the first memory bank BNK1 and the ninth memory bank BNK9 to the host device 100. In response to the read command, the memory controller 300 may ignore the first data received later from one of the first memory bank BNK1 and the ninth memory bank BNK9 instead of providing the first data to the host device 100.
[0128] The storage controller 300 may mutually exclusively execute a read command on the first memory bank BNK1 (eg, a source memory bank) and a program / erase command on the ninth memory bank BNK9 (eg, a destination memory bank) to perform a data migration operation. In order to mutually exclusively execute commands, Figure 3 The CPU 310 in may include a scheduler that mutually exclusively schedules commands related to a source memory bank and a destination memory bank.
[0129] To perform the data migration operation, the memory controller 300 may apply a read command to the first memory bank BNK1 (eg, a source memory bank), and may apply a program / erase command to the ninth memory bank BNK9 (eg, a destination memory bank).
[0130] The storage controller 300 may perform the data migration operation by using one free memory bank by dynamically assigning the physical memory bank address of the memory bank to the logical memory bank address of the set.
[0131] Fig. 20 is a timing diagram for explaining the operation of a memory device according to some example embodiments.
[0132] exist Fig. 20 In the embodiment, it is assumed that during the migration of first data from the first memory bank BNK1 to the ninth memory bank BNK9 (ie, the free memory bank FBNK), the host device 100 issues a read request.
[0133] refer to Fig. 20 During the migration of the first data from the first memory bank BNK1 to the ninth memory bank BNK9 (eg, the free memory bank FBNK), the memory controller 300 may mutually exclusively execute a read command RD on the first memory bank BNK1 and a program / erase command on the ninth memory bank BNK9.
[0134] That is, when the memory controller 300 applies a read command RD to the first memory bank BNK1 at a first time point t1, applies an erase command ERASE to the ninth memory bank BNK9 in a mutually exclusive manner with the read command RD to the first memory bank BNK1 at a second time point t2, and receives a read request at time point t2, the first memory bank BNK1 is in an idle state IDLS and the ninth memory bank BNK9 is in an operating state OPS. Therefore, the ninth memory bank BNK9 ignores the read request, and the first memory bank BNK1 accepts the read request to provide corresponding data to the memory controller 300.
[0135] In addition, when the memory controller 300 applies the read command RD to the first memory bank BNK1 at the third time point t3 and exclusively applies the program command PGM to the ninth memory bank BNK9 at the fourth time point t4, and receives the read request at the third time point t3, the first memory bank BNK1 is in the operation state OPS and the ninth memory bank BNK9 is in the idle state IDLS. Therefore, the first memory bank BNK1 ignores the read request, and the ninth memory bank BNK9 accepts the read request to provide the memory controller 300 with corresponding data.
[0136] Fig.21 is a flowchart illustrating a method of operating a storage device according to some example embodiments.
[0137] refer to Figures 1 to 21 In a method of operating a storage device 200 including a main memory 400 storing data and a storage controller 300 controlling the main memory 400, the storage controller 300 divides a plurality of storage blocks of the main memory 400 into a plurality of sets and an idle storage body (S100), and each of the sets includes at least one storage body.
[0138] In response to an input / output (I / O) request from the host device 100, the storage controller 300 performs a data migration operation for transferring data between sets by using an idle memory bank while ensuring a predetermined (deterministic) I / O execution time relative to the host device 100 (S200).
[0139] The data migration operation may be hidden from the host device 100 .
[0140] The memory controller 300 may perform wear leveling on sets having different program / erase cycles within the memory device 200 by performing a data migration operation.
[0141] Fig. 22 is a diagram showing a method according to some example embodiments Figure 1 A block diagram of another example of a host device in a storage system.
[0142] Fig. 22 The host device 100b may support virtual functions. For example, when the host device 100b is included in Figure 1 When in the storage system 10, the storage system 10 can support the virtual function of single root IO virtualization (SR-IOV) and support the interface solution according to the NVMe protocol.
[0143] refer to Fig. 22 , the host device 100 b includes a processor (ie, host core) 110 , a virtualization intermediary (VI) 170 , a root complex (RC) 180 , a host memory 130 , and a storage interface (I / F) 150 .
[0144] The processor 110 may include a physical function (PF) 110a and a plurality of virtual functions (VFs) 111-115. The physical function 110a may be a core or a processor as physical hardware. Each of the VFs 111-115 may be a virtualized core or a processor generated by a virtualization operation of SR-IOV. Each of the VFs 111-115 may independently drive an operating system (OS) or an application. For example, an OS driven by a virtual function may be referred to as a client OS.
[0145] The virtualization agent 170 may be connected to the processor 110 and the root complex 180 and perform the following functions: execute the VFs 111 ˜ 115 or manage the VFs 111 ˜ 115. For example, the virtualization agent 170 may perform the function of transmitting and managing address information for a virtualization operation of SR-IOV.
[0146] The root complex 180 may represent the root of the hierarchy. The root complex 180 is connected to the virtualization intermediary 170, the host memory 130, and the storage interface 150. The root complex 180 may perform a function of connecting the processor 110 to the host memory 130 or connecting the processor 110 and the host memory 130 to the storage interface 150.
[0147] The host memory 130 may be connected to the virtualization intermediary 170, the processor 110, and the storage interface 150 through the root complex 180. The host memory 130 may be used as a working memory for the physical function 110a in the processor 110 or each of the VFs 111-115. For example, an application program, a file system, and a device driver may be loaded into the host memory 130.
[0148] The storage interface 150 is connected to the root complex 180 and provides communication between the host device 100b and the storage device 200. For example, the storage interface 150 may provide queue-based commands and data to the storage device 200 according to the NVMe protocol scheme, or receive information of commands and data processed by the storage device 200.
[0149] For example, Fig. 22 As shown in , in order to support the SR-IOV virtual function in the NVMe protocol interface scheme, the host memory 130 may provide a PF administrator queue storage area PF A_Q area 130a for storing the administrator queue (AQ) of the physical function 110a, a PF input / output queue storage area PF I / O_Q area 130b for storing the input / output queue of the physical function 110a, and a plurality of VF input / output queue storage areas VF1 I / O_Q area 131 to VF5 I / O_Q area 135 for storing the input / output queue of the virtualization function. For example, a circular queue scheme mainly used in the NVMe protocol interface scheme may be used to store queue commands in each storage area.
[0150] Fig.23 shows that when the host device is deployed in Figure 1 An example of a storage system when the storage system is in the storage system.
[0151] refer to Figure 1 and Fig.23 The host device 100 or 100b controls the storage device 200 in units of sets, and the host device 100 or 100b assigns VFs 111 to 115 in the processor 110 to a plurality of sets SET1 to SET5 including at least one memory bank that distinguishes a plurality of storage blocks in the main memory 400.
[0152] exist Fig.23 , the memory banks indicated by 8 and 16 that are not assigned to the sets SET1 to SET5 are unused memory banks UN_BNK and can be used as free memory banks FBNK.
[0153] Fig.24 and Fig.25 An interface between a host device and a storage device in a storage system according to some example embodiments is shown for ensuring a free memory bank.
[0154] refer to Fig.24 , when the memory banks represented by 8 and 16 are as Fig.23When the unused memory banks UN_BNK not assigned to the sets SET1 to SET5 are shown in FIG, in order to ensure the free memory banks, the host device 100 may provide the memory controller 300 with the unused memory bank lock command LK_UNBK_CMD to assign the memory banks not assigned to the virtual functions VFs 111 to 115 represented by 8 and 16 to the free memory banks. That is, the memory controller 300 may reserve the memory banks represented by 8 and 16 by applying the unused memory bank lock command LK_UNBK_CMD without opening the memory banks represented by 8 and 16 to the user.
[0155] The memory controller 300 may perform a data migration operation by using one of the unused memory banks indicated by 8 and 16 as a free memory bank.
[0156] If the storage device 200 does not include an unused memory bank, the storage controller 300 may return an error message to the host device 100 in response to the unused memory bank lock command LK_UNBK_CMD. If the storage device 200 includes an unused memory bank, the storage controller 300 may abort set assignment and user I / O requests to the unused memory bank.
[0157] In order to release the assigned free memory bank, the host device 100 may provide the unused memory bank unlock command UNLK_UNBK_CMD to the memory controller 300. In this case, when data migration is in progress, the memory controller 300 may abort the unused memory bank unlock command UNLK_UNBK_CMD.
[0158] See also Fig.25 , when the storage banks represented by 3, 4, 11, and 12 are assigned to the virtual function VF2, the virtual function VF2 is activated, and then Fig.23 In order to ensure a free memory bank, the host device 100 may provide an unused set lock command LK_MSET_CMD to the memory controller 300.
[0159] In this case, in response to not using the set lock command LK_MSET_CMD, the storage controller 300 may perform a data migration operation by using one of the storage bodies not assigned to the set represented by 3, 4, 11, and 12. When an I / O request for the storage bodies represented by 3, 4, 11, and 12 is received from a user, the storage controller 300 may abort the I / O request.
[0160] To release the assigned free memory banks assigned to the deactivated virtual functions, the host device 100 may provide the memory controller 300 with an unused set unlock command UNLK_MSET_CMD. When receiving an I / O request for a memory bank released from the free memory banks from a user, the memory controller 300 may accept the I / O request.
[0161] Fig.26 is a block diagram illustrating a redundant array of independent disks (RAID) storage system according to some example embodiments.
[0162] refer to Fig.26 , the RAID storage system 600 may include a RAID controller 610, a non-volatile random access memory (NVRAM) 620, a plurality of storage devices SD1 710 to SDn 7n0, and a bus 630. The components of the RAID storage system 600 may be connected to each other to communicate with each other through the bus 630.
[0163] RAID methods may include: in order to prevent data loss when some storage devices are damaged, a method of recovering data by using a mirror-based technology and a method of recovering data by using a parity-based technology. For example, a parity-based RAID method may be applied to the RAID storage system 600.
[0164] The storage devices 710 to 7n0 may store various types of data and may be implemented by a solid state drive, an embedded multimedia card (eMMC), or a universal flash storage (UFS).
[0165] In some example embodiments, the storage devices 710 to 7n0 may be implemented by a solid state drive. The solid state drive may implement the storage devices 710 to 7n0 by using a plurality of nonvolatile memory chips. In some example embodiments, the solid state drive may implement the storage device by using a plurality of flash memory chips.
[0166] Each of the storage devices 710 to 7n0 may include a corresponding one of the migration managers 711 to 7n1. Each of the migration managers 711 to 7n1 may perform a data migration operation inside the corresponding storage device.
[0167] Each of the storage devices 710 to 7n0 may use Figure 1 The storage device 200 in the set may perform wear leveling internally by using a free storage body to perform a data migration operation for transferring data between sets.
[0168] The NVRAM 620 may be or may include a RAM, and data stored in the RAM may still exist even after the power is turned off. In some example embodiments, the NVRAM 620 may be implemented by a phase change RAM (PRAM), a ferroelectric RAM (FRAM), or a magnetic RAM (MRAM). In some example embodiments, the NVRAM 620 may also implement power applied to a dynamic random access memory (DRAM) or a static RAM (SRAM) as a volatile memory by using a battery or a capacitor. For example, when the system power is turned off, the DRAM or SRAM is operated by a battery or a capacitor, and the data stored in the DRAM or SRAM is transferred to a storage device as a non-volatile storage space, and thus the data may be retained. Therefore, even if the system power is turned off, the data stored in the DRAM or SRAM may be retained.
[0169] A cache area in which data to be written to the plurality of storage devices 710 to 7n0 is stored for each stripe unit may be allocated in the NVRAM 620. A stripe unit may refer to a group of storage blocks, and each storage block may be included in each of the plurality of storage banks. A cache area allocated in the NVRAM 620 for storing data to be written to the plurality of storage devices 710 to 7n0 for each stripe unit may be referred to as a stripe cache area.
[0170] The NVRAM 620 may store mapping table information used in the RAID storage system 600. The mapping table information may include address mapping table information that converts a logical address into a physical address and / or stripe mapping table information that indicates stripe grouping information. The stripe grouping information may include storage blocks that form stripes respectively. The stripe mapping table information may also include valid page ratio information corresponding to each stripe.
[0171] The RAID controller 610 can control multiple storage devices 710 to 7n0 based on a RAID environment. In some example embodiments, the RAID environment can be a log-structured RAID environment. In a log-structured RAID environment, when data written to the storage devices 710 to 7n0 is updated, the RAID controller 610 can control the RAID storage system 600 to write the data in a new location in a log form without overwriting the data.
[0172] The RAID controller 610 may register each piece of storage block location information of the storage devices 710 to 7n0 forming the stripe in the stripe mapping table.
[0173] The RAID controller 610 may perform an address conversion process and / or a stripe grouping process by using the mapping table information stored in the NVRAM 620. For example, the RAID controller 610 may convert a logical address into a physical address by using the address mapping table information. The RAID controller 610 may perform garbage collection for each stripe unit by using the stripe mapping table information.
[0174] RAID controller 610 can perform an operation of selecting a damaged stripe for garbage collection by using mapping table information. For example, RAID controller 610 can find a stripe with the lowest valid page ratio from the grouped stripes by using stripe mapping table information, and can select the stripe as a damaged stripe.
[0175] The present disclosure can be applied to various electronic devices including storage devices. For example, the present disclosure can be applied to systems such as mobile phones, smart phones, personal digital assistants (PDAs), portable multimedia players (PMPs), digital cameras, camcorders, personal computers (PCs), server computers, workstations, laptop computers, digital TVs, set-top boxes, portable game consoles, navigation systems, etc.
[0176] The foregoing is an illustration of example embodiments and should not be construed as limiting thereof. Although some example embodiments have been described, it will be readily appreciated by those of ordinary skill in the art that a variety of modifications may be made in the example embodiments without substantially departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims.
Claims
1. A storage device, include: a main memory including a plurality of non-volatile memory devices, the main memory being configured to store data; as well as a memory controller configured to control the main memory, Wherein, the storage controller is configured as: dividing the plurality of storage blocks of the plurality of nonvolatile memory devices into a plurality of storage banks, Assigning each of the plurality of memory banks to a) a plurality of sets or b) a free memory bank, each set of the plurality of sets including at least one memory bank, In response to an input / output (I / O) request from a host device, performing a data migration operation by transferring data between the sets using the one free memory bank within a deterministic I / O execution time associated with the I / O request, and controlling the data migration operation so that the I / O request is independent of the data migration operation, Wherein, the storage controller is configured to perform an interface connection with the host device via a non-volatile memory express "NVMe" protocol, and the deterministic I / O execution time is defined by the NVMe protocol.
2. The storage device according to claim 1, in, The memory controller is configured to perform only one operation selected from the group consisting of a read operation, a program operation, and an erase operation on one memory bank among the plurality of memory banks at a specific time.
3. The storage device according to claim 2, in, The storage controller comprises: a mapping table configured to receive a set identifier and a logical bank address for accessing one of the plurality of banks from the host device, the mapping table configured to store mapping information between the logical bank address and a physical bank address corresponding to the logical bank address; and A migration manager is configured to manage the mapping table, configured to perform the data migration operation based on the number of program / erase cycles of each of the sets, and configured to update the mapping table in response to completion of the data migration operation.
4. The storage device according to claim 3, in, The migration manager is configured to count program / erase cycles of each of the memory banks in response to a request from the host device and is configured to count program / erase cycles of each of the memory banks in response to the data migration operation.
5. The storage device according to claim 3, in, The plurality of sets include at least a first set and a second set, the first set including a) a first storage body among the plurality of storage bodies and b) a second storage body among the plurality of storage bodies, and the second set including c) a third storage body among the plurality of storage bodies and d) a fourth storage body among the plurality of storage bodies, wherein the program / erase cycles of the first set correspond to a first cycle, and the program / erase cycles of the second set correspond to a second cycle, and Wherein, when the first period is greater than the second period, the migration manager is configured to: migrating the first data stored in the first storage body to the free storage body, and in response to completion of the migration of the first data, mapping the physical storage body address of the free storage body to the first logical storage body address of the first set, performing an erase operation on a memory block of the first memory bank, and The first memory bank in the mapping table is recorded as the free memory bank.
6. The storage device according to claim 5, in, The migration manager is configured to: Migrating the second data stored in the third storage body to the first storage body; In response to completion of migration of the second data, mapping a physical storage bank address of the first storage bank to a first logical storage bank address of the second set; performing an erase operation on a storage block of the third storage bank; and The third storage body in the mapping table is recorded as the free storage body.
7. The storage device according to claim 6, in, The migration manager is configured to perform wear leveling between the first set and the second set by sequentially performing migration and updating logical bank addresses on the second bank and the fourth bank.
8. The storage device according to claim 5, in, In response to the storage controller receiving a read request related to the first data from the host device during migration of the first data, The memory controller is configured to provide a read command to the first memory bank and the free memory bank simultaneously, the read command corresponding to the read request.
9. The storage device according to claim 8, in, In response to the read command, the memory controller is configured to provide the host device with first data received earlier from one of the first memory bank and the free memory bank.
10. The storage device according to claim 8, in, In response to the read command, the memory controller is configured to ignore first data received later from one of the first memory bank and the idle memory bank.
11. The storage device according to claim 5, in, The memory controller is configured to execute a read command on the first memory bank in a mutually exclusive manner with a program / erase command executed on the free memory bank.
12. The storage device according to claim 5, in, The memory controller is configured to perform migration of the first data by a) applying a read command to the first memory bank and b) applying a program / erase command to the free memory bank.
13. The storage device according to claim 1, in, The storage controller is configured to perform the data migration operation by dynamically assigning a physical bank address of a memory bank to a logical bank address of a set.
14. The storage device according to claim 1, in, At least one memory block of the plurality of memory blocks includes NAND strings stacked on a substrate.
15. A storage system, include: A storage device comprising a main memory configured to store data and a storage controller configured to control the main memory, the main memory comprising a plurality of non-volatile memory devices; as well as A host device is configured to control the storage device in units of sets, Wherein, the storage controller is configured as: dividing the plurality of storage blocks of the plurality of nonvolatile memory devices into a plurality of storage banks, Assigning each of the plurality of memory banks to a) a plurality of sets or b) a free memory bank, each set of the plurality of sets including at least one memory bank, In response to an input / output (I / O) request from the host device, performing a data migration operation by transferring data between sets using the one free memory bank within a deterministic I / O execution time associated with the I / O request, and controlling the data migration operation so that the I / O request is independent of the data migration operation, Wherein, the storage device is configured to perform an interface connection with the host device via a non-volatile memory express "NVMe" protocol, and the deterministic I / O execution time is defined by the NVMe protocol.
16. The storage system according to claim 15, in, The host device comprises: A processor comprising a) at least one physical function and b) a plurality of virtual functions; and a host memory configured to operate as a working memory for the processor, wherein the host device is configured to provide an unused storage body lock command to the storage controller to assign at least one unused storage body to the free storage body, wherein the unused storage body is not assigned to a virtual function of a storage body, and The host device is configured to provide an unused memory bank unlock command to the memory controller to release the assigned free memory bank.
17. The storage system according to claim 15, in, The host device comprises: A processor comprising a) at least one physical function and b) a plurality of virtual functions; and a host memory configured to operate as a working memory for the processor, wherein the host device is configured to provide an unused set lock command to the storage controller to assign at least one unused storage body to the free storage body, the unused storage body being assigned to a virtual function, the unused storage body corresponding to a deactivated virtual function of the storage body, and The host device is configured to provide an unused set unlock command to the memory controller to release the assigned free memory bank.
18. A method of operating a storage device, the storage device comprising a main memory configured to store data and a storage controller configured to control the main memory, the method include: Dividing a plurality of storage blocks of the main memory into a plurality of sets and a free storage body, each of the plurality of sets including at least one storage body; as well as In response to an input / output (I / O) request from a host device, performing a data migration operation by transferring data between the plurality of sets using the one free memory bank within a deterministic I / O execution time associated with the I / O request, Wherein, the storage device is configured to perform an interface connection with the host device via a non-volatile memory express "NVMe" protocol, and the deterministic I / O execution time is defined by the NVMe protocol.
