TW202125206A - Memory management method and memory device - Google Patents

Memory management method and memory device Download PDF

Info

Publication number
TW202125206A
TW202125206A TW108148086A TW108148086A TW202125206A TW 202125206 A TW202125206 A TW 202125206A TW 108148086 A TW108148086 A TW 108148086A TW 108148086 A TW108148086 A TW 108148086A TW 202125206 A TW202125206 A TW 202125206A
Authority
TW
Taiwan
Prior art keywords
memory
reserved area
power
memory device
command
Prior art date
Application number
TW108148086A
Other languages
Chinese (zh)
Inventor
侯冠宇
傅子瑜
Original Assignee
宏碁股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Priority to TW108148086A priority Critical patent/TW202125206A/en
Publication of TW202125206A publication Critical patent/TW202125206A/en

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A memory management method and a memory device are provided. The method includes: dividing at least one physical block in a memory device to a reservation area; receiving a power-off command from a host system; and storing data in a buffer memory of the memory device to the reservation area when receiving the power-off command.

Description

記憶體管理方法與記憶體裝置Memory management method and memory device

本發明是有關於一種記憶體管理技術,且特別是有關於一種記憶體管理方法與記憶體裝置。The present invention relates to a memory management technology, and particularly relates to a memory management method and a memory device.

一般來說,為了提升記憶體裝置的性能,在記憶體裝置出廠時都會預留一部分記憶體空間作為超額配置(Over-provisioning, OP)使用。當記憶體裝置中可供平時使用的記憶體空間不足時,此預留作為OP使用的記憶體空間就可以用來加速記憶體裝置的存取。但是,無論是一般使用的記憶體空間或作為OP使用的記憶體空間,實際上在目前的記憶體管理機制中都有可能被寫滿。一旦記憶體裝置中所有可使用的記憶體空間都被寫滿(或即將被寫滿),當接收到來自主機系統的斷電指令時,記憶體裝置將需要花費額外的時間反覆執行例如垃圾回收等程序以釋放出新的記憶體空間,以儲存記憶體裝置因應即將到來的斷電而從緩衝記憶體搬移的資料。Generally speaking, in order to improve the performance of the memory device, a part of the memory space is reserved for over-provisioning (OP) use when the memory device leaves the factory. When the memory space available for normal use in the memory device is insufficient, the memory space reserved for OP can be used to speed up the access of the memory device. However, whether it is generally used memory space or memory space used as OP, in fact, it may be full in the current memory management mechanism. Once all the available memory space in the memory device is full (or is about to be full), when receiving a power-off command from the host system, the memory device will take extra time to repeatedly perform such as garbage collection Wait for the process to free up new memory space to store the data moved from the buffer memory by the memory device in response to the upcoming power failure.

本發明提供一種記憶體管理方法與記憶體裝置,可有效提高記憶體裝置斷電前的資料處理速度。The invention provides a memory management method and a memory device, which can effectively improve the data processing speed before the memory device is powered off.

本發明的實施例提供一種記憶體管理方法,其用於包括緩衝記憶體與記憶體模組的記憶體裝置。所述記憶體模組包括多個實體區塊。所述記憶體管理方法包括:將所述多個實體區塊中的至少一第一實體區塊劃分至保留區;從主機系統接收斷電指令;以及當接收到所述斷電指令時,將所述緩衝記憶體中的資料儲存至所述保留區。An embodiment of the present invention provides a memory management method, which is used in a memory device including a buffer memory and a memory module. The memory module includes a plurality of physical blocks. The memory management method includes: dividing at least one first physical block of the plurality of physical blocks into a reserved area; receiving a power-off command from a host system; and when the power-off command is received, The data in the buffer memory is stored in the reserved area.

本發明的實施例另提供一種記憶體裝置,其包括連接介面、緩衝記憶體、記憶體模組及記憶體控制器。所述連接介面用以耦接至主機系統。所述記憶體模組包括多個實體區塊。所述記憶體控制器耦接至所述連接介面、所述緩衝記憶體及所述記憶體模組。所述記憶體控制器用以將所述多個實體區塊中的至少一第一實體區塊劃分至保留區。所述記憶體控制器更用以經由所述連接介面從所述主機系統接收斷電指令。當接收到所述斷電指令時,所述記憶體控制器更用以將所述緩衝記憶體中的資料儲存至所述保留區。An embodiment of the present invention further provides a memory device, which includes a connection interface, a buffer memory, a memory module, and a memory controller. The connection interface is used for coupling to the host system. The memory module includes a plurality of physical blocks. The memory controller is coupled to the connection interface, the buffer memory and the memory module. The memory controller is used for dividing at least one first physical block among the plurality of physical blocks into a reserved area. The memory controller is further configured to receive a power-off command from the host system via the connection interface. When receiving the power-off command, the memory controller is further used to store the data in the buffer memory to the reserved area.

