Memory controller and dirty data management method
The memory controller efficiently manages dirty data using global logical page numbers and trim requests to reduce response delays in live migration operations, ensuring timely data change information to host devices.
Patent Information
- Application Number
- JP2026081017
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-16
- Filing Date
- 2026-05-13
- Publication Date
- 2026-11-27
AI Technical Summary
Existing memory controllers face challenges in efficiently managing dirty data during live migration operations, leading to delays in providing accurate information to host devices about data changes.
A memory controller with a host interface layer that manages bitmaps using global logical page numbers to track dirty data, and a flash conversion layer that initializes bitmap values based on trim requests, enabling rapid response to host device inquiries.
The solution allows for quick and efficient management of dirty data, reducing response delays by providing accurate information about data changes in memory areas during migration operations.
Smart Images

Figure 2026185865000001_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present invention relates to memory controllers, and more particularly, to a memory controller and a method for managing dirty data indicating whether a memory area has been changed. BACKGROUND ART
[0002] Memory devices are classified into volatile memory devices and non-volatile memory devices. A volatile memory device retains data only while power is being supplied, and the retained data disappears when power supply is cut off. A non-volatile memory device is a memory device in which data does not disappear even if power is cut off. The storage device may include a memory device and a memory controller that controls operations of the memory device.
[0003] The storage device may perform a live migration operation of moving a virtual machine from one physical host device to another host device without interrupting service or normal operation. The storage device may generate dirty data for data changed during the live migration operation, and provide information about the dirty data in response to a request received from the host device. In order to quickly respond to a host device's request for dirty data information, the storage device needs to efficiently manage dirty data. SUMMARY OF THE INVENTION PROBLEMS TO BE SOLVED BY THE INVENTION
[0004] An embodiment of the present invention provides a memory controller and a dirty data management method for managing a bitmap including information about dirty data in a host interface layer according to a global logical page number. MEANS FOR SOLVING THE PROBLEMS
[0005] A memory controller for controlling multiple memory regions according to an embodiment of the present invention includes a migration operation control unit that performs a migration operation to move data from a first memory region to a second memory region, and a host interface layer that converts a plurality of logical addresses corresponding to the first memory region into a plurality of global logical page numbers and manages a bitmap corresponding to each of the plurality of global logical page numbers, wherein the bitmap may include information about dirty data indicating whether or not the data in the first memory region has been changed during the execution of the migration operation.
[0006] A memory controller according to an embodiment of the present invention includes a host interface layer that manages a bitmap containing information about dirty data indicating whether the data in the memory area has been changed since receiving a tracking command, and when it receives a trim request for a target area of the memory area from a host device, it generates address information indicating the target area, and a flash conversion layer that transmits trim information to the host interface layer indicating whether a portion of the bitmap corresponding to the target area has been initialized based on the result of a read operation on the target area performed according to the address information received from the host interface layer, and the host interface layer can initialize the portion of the bitmap based on the trim information.
[0007] The operation method of a memory controller according to an embodiment of the present invention may include the steps of: controlling a memory device to perform a migration operation to move data from a first memory area to a second memory area; managing a bitmap corresponding to each of a plurality of global logical page numbers obtained by translating a plurality of logical addresses corresponding to the first memory area; and providing the host device with information regarding dirty data included in the bitmap indicating whether or not the data in the first memory area has been modified during the migration operation, in response to a request from the host device. [Effects of the Invention]
[0008] This technology provides a memory controller and dirty data management method that can quickly provide information about dirty data to a host device by managing a bitmap containing information about dirty data indicating whether or not data in the memory area where migration operations are performed has been changed, in association with multiple global logical page numbers. [Brief explanation of the drawing]
[0009] [Figure 1] This is a diagram illustrating a storage device according to an embodiment of the present invention. [Figure 2] This diagram illustrates a bitmap containing information about dirty data managed in relation to multiple FTL logical page numbers. [Figure 3] This figure illustrates the operation of managing information about dirty data in the host interface layer according to an embodiment of the present invention. [Figure 4] This figure illustrates a method for initializing the values of a bitmap containing information about dirty data according to an embodiment of the present invention. [Figure 5] Figure 4 illustrates the case where the address range requested for trimming during the trim operation is an unmapped region. [Figure 6] Figure 4 illustrates the case where a portion of the address range requested for trimming during the trimming operation is part of the map area. [Figure 7] This is a flowchart illustrating the operation of managing information related to dirty data according to an embodiment of the present invention. [Figure 8] This figure illustrates a data storage system including a memory controller according to an embodiment of the present invention. [Modes for carrying out the invention]
[0010] The specific structural or functional descriptions of embodiments of the concept of the present invention disclosed herein or in the application are illustrative only to illustrate embodiments of the concept of the present invention, and embodiments of the concept of the present invention may be carried out in various forms and should not be construed as being limited to embodiments described herein or in the application.
[0011] Figure 1 is a diagram illustrating a storage device according to an embodiment of the present invention.
[0012] Referring to Figure 1, the storage device 10 may include a memory device 100 and a memory controller 200 that controls the operation of the memory device. The storage device 10 is a device that stores data in response to the control of a host device 20 such as a mobile phone, smartphone, MP3 player, laptop computer, desktop computer, game console, TV, tablet PC, or in-vehicle infotainment system.
[0013] In Figure 1, the storage device 10 is shown to be connected to the host device 20, but this is merely an embodiment, and the storage device 10 may be connected to multiple host devices. Each of the multiple host devices can run a program to generate a virtual machine. The storage device 10 can perform migration operations to move data between the multiple host devices.
[0014] The storage device 10 can be manufactured using any one of various types of storage devices, depending on the communication method with the host device 20. For example, the storage device 10 may consist of any one of various types of storage devices, such as CXL (compute express link) storage devices, SSDs, MMCs, eMMCs, RS-MMCs, micro-MMC multimedia cards, SD, mini-SD, and micro-SD secure digital cards, USB (universal serial bus) storage devices, UFS (universal flash storage) devices, PCI (peripheral component interconnection) card type storage devices, PCI-E (PCI express) card type storage devices, CF (compact flash) cards, smart media cards, and memory sticks.
[0015] The memory device 100 can store data. The memory device 100 operates in response to the control of the memory controller 200. The memory device 100 may include multiple memory blocks. A memory block may include multiple memory cells that store data. Multiple memory cells connected to the same word line can be defined as a single physical page.
[0016] In the embodiment, the memory device 100 may include random access memory (RAM), non-volatile memory (NVM), DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory), LPDDR4 (Low Power Double Data Rate 4) SDRAM, GDDR (Graphics Double Data Rate) SDRAM, LPDDR (Low Power DDR), RDRAM (Rambus Dynamic Random Access Memory), NAND flash memory, resistive random access memory (RRAM), phase-change memory (PRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM®), spin transfer torque random access memory (STT-RAM), and the like.
[0017] The memory device 100 is configured to receive commands and addresses from the memory controller 200 and access the memory area selected by the address. That is, the memory device 100 can perform the operations instructed by the command on the memory area selected by the address. For example, the memory device 100 can perform write operations (program operations), read operations, and erase operations. During a program operation, the memory device 100 programs data into the memory area selected by the address. During a read operation, the memory device 100 reads the data stored in the memory area selected by the address. During an erase operation, the memory device 100 erases the data stored in the memory area selected by the address.
[0018] The memory controller 200 controls the overall operation of the storage device 10. The memory controller 200 may receive input of data and a logical address from the host device 20, and convert the logical address into a physical address indicating addresses of a plurality of memory cells in which data included in the memory device 100 are stored.
[0019] Although FIG. 1 illustrates that the storage device 10 includes the memory device 100, this is only an example, and the storage device 10 may include a plurality of memory devices. In an embodiment of the present disclosure, the memory controller 200 may manage the plurality of memory devices in units of a namespace, which is a logical unit. The memory controller 200 may divide the plurality of physically separated memory devices into a plurality of logical regions according to a certain storage capacity, and manage the plurality of logical regions in units of a namespace.
[0020] The memory controller 200 may control the memory device 100 to perform a program operation, a read operation, an erase operation, or the like in response to a request from the host device 20. In a program operation, the memory controller 200 may provide a write command, a physical address, and data to the memory device 100. In a read operation, the memory controller 200 may provide a read command and a physical address to the memory device 100. In an erase operation, the memory controller 200 may provide an erase command and a physical address to the memory device 100.
[0021] The memory controller 200 may include a processor that performs logical operations and firmware. The processor can execute a plurality of programs stored in the firmware. The firmware may include a host interface layer (HIL) 210, a flash translation layer (FTL) 220, and a flash interface layer (FIL) 230. The host interface layer 210 may interpret a command included in a request received from the host device 20 and transmit the command to the flash translation layer 220. The flash translation layer 220 may use a mapping table to convert between a logical address requested by the host device 20 and a physical address of the memory device 100. The flash interface layer 230 may transmit a command received from the flash translation layer to the memory device 100. Note that the host interface layer 210, the flash translation layer 220, and the flash interface layer 230 may each be expressed as a host interface unit 210, a flash translation unit 220, and a flash interface unit 230, respectively, as functional blocks.
[0022] In an embodiment of the present invention, the memory controller 200 may control a plurality of memory areas included in the memory device 100. The memory controller 200 may include a migration operation controller that moves data in one of the plurality of memory areas to another area. The memory controller 200 may manage a bitmap including information regarding dirty data indicating whether data in a memory area is changed during execution of a migration operation. The host interface layer 210 may manage the bitmap based on a plurality of logical page numbers obtained by converting a plurality of logical addresses.
[0023] The host device 20 can transmit a request to the memory controller 200 to check whether any data has been changed during the execution of the migration operation. The host interface layer 210 can respond to the request from the host device 20 and provide the host device 20 with information about dirty data. In embodiments of the present invention, the multiple memory regions may be multiple logical regions managed on a namespace basis.
[0024] In embodiments of the present invention, the host interface layer 210 can convert multiple logical addresses corresponding to memory areas where data to be migrated is stored into multiple global logical page numbers and manage bitmaps corresponding to each of the multiple global logical page numbers. The host interface layer 210 can initialize the values of the multiple bitmaps based on trim requests received from the host device 20.
[0025] Figure 2 illustrates a bitmap containing information about dirty data managed in relation to multiple FTL logical page numbers.
[0026] Referring to Figure 2, the flash conversion layer 220 manages information about dirty data while the data migration operation is in progress. The write operation is performed using the logical page number (LPN) and FTL instance of the flash conversion layer FTL, and information about dirty data is also managed using the FTL LPN and FTL instance. For the sake of explanation, we can assume that the FTL instances are FTL instance 0 and FTL instance 1.
[0027] When the memory controller 200 controls a write operation to be performed on the memory device 100, the host logical block address (LBA) can be converted to an FTL LPN. Specifically, the host interface layer 210 can obtain the host LBA from a request received from the host device 20. The host LBA is converted to a global LPN, and the global LPN can be sliced and assigned to an FTL instance. The global LPN is an LPN converted using a mapping table related to the granularity of the data, and may be an LPN that does not reflect the offset of the memory area. In embodiments of the present invention, the memory area may be a namespace.
[0028] A host LBA can be converted to a host LPN, which can then be converted to a global LPN. A host LPN can represent a contiguous LPN assuming the starting offset value of multiple memory regions is 0. The host LPN can be obtained by dividing the host LBA by the number of pages per block. Based on the host LBA and a granularity mapping table, the host LBA can be converted to a global LPN. Once the global LPN is sliced according to slice units, FTL instances can be allocated. Assuming there are two FTL instances (FTL instance 0, FTL instance 1), a bitmap can correspond to each FTL LPN of multiple FTL instances. The bitmap can contain information about dirty data indicating whether the data in the memory region being processed has changed during the migration operation.
[0029] Since the bitmap containing information about dirty data corresponds to the FTL LPN, the flash conversion layer 220 can manage the bitmap containing information about dirty data through the FTL instance and the FTL LPN. When the host device 20 requests information about dirty data, the memory controller 200 reads the bitmap storing the information about dirty data and provides the host device 20 with the information about dirty data.
[0030] Figure 2 illustrates information about dirty data contained in bitmaps corresponding to FTL instances and FTL LPNs. For the sake of explanation, we can assume that the value provided to the host device 20 is 9, and that the binary number corresponding to 9 is sliced and stored in the bitmap through the FTL LPN and FTL instance. To provide information about dirty data to the host device 20, the values of the bitmaps corresponding to the FTL LPN are merged. For example, the flash interface layer 230 merges the bitmap value 1 of FTL instance 0 and the bitmap value 100 of FTL instance 1 to generate 1001, and transmits 1001 through the host interface layer 210. Since 1001 is a binary number, the value transmitted to the host device 20 can be 9. The flash conversion layer 220 retrieves the bitmap containing information about dirty data one bit at a time by referring to the mapping table. In Figure 2, the flash conversion layer 220 must go through multiple FTL LPN conversion processes to obtain bitmap value 1 of FTL instance 0 and bitmap value 100 of FTL instance 1, which may cause a delay in responding to requests from the host device 20. To reduce the response delay to requests from the host device 20, a method may be needed to obtain information about the dirty data in multiple bit units.
[0031] Figure 3 illustrates the operation of managing information about dirty data in the host interface layer according to an embodiment of the present invention.
[0032] Referring to Figure 3, the host LBA is converted to a global LPN, and the bitmap corresponding to the global LPN may contain information about the dirty data. The host interface layer 210 can manage the bitmap corresponding to the global LPN. In Figure 3, the explanation corresponding to Figure 2 can be omitted.
[0033] The host LBA received from the host device 20 can be converted to a global LPN using a granularity mapping table. The host interface layer 210 can convert multiple logical addresses corresponding to memory areas to multiple global logical page numbers. The host interface layer 210 can manage a bitmap corresponding to each of the multiple global logical page numbers. The bitmap can include information about dirty data indicating whether the data in the memory area has changed during the execution of the migration operation. The information about dirty data can indicate whether the data in the memory area has changed after receiving a tracking command. In an embodiment of the present invention, it can be assumed that a tracking command has been received when the migration operation is performed. After the host interface layer 210 generates a bitmap corresponding to the global LPN, if the data value of the memory area changes during the execution of the data migration operation, the value of the bitmap can be updated.
[0034] Similar to Figure 2, it can be assumed that the value 9, which is provided to the host device 20 in Figure 3, is stored in the bitmap. The bitmap containing information about the dirty data corresponds to the global LPN. In response to a request for information about the dirty data received from the host device 20, the host interface layer 210 can acquire the bitmap value 1001, which corresponds to the global LPN, and provide it to the host device 20. In embodiments of the present invention, the host interface layer 210 can acquire one or more bitmap values. When the host LBA is sequentially mapped by a granularity mapping table used to convert to the global LPN, the host interface layer 210 can acquire multiple bitmap values in multiple bit units. The host interface layer 210 can provide information about the dirty data to the host device 20 in a shorter time required to acquire the bitmap values.
[0035] In Figure 3, the value 9 provided to the host device 20 is a bitmap value of 1001. The host interface layer can acquire the four bits corresponding to 1001 at once, rather than acquiring 1001 bit by bit. Since the process of merging the acquired bitmap values is also unnecessary, the time required to manage information about dirty data can be reduced.
[0036] Figure 4 is a diagram illustrating a method for initializing the values of a bitmap containing information about dirty data according to an embodiment of the present invention.
[0037] Referring to Figure 4, the value of the bitmap containing information about dirty data can be initialized in response to a request from the host device 20. The value of the bitmap can be initialized if the host LBA corresponding to the global LPN to which the bitmap is associated is deallocated or invalid data is assigned. In embodiments of the present invention, the host interface layer 210 requests information from the flash conversion layer 220 regarding whether dirty data corresponding to at least a portion of several addresses in the memory area is unmapped, and can update the value of the bitmap based on the unmap information received from the flash conversion layer 220.
[0038] In step S410, the host interface layer 210 can receive a trim request from the host device 20. The trim request may include the range of LBAs to be trimmed. For example, the start and end LBAs may be included in the trim request. The host interface layer 210 can generate address information corresponding to the LBA range to be trimmed.
[0039] In stage S420, the flash translation layer 220 can receive address information from the host interface layer 210. The flash translation layer 220 can generate a read command corresponding to the received address information. The generated read command is a command to read the data corresponding to the received address.
[0040] In step S430, the flash interface layer 230 can receive a read command from the flash conversion layer 220. The received read command may include address information to be read. The flash interface layer 230 can control the memory device 100 to perform a read operation. The flash interface layer 230 can receive the result of the read operation of the memory device 100 and transmit the read data corresponding to the result of the read operation to the flash conversion layer 220.
[0041] In step S440, the flash conversion layer 220 can generate trim information based on the received read data. The trim information may include information about whether or not dirty data is unmapped corresponding to several addresses, at least a portion of the memory area.
[0042] In embodiments of the present invention, the flash conversion layer 220 can detect whether or not a portion of the dirty data is unmapped based on the received read data. If a portion of the dirty data is unmapped, the flash conversion layer 220 can transmit information regarding the global LPN indicating the portion of the unmapped dirty data to the host interface layer 210. The information regarding the global LPN indicating the portion of the unmapped dirty data may be included in the information regarding whether or not the dirty data is unmapped.
[0043] In step S450, the host interface layer 210 can perform a trim operation based on the received trim information. The host interface layer 210 can initialize the values of a bitmap that stores information about the unmapped dirty data. In embodiments of the present invention, the host interface layer 210 can initialize the values of a bitmap containing information about the unmapped dirty data based on information about the global LPN included in the trim information.
[0044] In embodiments of the present invention, the host interface layer 210 can initialize the values of a bitmap that stores information about dirty data in response to a trim request from the host device 20. The values of the bitmap do not need to be initialized if the mapped data is valid, even if the bitmap corresponds to a global LPN that has been requested to be trimmed by the host device 20. Although not shown in Figure 4, the host interface layer 210 can also transmit the results of the trim operation in response to a trim request from the host device 20. The results of the trim operation may include information about addresses that were trimmed by the trim request from the host device 20 and information about addresses that were included in the trimmed address range but were not trimmed because valid data was mapped to them.
[0045] Figure 5 illustrates the case where the address range requested for trimming during the trimming operation in Figure 4 is an unmapped region.
[0046] Referring to Figure 5, the trim range for which the trim operation is requested from the host device 20, the LPNs corresponding to the LBAs, and the area where valid data is mapped are shown. In Figure 5, it can be assumed that information about dirty data is contained in a 64kB area, eight LBAs are assigned to one LPN, and one LPN manages 4kB of mapping information. For the sake of explanation, in Figure 5, it can be assumed that the host device 20 transmits a trim request for the trim range from LBA 0 to LBA 19 to the host interface layer 210, and that no valid data is mapped to the bitmap containing information about dirty data.
[0047] Since the host interface layer 210 does not know whether or not the bitmaps corresponding to the trim range are mapped, it can request information from the flash conversion layer regarding whether or not dirty data is unmapped. Information regarding the trim range may be included in the information regarding whether or not dirty data is unmapped. The flash conversion layer 220 can identify that all LBAs corresponding to the trim range are unmapped areas. The flash conversion layer 220 can transmit information regarding LPNs corresponding to the unmapped areas to the host interface layer 210. For example, the flash conversion layer 220 can transmit LPN 0, which is the starting LPN of the LPNs corresponding to the unmapped areas within the trim range, and LPN 3, which is the number of LPNs to be trimmed, to the host interface layer 210. Based on the received LPN information corresponding to the unmapped areas, the host interface layer 210 can initialize the bitmap values corresponding to LPN 0, LPN 1, and LPN 2.
[0048] Figure 6 illustrates the case where a portion of the address range requested for trimming during the trimming operation in Figure 4 is the map area.
[0049] Referring to Figure 6, a case is shown in which some LBAs of the trim range received from the host device 20 are unmapped, and the remaining LBAs are mapped to valid data. For the sake of explanation, we can assume that the trim range is LBA 0 to LBA 19, that LBA 0 to LBA 4 and LBA 18 to LBA 21 are mapped to valid data, and LBA 5 to LBA 17 and LBA 22 to LBA 127 are unmapped. The part of the explanation for Figure 6 that corresponds to the explanation for Figure 5 can be omitted.
[0050] The flash conversion layer 220 can detect the area within the trim range where valid data is mapped (mapped area) and the area where it is unmapped (unmapped area). The flash conversion layer 220 can transmit information about LPNs corresponding to the unmapped area to the host interface layer 210. In Figure 6, the LBAs that are included in the trim range but also in the unmapped area are LBA 5 to LBA 17. Since the flash conversion layer 220 transmits information about LPNs to the host interface layer 210, the information about LPNs corresponding to the unmapped area may include the starting LPN as LPN 1 and the number of LPNs to be trimmed as LPN 1. Upon receiving the LPN information corresponding to the unmapped area, the host interface layer 210 can initialize the bitmap value corresponding to LPN 1.
[0051] In another embodiment of the present invention, the flash conversion layer 220 can transmit trim information to the host interface layer 210 indicating whether or not trimming is performed for the entire trim range. In Figure 6, if only a portion of the LBA within the trim range is an unmapped region, the flash conversion layer 220 can transmit information to the host interface layer 210 regarding the LPN corresponding to the unmapped region that restricts the trim operation for the entire trim range. In Figure 6, the flash conversion layer 220 can transmit information to the host interface layer 210 regarding the LPN corresponding to the unmapped region, including LPN 1, which is the starting LPN, and LPN 0, which is the number of LPNs. The host interface layer 210 can provide the result to the host device 20 without initializing the bitmap values in response to the trim request.
[0052] Figure 7 is a flowchart illustrating the operation of managing information related to dirty data according to an embodiment of the present invention.
[0053] Referring to Figure 7, the host interface layer can manage a bitmap containing information about dirty data, indicating whether data has been modified during a data migration operation to a memory area. The bitmap can correspond to the global LPN to which the host LBA has been converted. It can be assumed that tracking commands for dirty data are transmitted to the memory controller separately from or simultaneously with the migration operation commands. The host interface layer can update the bitmap containing information about dirty data when the dirty data is unmapped.
[0054] In step S710, the migration operation control unit can control the memory device to perform a migration operation to move data from the first memory area to the second memory area. The migration operation can mean moving data of a virtual machine created in the first memory area to a virtual machine created in the second memory area.
[0055] In stage S720, the host interface layer can manage bitmaps corresponding to each of the multiple global logical page numbers to which multiple logical addresses corresponding to the first region have been translated. The bitmaps can include information about dirty data indicating whether or not the data in the first region has been changed during the migration operation. The method by which the host interface layer translates multiple logical addresses to multiple global logical page numbers can be described in Figures 2 and 3.
[0056] The host interface layer can receive tracking commands that indicate the reference point for whether or not data in the first region has been changed. The host interface layer can set the first value to the bitmap values corresponding to multiple global logical page numbers corresponding to data in the first region that has been changed since the reference point.
[0057] In step S730, the host interface layer can provide the host device with information about dirty data in response to a request from the host device. The host interface layer can receive a host request from the host device requesting information about dirty data. In embodiments of the present invention, the host interface layer can provide the host device with information about two or more bits of dirty data in response to a sequence of multiple global logical page numbers.
[0058] In step S740, the host interface layer can update the bitmap based on whether or not dirty data corresponding to at least some of several addresses in the first area is unmapped. The memory controller can control the memory device to perform read operations corresponding to at least some of several addresses in the first area. The host interface layer can request information from the flash translation layer regarding whether or not dirty data corresponding to at least some of several addresses in the first area is unmapped. The flash translation layer can transmit a read command to the flash interface layer instructing a read operation corresponding to at least some of several addresses in the first area. The flash interface layer can transmit the received read command to the memory device and transmit the read data received from the memory device to the flash translation layer.
[0059] The flash conversion layer can transmit information regarding the presence or absence of unmapping to the host interface layer based on the read data received from the flash interface layer. In one embodiment of the present invention, the flash conversion layer can transmit to the host interface layer, in response to the fact that a portion of the dirty data has been unmapped, information regarding the global logical page number indicating the portion of the unmapped dirty data, along with the information regarding the presence or absence of unmapping. The host interface layer can set the bitmap values corresponding to a plurality of global logical page numbers indicating at least a portion of the unmapped dirty data as a second value.
[0060] In another embodiment of the present invention, the host interface layer can receive a trim request from the host device for a target region within the first region. The host interface layer can generate address information indicating the target region and transmit it to the flash conversion layer. The flash conversion layer can transmit trim information to the host interface layer indicating whether a portion of the bitmap corresponding to the target region has been initialized, based on the result of a read operation performed on the target region according to the address information.
[0061] The flash conversion layer can transmit read commands to the flash interface layer, instructing a read operation on the target area. The flash interface layer can transmit the received read commands to the memory device and transmit the results of the read operation on the target area received from the memory device back to the flash conversion layer. The flash conversion layer can detect multiple unmapped logical addresses mapped to invalid data among some bitmaps. The flash conversion layer can generate trim information containing information about multiple global logical page numbers corresponding to multiple unmapped logical addresses. Based on the trim information, the host interface layer can initialize the bitmaps by setting the values of the unmapped bitmaps for multiple global logical page numbers corresponding to multiple unmapped logical addresses among some bitmaps as secondary values.
[0062] The explanations for each stage in Figure 7 can be linked to the explanations in Figures 1 to 6.
[0063] Figure 8 is a diagram illustrating an exemplary data storage system including a memory controller according to an embodiment of the present invention.
[0064] Referring to Figure 8, the data storage system 2000 may include a host device 2100 and an SSD 2200.
[0065] The SSD2200 may include a controller 2210, a buffer memory device 2220, a plurality of non-volatile memories 2231-223n, a power supply 2240, a signal connector 2250, and a power connector 2260. The controller 2210 can correspond to the memory controller 200 shown in Figures 1-7.
[0066] The buffer memory device 2220 can temporarily store data stored in multiple non-volatile memories 2231-223n. The buffer memory device 2220 can also temporarily store data read from multiple non-volatile memories 2231-223n. Data temporarily stored in the buffer memory device 2220 can be transmitted to the host device 2100 or the multiple non-volatile memories 2231-223n according to the control of the controller 2210.
[0067] Multiple non-volatile memories 2231-223n may be used as storage media for the SSD 2200. Each of the multiple non-volatile memories 2231-223n may be connected to the controller 2210 via multiple channels CH1-CHn. One or more non-volatile memories can be connected to a single channel. Multiple non-volatile memories connected to a single channel can be connected to the same signal bus and data bus.
[0068] The controller 2210 can control various operations of the SSD 2200. In embodiments of the present invention, the controller 2210 can convert multiple logical addresses corresponding to memory areas into global logical page numbers and manage a bitmap corresponding to each of the multiple global logical page numbers. The bitmap may include information about dirty data indicating whether the data in a memory area has been changed during a migration operation that moves data from one memory area to another. The controller 2210 can update the bitmap based on information about whether dirty data has been unmapped. The controller 2210 can generate information about whether dirty data has been unmapped based on the global logical page number.
[0069] The power supply unit 2240 can supply power PWR, which is input via the power connector 2260, to the SSD 2200. The power supply unit 2240 may include an auxiliary power supply unit 2241. The auxiliary power supply unit 2241 can supply power to the SSD 2200 so that it can shut down properly in the event of a sudden power off. The auxiliary power supply unit 2241 may include large-capacity capacitors that can charge power PWR.
[0070] The controller 2210 can send and receive signals SGL with the host device 2100 via the signal connector 2250. Here, signals SGL may include commands, addresses, data, etc. The signal connector 2250 may consist of various types of connectors depending on the interface method between the host device 2100 and the SSD 2200.
[0071] The scope of the present invention is indicated not by the above detailed description but by the appended claims, and all modifications or altered forms derived from the meaning and scope of the claims and their equivalent concepts should be interpreted as being included within the scope of the present invention. [Explanation of symbols]
[0072] 10 Storage device 20 Host devices 100 memory devices 200 memory controllers 210 Host Interface Layer 220 Flash conversion layers 230 Flash Interface Layer
Claims
1. In a memory controller that controls multiple memory regions, A migration operation control unit performs a migration operation to move data from the first memory region to the second memory region among the multiple memory regions mentioned above. Includes a host interface layer that converts multiple logical addresses corresponding to the first region described above into multiple global logical page numbers and manages bitmaps corresponding to each of the multiple global logical page numbers, The bitmap above is A memory controller that includes information about dirty data indicating whether or not the data in the first region has been modified during the execution of the migration operation described above.
2. The above host interface layer is, The memory controller according to claim 1, which provides the host device with information regarding the dirty data in response to a request from the host device.
3. The above host interface layer is, The memory controller according to claim 2, which provides the host device with information about two or more bits of the dirty data in response to the multiple global logical page numbers being consecutive.
4. A flash translation layer that performs address translation operations based on a mapping table containing mapping information between multiple logical addresses and multiple physical addresses in the above-mentioned multiple memory regions, The memory controller according to claim 1, further comprising: a flash interface layer that transmits commands received from the flash conversion layer to the plurality of memory areas and receives responses to the commands from the plurality of memory areas.
5. The above host interface layer is, The memory controller according to claim 4, which requests information from the flash conversion layer regarding whether or not the dirty data corresponding to at least a portion of several addresses in the first region is unmapped, and updates the bitmap based on the information regarding whether or not the dirty data is unmapped received from the flash conversion layer.
6. The above flash conversion layer is The memory controller according to claim 5, which transmits a read command to the flash interface layer instructing a read operation corresponding to at least a portion of multiple addresses in the first region, and transmits information regarding the presence or absence of unmapping to the host interface layer based on the result of the read operation received from the flash interface layer.
7. The above flash conversion layer is The memory controller according to claim 6, which, in response to a portion of the dirty data being unmapped, transmits to the host interface layer information regarding the global logical page number indicating the portion of the unmapped dirty data, along with the information regarding whether or not the data was unmapped.
8. A host interface layer manages a bitmap containing information about dirty data indicating whether the data in the memory area has been changed since receiving a tracking command, and when it receives a trim request for the target area of the memory area from the host device, it generates address information indicating the target area. A flash conversion layer that transmits trim information to the host interface layer indicating whether a portion of the bitmaps corresponding to the target area in the bitmap has been initialized, based on the result of a read operation on the target area performed in accordance with the address information received from the host interface layer, The above host interface layer is, A memory controller that initializes the above-mentioned bitmap based on the above trim information.
9. The flash interface layer further includes a flash interface layer that transmits commands received from the flash conversion layer to the memory area and receives responses to the commands from the memory area. The above flash conversion layer is The memory controller according to claim 8, which transmits a read command instructing the above-mentioned read operation on the above-mentioned target region to the flash interface layer.
10. The bitmap above is The information includes details of the dirty data corresponding to each of the multiple global logical page numbers to which the multiple logical addresses corresponding to the above memory region have been translated, The above flash conversion layer is Among the bitmaps mentioned above, multiple unmapped logical addresses mapped to invalid data are detected. The above trim information is, The memory controller according to claim 8, which includes information about a plurality of global logical page numbers corresponding to the plurality of unmapped logical addresses mentioned above.
11. The above host interface layer is, The memory controller according to claim 10, which initializes unmapped bitmaps of multiple global logical page numbers corresponding to the multiple unmapped logical addresses among the above-mentioned bitmaps.
12. The above address information is, The memory controller according to claim 8, including information relating to the start address and end address of the target region.
13. A step of controlling the memory device to perform a migration operation in which data from the first memory region is moved to the second memory region among multiple memory regions, A step of managing bitmaps corresponding to each of the multiple global logical page numbers to which multiple logical addresses corresponding to the first area described above have been translated, A method for operating a memory controller, comprising the step of providing the host device with information regarding dirty data indicating whether the data in the first region included in the bitmap has been modified during the execution of the migration operation, in response to a request from the host device.
14. The stage of managing the above bitmap is: The stage of receiving a tracking command that indicates the reference point for whether or not the data in the first area above has been changed, A method for operating a memory controller according to claim 13, comprising the step of setting the values of bitmaps corresponding to multiple global logical page numbers corresponding to data in the first region above that have been changed since the reference time above as first values.
15. The step of providing the host device with information regarding the dirty data mentioned above is: The step of receiving the above request from the host device, A method for operating a memory controller according to claim 13, comprising the step of providing the host device with information about two or more bits of the dirty data in response to the multiple global logical page numbers being consecutive.
16. A method for operating a memory controller according to claim 14, comprising the step of updating the bitmap based on whether or not the dirty data corresponding to at least a portion of a plurality of addresses in the first region is unmapped.
17. The steps to update the above bitmap are: A step of controlling the memory device to perform read operations corresponding to at least a portion of multiple addresses in the first region described above, Based on the results of the above read operation, the next step is to determine whether or not to unmap the above dirty data. A method for operating a memory controller according to claim 16, further comprising the step of setting a second value to a bitmap value corresponding to a plurality of global logical page numbers representing at least a portion of the unmapped dirty data.
18. The step of receiving a trim request for the target region of the first region from the host device mentioned above, A step of controlling the memory device to perform a read operation on the target area based on address information indicating the target area, The operation method of the memory controller according to claim 14, further comprising the step of initializing the values of some bitmaps corresponding to the target area among the bitmaps based on the result of the above read operation.
19. The step of initializing the values of some of the bitmaps mentioned above is: Based on the results of the above read operation, the step of detecting multiple unmapped logical addresses that are mapped to invalid data among the above bitmaps, A method for operating a memory controller according to claim 18, comprising the step of setting the values of the unmapped bitmaps of multiple global logical page numbers corresponding to the multiple unmapped logical addresses among the above-mentioned bitmaps as a second value.