基於上述,記憶體裝置的至少一第一實體區塊可被劃分至保留區。爾後,若從主機系統接收到斷電指令,則可藉由將所述緩衝記憶體中的資料快速儲存至所述保留區,以有效提高記憶體裝置斷電前的資料處理速度及斷電速度。Based on the above, at least one first physical block of the memory device can be divided into a reserved area. Afterwards, if a power-off command is received from the host system, the data in the buffer memory can be quickly stored to the reserved area to effectively improve the data processing speed and power-off speed of the memory device before power-off .

圖1是根據本發明的一實施例所繪示的資料儲存系統的示意圖。請參照圖1,記憶體裝置10包括連接介面11、記憶體控制器12、記憶體模組13及緩衝記憶體14。連接介面11用以連接主機系統15並且例如是相容於序列先進附件(Serial Advanced Technology Attachment, SATA)、並列先進附件(Parallel Advanced Technology Attachment, PATA)、高速周邊零件連接介面(Peripheral Component Interconnect Express, PCI Express)或通用序列匯流排(Universal Serial Bus, USB)等各式連接介面標準。FIG. 1 is a schematic diagram of a data storage system according to an embodiment of the present invention. 1, the memory device 10 includes a connection interface 11, a memory controller 12, a memory module 13 and a buffer memory 14. The connection interface 11 is used to connect to the host system 15 and is, for example, compatible with Serial Advanced Technology Attachment (SATA), Parallel Advanced Technology Attachment (PATA), high-speed peripheral component connection interface (Peripheral Component Interconnect Express, Various connection interface standards such as PCI Express) or Universal Serial Bus (USB).

記憶體控制器12耦接至連接介面11、記憶體模組13及緩衝記憶體14。記憶體控制器12用以執行以硬體型式或韌體型式實作的多個邏輯閘或控制指令並且根據主機系統15的指令在記憶體模組13中進行資料的寫入、讀取與抹除等運作。此外,記憶體控制器12控制記憶體裝置10的整體運作。The memory controller 12 is coupled to the connection interface 11, the memory module 13 and the buffer memory 14. The memory controller 12 is used to execute a plurality of logic gates or control commands implemented in a hardware type or a firmware type, and perform data writing, reading and erasing in the memory module 13 according to the instructions of the host system 15 In addition to other operations. In addition, the memory controller 12 controls the overall operation of the memory device 10.

記憶體模組13用以儲存主機系統15所寫入之資料。例如,記憶體模組13可包括單階胞(single level cell, SLC)NAND型快閃記憶體模組(即,一個記憶胞可儲存1個位元的快閃記憶體模組)、多階胞(multi level cell, MLC)NAND型快閃記憶體模組(即,一個記憶胞可儲存2個位元的快閃記憶體模組)、三階胞(triple level cell, TLC)NAND型快閃記憶體模組(即,一個記憶胞可儲存3個位元的快閃記憶體模組)及/或四階胞(quad level cell, QLC)NAND型快閃記憶體模組(即,一個記憶胞可儲存4個位元的快閃記憶體模組)。緩衝記憶體14可用以暫存從主機系統15接收的資料或從記憶體模組13讀取的資料。The memory module 13 is used to store data written by the host system 15. For example, the memory module 13 may include a single level cell (SLC) NAND flash memory module (that is, a flash memory module in which one memory cell can store 1 bit), and a multi-level cell (SLC) NAND flash memory module. Multi-level cell (MLC) NAND flash memory module (that is, a flash memory module that can store 2 bits in a memory cell), triple level cell (TLC) NAND flash memory module Flash memory module (that is, a flash memory module that can store 3 bits in a memory cell) and/or a quad level cell (QLC) NAND type flash memory module (that is, one The memory cell can store a 4-bit flash memory module). The buffer memory 14 can be used to temporarily store data received from the host system 15 or data read from the memory module 13.

主機系統15可將資料儲存至記憶體裝置10中,或從記憶體裝置10中讀取資料。例如,主機系統15為可實質地與記憶體裝置10配合以儲存資料的任意系統,例如,電腦系統、數位相機、攝影機、通訊裝置、音訊播放器、視訊播放器或平板電腦等,而記憶體裝置10則可為隨身碟、記憶卡、固態硬碟(Solid State Drive, SSD)、安全數位(Secure Digital, SD)卡、小型快閃(Compact Flash, CF)卡或嵌入式儲存裝置等各式非揮發性記憶體儲存裝置。The host system 15 can store data in the memory device 10 or read data from the memory device 10. For example, the host system 15 is any system that can substantially cooperate with the memory device 10 to store data, such as a computer system, a digital camera, a video camera, a communication device, an audio player, a video player, or a tablet computer, etc., and the memory Device 10 can be a flash drive, a memory card, a solid state drive (SSD), a secure digital (SD) card, a compact flash (CF) card, or an embedded storage device, etc. Non-volatile memory storage device.

圖2是根據本發明的一實施例所繪示的管理記憶體模組的示意圖。請參照圖1與圖2,記憶體模組13包含多個實體區塊201(0)~201(n)與202(1)~202(m),其中每一個實體區塊包含一預設數目的記憶胞。記憶體模組13中的記憶胞是以臨界電壓的改變來儲存資料。例如,多個記憶胞可以頁等單位來進行程式化以改變記憶胞的臨界電壓。此外,每一個實體區塊可為一個最小抹除單位。FIG. 2 is a schematic diagram of a management memory module according to an embodiment of the present invention. 1 and 2, the memory module 13 includes a plurality of physical blocks 201(0)~201(n) and 202(1)~202(m), and each physical block includes a predetermined number Memory cell. The memory cells in the memory module 13 store data by changing the threshold voltage. For example, multiple memory cells can be programmed in units such as pages to change the threshold voltage of the memory cells. In addition, each physical block can be a minimum erasure unit.

記憶體控制器12可將實體區塊(亦稱為第二實體區塊)201(1)~201(n)邏輯地劃分至使用區210並將實體區塊(亦稱為第一實體區塊)202(1)~202(m)邏輯地劃分至保留區220。被劃分至使用區210的實體區塊201(1)~201(n)可正常被使用。例如,當主機系統15發送寫入指令至記憶體裝置10時,記憶體控制器12可根據此寫入指令所指示的邏輯位址(例如邏輯區塊位址)將此寫入指令所攜帶的資料寫入至使用區210中此邏輯位址所映射的實體區塊。或者,當主機系統15發送讀取指令至記憶體裝置10時,記憶體控制器12可根據此讀取指令所指示的邏輯位址(例如邏輯區塊位址)從此邏輯位址所映射的實體區塊中讀取資料,並將所讀取的資料傳送至主機系統15。The memory controller 12 can logically divide the physical block (also called the second physical block) 201(1)~201(n) into the usage area 210 and the physical block (also called the first physical block) ) 202(1)~202(m) are logically divided into the reserved area 220. The physical blocks 201(1)~201(n) divided into the usage area 210 can be used normally. For example, when the host system 15 sends a write command to the memory device 10, the memory controller 12 can according to the logical address (such as a logical block address) indicated by the write command. The data is written to the physical block mapped by the logical address in the usage area 210. Alternatively, when the host system 15 sends a read command to the memory device 10, the memory controller 12 can use the logical address (for example, a logical block address) indicated by the read command from the entity mapped from the logical address Read data in the block, and send the read data to the host system 15.

在一實施例中,被劃分至使用區210的實體區塊201(1)~201(n)可包括已儲存有使用者資料的實體區塊、經抹除且待使用的閒置實體區塊、專用以儲存系統資料(例如邏輯至實體映射表)的實體區塊及/或用於替換已損壞的實體區塊的備用實體區塊。此外,被劃分至使用區210的實體區塊201(1)~201(n)的至少一部分的容量可被提供給主機系統15使用,以對記憶體裝置10的可用容量進行管理。In one embodiment, the physical blocks 201(1) to 201(n) divided into the use area 210 may include physical blocks that have stored user data, free physical blocks that are erased and to be used, A physical block dedicated to storing system data (such as a logical-to-physical mapping table) and/or a spare physical block used to replace a damaged physical block. In addition, at least a part of the capacity of the physical blocks 201(1) to 201(n) divided into the usage area 210 can be provided to the host system 15 to manage the available capacity of the memory device 10.

另一方面,記憶體控制器12可限制被劃分至保留區220的實體區塊202(1)~202(m)只有在接收到來自主機系統15的斷電指令時才能使用。例如,當主機系統15偵測到斷電訊號時,主機系統15可根據此斷電訊號將斷電指令傳送至記憶體裝置10。記憶體控制器12可經由連接介面11接收此斷電指令。根據此斷電指令,記憶體控制器12可將緩衝記憶體14中的資料儲存至保留區220。On the other hand, the memory controller 12 can restrict the physical blocks 202(1) to 202(m) divided into the reserved area 220 to be used only when a power-off command from the host system 15 is received. For example, when the host system 15 detects a power-off signal, the host system 15 can transmit a power-off command to the memory device 10 according to the power-off signal. The memory controller 12 can receive the power-off command via the connection interface 11. According to the power-off command, the memory controller 12 can store the data in the buffer memory 14 to the reserved area 220.

換言之,若未接收到來自主機系統15的斷電指令,則在記憶體裝置10的運作過程中,被劃分至保留區220的實體區塊202(1)~202(m)可持續被禁止使用。藉此,可確保被劃分至保留區220的實體區塊202(1)~202(m)中至少大部分的實體區塊平時都是處於閒置狀態(即已被抹除且尚未被程式化)。當接收到來自主機系統15的斷電指令時,緩衝記憶體14中的資料可立即被儲存至被劃分至保留區220的實體區塊202(1)~202(m)中,進而提升記憶體裝置10的斷電速度。In other words, if the power-off command from the host system 15 is not received, during the operation of the memory device 10, the physical blocks 202(1)~202(m) divided into the reserved area 220 can be continuously prohibited from being used . In this way, it can be ensured that at least most of the physical blocks in the physical blocks 202(1)~202(m) divided into the reserved area 220 are usually idle (that is, they have been erased and have not been programmed) . When a power-off command from the host system 15 is received, the data in the buffer memory 14 can be immediately stored in the physical blocks 202(1)~202(m) divided into the reserved area 220, thereby improving the memory The power-off speed of the device 10.

在一實施例中,被劃分至保留區220的實體區塊202(1)~202(m)的容量不被提供給主機系統15使用。也就是說,主機系統15不會將被劃分至保留區220的實體區塊202(1)~202(m)的容量視為記憶體裝置10的可用容量。藉此,可避免來自主機系統15的使用者資料佔用保留區220的容量。In an embodiment, the capacity of the physical blocks 202(1)-202(m) divided into the reserved area 220 is not provided to the host system 15 for use. In other words, the host system 15 will not regard the capacity of the physical blocks 202(1) to 202(m) divided into the reserved area 220 as the usable capacity of the memory device 10. In this way, the user data from the host system 15 can be prevented from occupying the capacity of the reserved area 220.

在一實施例中,當主機系統15偵測到反映即將進入工作模式中的S3、S4或S5模式的斷電訊號時,主機系統15可將斷電指令傳送給記憶體裝置10。記憶體控制器12可根據此斷電指令將記憶體裝置10斷電。此外,上述將緩衝記憶體14中的資料儲存至保留區220之操作可以是記憶體控制器12響應於此斷電指令而執行且在記憶體裝置10實際被斷電之前完成。In one embodiment, when the host system 15 detects a power-off signal indicating that the S3, S4, or S5 mode is about to enter the working mode, the host system 15 may send a power-off command to the memory device 10. The memory controller 12 can power off the memory device 10 according to the power off command. In addition, the above-mentioned operation of storing data in the buffer memory 14 to the reserved area 220 may be executed by the memory controller 12 in response to the power-off command and completed before the memory device 10 is actually powered off.

在一實施例中,當記憶體裝置10被斷電且重新上電後,記憶體控制器12可將儲存於保留區220中的資料複製到被劃分至使用區210的實體區塊201(1)~201(n)中。換言之,保留區220只是用來保存斷電前從緩衝記憶體14搬移的資料。待記憶體裝置10被重新上電後,保留區220中的資料可根據相應的邏輯至實體映射關係而被儲存至使用區210中原先設定的實體位址。例如,當記憶體裝置10被重新上電後,記憶體控制器12可根據保留區220中的資料的邏輯位址查詢邏輯至實體映射表以獲得此邏輯位址所映射的實體區塊。接著,記憶體控制器12可將此資料從保留區220複製或移動至此實體區塊並指示記憶體模組13抹除保留區220中原先用以暫存此資料的實體區塊。保留區220中經抹除的實體區塊可回復至閒置狀態,以等待下一次記憶體裝置10被斷電時使用。In one embodiment, when the memory device 10 is powered off and powered on again, the memory controller 12 can copy the data stored in the reserved area 220 to the physical block 201 (1 )~201(n). In other words, the reserved area 220 is only used to store the data moved from the buffer memory 14 before the power is off. After the memory device 10 is powered on again, the data in the reserved area 220 can be stored to the originally set physical address in the use area 210 according to the corresponding logical-to-physical mapping relationship. For example, when the memory device 10 is powered on again, the memory controller 12 can query the logical-to-physical mapping table according to the logical address of the data in the reserved area 220 to obtain the physical block mapped by the logical address. Then, the memory controller 12 can copy or move the data from the reserved area 220 to the physical block and instruct the memory module 13 to erase the physical block originally used to temporarily store the data in the reserved area 220. The erased physical blocks in the reserved area 220 can be restored to an idle state for use when the memory device 10 is powered off next time.

在一實施例中,記憶體模組13中被劃分至保留區220的實體區塊202(1)~202(m)的容量可佔記憶體模組13的所有實體區塊的總容量的1%至28%之間(例如7%),且本發明不限於此。In an embodiment, the capacity of the physical blocks 202(1)~202(m) in the memory module 13 divided into the reserved area 220 can account for 1% of the total capacity of all the physical blocks of the memory module 13. % To 28% (for example, 7%), and the present invention is not limited thereto.

圖3是根據本發明的一實施例所繪示的記憶體管理方法的流程圖。請參照圖3,在步驟S301中,將記憶體模組中的至少一第一實體區塊劃分至保留區。在步驟S302中,判斷是否從主機系統接收到斷電指令。當接收到所述斷電指令時,在步驟S303中,將緩衝記憶體中的資料儲存至所述保留區。此外,若未接收到所述斷電指令,則在步驟S304中,可持續禁止使用所述保留區。FIG. 3 is a flowchart of a memory management method according to an embodiment of the invention. Referring to FIG. 3, in step S301, at least one first physical block in the memory module is divided into a reserved area. In step S302, it is determined whether a power-off instruction is received from the host system. When the power-off instruction is received, in step S303, the data in the buffer memory is stored in the reserved area. In addition, if the power-off instruction is not received, in step S304, the reserved area can be continuously prohibited from being used.

然而,圖3中各步驟已詳細說明如上,在此便不再贅述。值得注意的是,圖3中各步驟可以實作為多個程式碼或是電路,本發明不加以限制。此外,圖3的方法可以搭配以上範例實施例使用,也可以單獨使用,本發明不加以限制。However, each step in FIG. 3 has been described in detail as above, and will not be repeated here. It is worth noting that each step in FIG. 3 can be implemented as multiple program codes or circuits, and the present invention is not limited. In addition, the method in FIG. 3 can be used in conjunction with the above exemplary embodiments, or can be used alone, and the present invention is not limited.

綜上所述,記憶體裝置的至少一第一實體區塊可被劃分至保留區。爾後,若從主機系統接收到斷電指令,則可藉由將所述緩衝記憶體中的資料快速儲存至所述保留區,以有效提高記憶體裝置斷電前的資料處理速度及斷電速度。In summary, at least one first physical block of the memory device can be divided into a reserved area. Afterwards, if a power-off command is received from the host system, the data in the buffer memory can be quickly stored to the reserved area to effectively improve the data processing speed and power-off speed of the memory device before power-off .

10:記憶體裝置 11:連接介面 12:記憶體控制器 13:記憶體模組 14:緩衝記憶體 15:主機系統 210:使用區 220:保留區 201(1)~201(n)、202(1)~202(m):實體區塊 S301~S304:步驟10: Memory device 11: Connection interface 12: Memory controller 13: Memory module 14: Buffer memory 15: host system 210: Use area 220: reserved area 201(1)~201(n), 202(1)~202(m): physical block S301~S304: steps

圖1是根據本發明的一實施例所繪示的資料儲存系統的示意圖。 圖2是根據本發明的一實施例所繪示的管理記憶體模組的示意圖。 圖3是根據本發明的一實施例所繪示的記憶體管理方法的流程圖。FIG. 1 is a schematic diagram of a data storage system according to an embodiment of the present invention. FIG. 2 is a schematic diagram of a management memory module according to an embodiment of the present invention. FIG. 3 is a flowchart of a memory management method according to an embodiment of the invention.

S301~S304:步驟S301~S304: steps

Claims (10)

一種記憶體管理方法,用於包括一緩衝記憶體與一記憶體模組的一記憶體裝置,其中該記憶體模組包括多個實體區塊,且該記憶體管理方法包括: 將該多個實體區塊中的至少一第一實體區塊劃分至一保留區; 從一主機系統接收一斷電指令;以及 當接收到該斷電指令時,將該緩衝記憶體中的資料儲存至該保留區。A memory management method for a memory device including a buffer memory and a memory module, wherein the memory module includes a plurality of physical blocks, and the memory management method includes: Dividing at least one first physical block of the plurality of physical blocks into a reserved area; Receive a power-off command from a host system; and When the power-off command is received, the data in the buffer memory is stored in the reserved area. 如申請專利範圍第1項所述的記憶體管理方法,更包括: 限制被劃分至該保留區的該至少一第一實體區塊只有在接收到該斷電指令時才能使用。The memory management method described in item 1 of the scope of patent application further includes: The at least one first physical block divided into the reserved area is restricted to be used only when the power-off command is received. 如申請專利範圍第1項所述的記憶體管理方法,更包括: 根據該斷電指令將該記憶體裝置斷電;以及 當該記憶體裝置重新上電後,將儲存於該保留區中的該資料複製到該多個實體區塊中未被劃分至該保留區的至少一第二實體區塊。The memory management method described in item 1 of the scope of patent application further includes: Power off the memory device according to the power off instruction; and When the memory device is powered on again, the data stored in the reserved area is copied to at least one second physical block of the plurality of physical blocks that is not divided into the reserved area. 如申請專利範圍第1項所述的記憶體管理方法,其中被劃分至該保留區的該至少一第一實體區塊的容量不被提供給該主機系統使用。In the memory management method described in claim 1, wherein the capacity of the at least one first physical block divided into the reserved area is not provided to the host system for use. 如申請專利範圍第1項所述的記憶體管理方法,其中被劃分至該保留區的該至少一第一實體區塊的容量佔該多個實體區塊的總容量的1%至28%之間。As for the memory management method described in claim 1, wherein the capacity of the at least one first physical block divided into the reserved area accounts for 1% to 28% of the total capacity of the plurality of physical blocks between. 一種記憶體裝置,包括: 一連接介面,用以耦接至一主機系統; 一緩衝記憶體; 一記憶體模組,包括多個實體區塊;以及 一記憶體控制器,耦接至該連接介面、該緩衝記憶體及該記憶體模組, 其中該記憶體控制器用以將該多個實體區塊中的至少一第一實體區塊劃分至一保留區, 該記憶體控制器更用以經由該連接介面從該主機系統接收一斷電指令,並且 當接收到該斷電指令時,該記憶體控制器更用以將該緩衝記憶體中的資料儲存至該保留區。A memory device includes: A connection interface for coupling to a host system; A buffer memory; A memory module including multiple physical blocks; and A memory controller coupled to the connection interface, the buffer memory and the memory module, The memory controller is used for dividing at least one first physical block among the plurality of physical blocks into a reserved area, The memory controller is further used to receive a power-off command from the host system via the connection interface, and When receiving the power-off command, the memory controller is further used to store the data in the buffer memory to the reserved area. 如申請專利範圍第6項所述的記憶體裝置,其中該記憶體控制器更用以限制被劃分至該保留區的該至少一第一實體區塊只有在接收到該斷電指令時才能使用。For the memory device described in item 6 of the scope of patent application, the memory controller is further used to restrict the at least one first physical block divided into the reserved area to be used only when the power-off command is received . 如申請專利範圍第6項所述的記憶體裝置,其中該記憶體控制器更用以根據該斷電指令將該記憶體裝置斷電,並且 當該記憶體裝置重新上電後,該記憶體控制器更用以將儲存於該保留區中的該資料複製到該多個實體區塊中未被劃分至該保留區的至少一第二實體區塊。According to the memory device described in item 6 of the scope of patent application, the memory controller is further used to power off the memory device according to the power-off command, and After the memory device is powered on again, the memory controller is further used to copy the data stored in the reserved area to at least one second entity in the plurality of physical blocks that is not divided into the reserved area Block. 如申請專利範圍第6項所述的記憶體裝置,其中被劃分至該保留區的該至少一第一實體區塊的容量不被提供給該主機系統使用。In the memory device described in item 6 of the scope of patent application, the capacity of the at least one first physical block divided into the reserved area is not provided to the host system for use. 如申請專利範圍第6項所述的記憶體裝置,其中被劃分至該保留區的該至少一第一實體區塊的容量佔該多個實體區塊的總容量的1%至28%之間。The memory device described in item 6 of the scope of patent application, wherein the capacity of the at least one first physical block divided into the reserved area accounts for between 1% and 28% of the total capacity of the plurality of physical blocks .
TW108148086A 2019-12-27 2019-12-27 Memory management method and memory device TW202125206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108148086A TW202125206A (en) 2019-12-27 2019-12-27 Memory management method and memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108148086A TW202125206A (en) 2019-12-27 2019-12-27 Memory management method and memory device

Publications (1)

Publication Number Publication Date
TW202125206A true TW202125206A (en) 2021-07-01

Family

ID=77908555

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108148086A TW202125206A (en) 2019-12-27 2019-12-27 Memory management method and memory device

Country Status (1)

Country Link
TW (1) TW202125206A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI796935B (en) * 2022-01-19 2023-03-21 宏碁股份有限公司 Memory control method and memory storage devcie

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI796935B (en) * 2022-01-19 2023-03-21 宏碁股份有限公司 Memory control method and memory storage devcie

Similar Documents

Publication Publication Date Title
US20180260317A1 (en) Method for managing the copying and storing of data in garbage collection, memory storage device and memory control circuit unit using the same
US9268687B2 (en) Data writing method, memory control circuit unit and memory storage apparatus
US9280460B2 (en) Data writing method, memory control circuit unit and memory storage apparatus
US9880742B2 (en) Valid data merging method, memory controller and memory storage apparatus
US20170039141A1 (en) Mapping table updating method, memory storage device and memory control circuit unit
US8812776B2 (en) Data writing method, and memory controller and memory storage device using the same
US9665481B2 (en) Wear leveling method based on timestamps and erase counts, memory storage device and memory control circuit unit
US10303367B2 (en) Mapping table updating method without updating the first mapping information, memory control circuit unit and memory storage device
US8694748B2 (en) Data merging method for non-volatile memory module, and memory controller and memory storage device using the same
US9141530B2 (en) Data writing method, memory controller and memory storage device
US8423838B2 (en) Block management method, memory controller, and memory storage apparatus
US10503433B2 (en) Memory management method, memory control circuit unit and memory storage device
CN106445401B (en) Table updating method, memory storage device and memory control circuit unit
US20170329539A1 (en) Data writing method, memory control circuit unit and memory storage device
US9378130B2 (en) Data writing method, and memory controller and memory storage apparatus using the same
TWI536166B (en) Memory management method, memory control circuit unit and memry storage apparatus
US20130332653A1 (en) Memory management method, and memory controller and memory storage device using the same
US9223688B2 (en) Data storing method and memory controller and memory storage device using the same
US11755242B2 (en) Data merging method, memory storage device for updating copied L2P mapping table according to the physical address of physical unit
US8572350B2 (en) Memory management, memory control system and writing method for managing rewritable semiconductor non-volatile memory of a memory storage system
US9778862B2 (en) Data storing method for preventing data losing during flush operation, memory control circuit unit and memory storage apparatus
US10346040B2 (en) Data merging management method based on data type, memory storage device and memory control circuit unit
US10824340B2 (en) Method for managing association relationship of physical units between storage area and temporary area, memory control circuit unit, and memory storage apparatus
US9760456B2 (en) Memory management method, memory storage device and memory control circuit unit
TW202125206A (en) Memory management method and memory device