Periodic and activity-based memory management
By using activation counters and threshold comparisons in memory management to decide whether to perform wear leveling or sensing and flipping operations, the problem of unnecessary operations during low activity periods in the prior art is solved, more efficient memory management is achieved, and the cost is reduced power consumption and extends the life of the memory cell.
Patent Information
- Application Number
- CN202410186936.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-21
- Filing Date
- 2024-02-20
- Publication Date
- 2024-08-23
AI Technical Summary
Existing memory management techniques perform unnecessary wear-leveling operations during periods of low activity, resulting in increased power consumption and possible memory cell imprinting.
By deciding whether to perform wear leveling operations based on the frequency of memory cell usage, using activation counters and threshold comparisons to decide whether to perform wear leveling or sensing and flipping operations, these operations are only performed after receiving a predetermined amount of activation commands.
Unnecessary wear leveling operations are reduced, the life of the memory cell is extended, power consumption is reduced, and the occurrence of memory cell imprinting is reduced.
Smart Images

Figure CN118538265A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate generally to memory subsystems, and more specifically, to periodic and activity-based memory management. Background Art
[0002] Memory devices are typically provided in computers or other electronic devices as internal semiconductor integrated circuits and / or external removable devices. There are many different types of memory, including volatile and non-volatile memory. Volatile memory may require power to maintain its data, and includes random access memory (RAM), dynamic random access memory (DRAM), and synchronous dynamic random access memory (SDRAM), etc. Non-volatile memory can provide persistent data by retaining stored data when power is not supplied, and may include NAND flash memory, NOR flash memory, read-only memory (ROM), and resistance variable memory (such as phase change random access memory (PCRAM)), resistive random access memory (RRAM), ferroelectric random access memory (FERAM), magnetic random access memory (MRAM), and programmable conductive memory, etc.
[0003] Memory devices can be used as volatile and nonvolatile memory for a wide range of electronic applications requiring high storage density, high reliability, and low power consumption. Nonvolatile memory can be used, for example, in personal computers, portable memory sticks, solid-state drives (SSDs), digital cameras, cellular phones, portable music players such as MP3 players, and movie players, and other electronic devices.
[0004] A memory device may include memory cells that can store data based on a charge level of a storage element or can store data based on its conductivity state. Such memory cells can be programmed to store data corresponding to a target data state by changing the charge level of the storage element or by changing the conductivity level of the storage element. For example, a source of electric field or energy, such as a positive or negative electrical pulse (e.g., a positive or negative voltage or current pulse), can be applied to a memory cell (e.g., to a storage element of the cell) for a specific duration to program the cell to a target data state.
[0005] A memory cell can be programmed to one of several data states. For example, a single level memory cell (SLC) can be programmed to target one of two different data states, which can be represented by a binary unit 1 or 0 and can depend on whether the capacitor of the cell is charged or uncharged. As an additional example, some memory cells can be programmed to target more than two data states (e.g., 1111, 0111, 0011, 1011, 1001, 0001, 0101, 1101, 1100, 0100, 0000, 1000, 1010, 0010, 0110, and 1110). Such cells may be referred to as multi-state memory cells, multi-unit cells, or multi-level cells (MLCs). MLCs can provide higher density memory without increasing the number of memory cells because each cell can represent more than one digit (e.g., more than one data bit). Summary of the invention
[0006] On the one hand, the present disclosure provides a device for memory management, comprising: a memory management block; and a memory management storage body coupled to the memory management block, wherein: the memory management storage body includes multiple storage bodies; and each of the multiple storage bodies includes: an activation counter, which is incremented in response to the storage body receiving an activation command; and a circuit system, which is used to: determine whether the value of the activation counter is equal to or greater than a wear leveling threshold; and perform a wear leveling operation on the data stored in the storage body in response to determining that the value of the activation counter is equal to or greater than the wear leveling threshold.
[0007] On the other hand, the present disclosure provides a method for memory management, which includes: determining the value of an activation flag; performing a sensing and flipping operation on data stored in a memory in response to determining that the activation flag has a first value; comparing the value of a first counter with a value of a first threshold in response to determining that the activation flag has a second value; resetting the value of the first counter in response to determining that the value of the first counter is greater than or equal to the value of the first threshold; incrementing the value of the first counter in response to determining that the value of the first counter is less than the value of the first threshold; and performing a wear leveling operation on the data stored in the memory in response to determining that the value of the second counter is greater than or equal to the value of the second threshold.
[0008] On the other hand, the present disclosure provides a system for memory management, comprising: a host; and a memory device coupled to the host, wherein the memory device includes: a memory management circuit system, wherein the memory management circuit system includes: a plurality of memory bodies; and a memory management block, which is used to determine whether to perform sensing and flipping operations on data stored in the plurality of memory bodies, whether to perform wear leveling operations on the data stored in the plurality of memory bodies, or whether not to perform operations on the data stored in the plurality of memory bodies; and wherein each of the plurality of memory bodies includes: a first logic gate, which is used to couple the memory body to the memory management block; a circuit system, which is used to perform the wear leveling operation; an activation counter, which is used to increment in response to the memory management circuit system receiving an activation command from the host; a circuit system, which is used to compare the value of the activation counter with the value of a wear leveling threshold; and a second logic gate, which is used to couple the memory body to other memory bodies in the plurality of memory bodies. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 An example computing system including a memory subsystem according to some embodiments of the present disclosure is described.
[0010] Figure 2 Periodic and activity-based memory management circuitry according to some embodiments of the present disclosure is described.
[0011] Figure 3 is a flow chart of a method for periodic and activity-based memory management according to some embodiments of the present disclosure.
[0012] Figure 4 is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION
[0013] The present disclosure includes apparatus, methods, and systems for periodic and activity-based memory management. Embodiments include a memory management block and a memory management storage body coupled to the memory management block, wherein the memory management storage body includes a plurality of storage bodies, and each storage body of the plurality of storage bodies includes an activation counter that is incremented in response to the storage body receiving an activation command (e.g., from a host or a controller). Each storage body also includes circuitry that determines whether a value of the activation counter is greater than or equal to a wear leveling threshold (e.g., an activity-based memory management threshold), and performs a wear leveling operation on data stored in the storage body in response to determining that the value of the activation counter is greater than or equal to the wear leveling threshold.
[0014] A memory cell can withstand a certain amount of memory operations (e.g., activation, programming, sensing, and / or erasing operations) before it wears out (e.g., begins to degrade and / or fails). A variety of techniques can be implemented in a memory device to mitigate the effects of such degradation. One such technique is wear leveling. As used herein, the term "wear leveling" refers to evenly distributing program (e.g., write) operations throughout the memory cells in a memory device. In one wear leveling example, memory blocks that are not currently storing data are checked, and the block with the lowest erase count can be selected for the next write operation. The wear leveling circuit system can select an empty block to write the data to be updated. This can be achieved by a controller that tracks the number of write operations performed on each memory cell block. In another wear leveling example, the controller can select a memory block from all memory blocks in the memory device as a block to which data is to be rewritten. The block can be a block with relatively few entries corresponding to a block containing static data or an empty block. In yet another wear leveling example, the memory device can move the stored data through all pages in a page pool and reassign addressing to track logical page locations and physical page locations. Because writes are evenly distributed among the memory cells, wear leveling can extend the life of memory cells by reducing the number of writes performed to certain memory cells.
[0015] In previous approaches, the circuit system may be configured to perform wear leveling on the memory cells after a certain amount of time has passed. As the amount of time becomes shorter and wear leveling is performed more frequently, the circuit system may adapt to active commands issued at a higher maximum frequency. As used herein, the term "maximum frequency" refers to a frequency of issuing commands that is greater than a certain frequency at which commands are issued. However, this may result in additional and unnecessary wear leveling operations being performed on the memory cells during periods of low activity.
[0016] Additionally, a memory cell may experience imprinting. As used herein, "imprinting" refers to a condition in which a memory cell becomes prone to storing one logic state over another, resists being written to a different logic state, or both. A memory cell may be imprinted when a certain logic state is stored by the memory cell and subsequent access operations cannot be scheduled for the memory cell over an extended period of time while the logic state is stored. Additionally, a memory cell may be imprinted when the same logic value may be continuously written to the memory cell over an extended period of time.
[0017] However, embodiments of the present disclosure may reduce and / or prevent unnecessary wear leveling operations by performing wear leveling operations based on usage of a memory cell (e.g., rather than based on elapsed time). For example, a wear leveling operation may be performed on a memory cell (e.g., on a memory bank of memory cells) based on an amount of activation commands received by the memory bank. Thus, a wear leveling operation may be performed on the memory bank after the memory bank receives a predetermined amount of activation commands.
[0018] In addition, embodiments of the present disclosure can reduce and / or prevent memory cell imprinting by implementing a sense and flip cycle. As used herein, the term "sense and flip cycle" refers to a memory operation in which a row of memory cells is activated and the data in the memory cells is rewritten to memory cells in the opposite polarity. For example, a sense and flip operation can be performed on a memory bank after the memory bank receives a certain number of commands or after a certain amount of time.
[0019] As used herein, "a" or "several" may refer to one or more of something, and "plurality" may refer to two or more of such something. For example, a memory device may refer to one or more memory devices, and a plurality of memory devices may refer to two or more memory devices. Additionally, the designators "N" and "M" as used herein (particularly with respect to reference numerals in the drawings) indicate that a number of the particular features so indicated may be included in several embodiments of the present disclosure.
[0020] Figure 1 An example computing system 100 is illustrated that includes a memory subsystem 110 according to some embodiments of the present disclosure. Memory subsystem 110 may include media such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination thereof.
[0021] The memory subsystem 110 may be a storage device, a memory module, or a hybrid of a storage device and a memory module. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).
[0022] Computing system 100 may be a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., an airplane, drone, train, car, or other vehicle), a device with Internet of Things (IoT) capabilities, an embedded computer (e.g., a computer included in a vehicle, industrial equipment, or a networked business device), or such a computing device that includes a memory and a processing device.
[0023] The computing system 100 may include a host system 120 coupled to one or more memory subsystems 110. In some embodiments, the host system 120 is coupled to memory subsystems 110 of different types. Figure 1 An example of a host system 120 coupled to one memory subsystem 110 is illustrated. As used herein, the term "coupled to" or "coupled with" may refer to a connection between components, which may be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.
[0024] The host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system 120 uses, for example, the memory subsystem 110 to write data to the memory subsystem 110 and read data from the memory subsystem 110.
[0025] The host system 120 may be coupled to the memory subsystem 110 via an interface (e.g., a physical host interface). Examples of the interface may include, but are not limited to, a serial advanced technology attachment (SATA) interface, a peripheral component interconnect express (PCIe) interface, a universal serial bus (USB) interface, a Fibre Channel, a small computer system interface (SCSI), a serial attached SCSI (SAS), a dual in-line memory module (DIMM) interface (e.g., a DIMM slot interface supporting double data rate (DDR)), an open NAND flash interface (ONFI), a double data rate (DDR), a low power double data rate (LPDDR), a universal serial bus (USB), or any other interface. The interface may be used to transfer data between the host system 120 and the memory subsystem 110. The host system 120 may further utilize an NVM express (NVMe) interface to access memory components (e.g., memory device 130) when the memory subsystem 110 is coupled to the host system 120 through a PCIe interface. The interface may provide a means for passing control, address, data, and other signals between the memory subsystem 110 and the host system 120 . Figure 1Memory subsystem 110 is illustrated as an example. In general, host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0026] Memory devices 130, 140 may include any combination of different types of non-volatile memory devices and / or volatile memory devices. Volatile memory devices (e.g., memory device 140) may be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).
[0027] Some examples of nonvolatile memory devices (eg, memory device 130) include NAND-type flash memory and write-in-place memory. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).
[0028] Each of the memory devices 130 may include one or more arrays of memory cells. One type of memory cell, such as a single level cell (SLC), may store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), and five-level cells (PLC), may store multiple bits per cell. In some embodiments, each of the memory devices 130 may include one or more arrays of memory cells, such as SLC, MLC, TLC, QLC, or any combination thereof. In some embodiments, a particular memory device may include an SLC portion and an MLC portion, a TLC portion, a QLC portion, or a PLC portion of memory cells. The memory cells of the memory devices 130 may be grouped into pages that may refer to a logical unit of a memory device for storing data. For some types of memory, such as NAND, pages may be grouped to form blocks.
[0029] Although a non-volatile memory component such as a NAND-type memory (e.g., 2D NAND, 3D NAND) is described, the memory device 130 may be based on any other type of non-volatile memory or storage device, such as read-only memory (ROM), phase change memory (PCM), self-select memory, other chalcogenide-based memory, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), NOR (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).
[0030] The memory subsystem controller 115 (or controller 115 for simplicity) may communicate with the memory device 130 to perform operations such as reading data, writing data, or erasing data at the memory device 130, as well as other such operations. The memory subsystem controller 115 may include hardware such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The hardware may include digital circuitry with dedicated (i.e., hard-coded) logic to perform the operations described herein. The memory subsystem controller 115 may be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor.
[0031] The memory subsystem controller 115 may be a processing device that includes one or more processors (e.g., processor 117) configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the memory subsystem controller 115 includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 110, including handling communications between the memory subsystem 110 and the host system 120.
[0032] In some embodiments, local memory 119 may include memory registers that store memory pointers, fetched data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Figure 1 The example memory subsystem 110 in FIG. 1 has been described as including a memory subsystem controller 115, but in another embodiment of the present disclosure, the memory subsystem 110 does not include a memory subsystem controller 115, but may rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).
[0033] In general, the memory subsystem controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130 and / or the memory device 140. The memory subsystem controller 115 may be responsible for other operations such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical addresses (e.g., logical block addresses (LBA), namespaces) and physical addresses (e.g., physical block addresses) associated with the memory device 130. The memory subsystem controller 115 may further include a host interface (not shown) circuit system to communicate with the host system 120 via a physical host interface (not shown). The host interface circuit system may convert commands received from the host system into command instructions to access the memory device 130 and / or the memory device 140, and convert responses associated with the memory device 130 and / or the memory device 140 into information for the host system 120.
[0034] The memory subsystem 110 may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that may receive addresses from the memory subsystem controller 115 and decode the addresses to access the memory device 130 and / or the memory device 140.
[0035] In some embodiments, memory device 130 includes a local media controller 135 that operates in conjunction with memory subsystem controller 115 to perform operations on one or more memory cells of memory device 130. An external controller (e.g., memory subsystem controller 115) may externally manage memory device 130 (e.g., perform media management operations on memory device 130). In some embodiments, memory device 130 is a managed memory device, which is a raw memory device combined with a local controller (e.g., local controller 135) for media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.
[0036] Memory subsystem 110 includes memory management circuitry 113. In some embodiments, memory management circuitry 113 is located on memory device 130. Figure 2As further described in, the memory management circuit system 113 may include a memory management block and a plurality of memory banks. Each memory bank may include a plurality (e.g., a group) of memory cells of the memory device 130, a circuit system for performing wear leveling operations, an activation counter, and a circuit system for comparing the value of the activation counter to a wear leveling threshold. The memory management circuit system 113 may be configured to perform a wear leveling operation on the memory bank (e.g., on the data stored in the memory cells of the memory bank) when the value of the activation counter is greater than the wear leveling threshold, and to perform a sense and flip operation on the memory bank (e.g., on the data stored in the memory cells of the memory bank) when the memory management command counter is greater than the sense and flip threshold (e.g., the periodic memory management operation threshold). Performing the wear leveling operation and the sense and flip operation in this manner may reduce and / or prevent unnecessary wear leveling operations from being performed on the memory bank, and may reduce and / or prevent memory cell imprinting from occurring in the memory bank, as previously described herein.
[0037] Figure 2 The periodic and activity-based memory management circuit system 213 according to some embodiments of the present disclosure is illustrated. The periodic and activity-based memory management circuit system 213 may be, for example, a previously described memory management circuit system. Figure 1 Memory management circuitry 113 is described.
[0038] As in Figure 2As shown in FIG. 1 , the memory management (e.g., MM) circuit system 213 includes a memory management block 222 (e.g., an activity-aware periodic memory management block) and a memory management bank 229, which includes a plurality of banks 231-1, 231-2, ..., 231-N (individually or collectively referred to as banks 231). In some embodiments, the memory device may include M memory management banks 229, and each memory management bank 229 may include N banks 231; therefore, the memory device may include M*N number of banks 231. A periodic MM command may be issued to any of the M number of memory management banks 229, and an activate command may be issued to any of the M*N number of banks 231. Each memory bank 231 may include a first logic gate 228-1, 228-2, ..., 228-N (individually or collectively referred to as a first logic gate 228), a wear leveling circuit system 234-1, 234-2, ..., 234-N (individually or collectively referred to as a wear leveling circuit system 234), an activation counter 236-1, 236-2, ..., 236-N (individually or collectively referred to as an activation counter 236), a comparison circuit system 238-1, 238-2, ..., 238-N (individually or collectively referred to as a comparison circuit system 238) and a second logic gate 242-1, 242-2, ..., 242-N (individually or collectively referred to as a second logic gate 242). Each memory bank 231 may also include a plurality of memory cells (e.g., a memory cell group) (not shown in the figure for simplicity and to avoid obscuring the embodiments of the present disclosure). Figure 2 In some embodiments, each memory bank 231 in the memory management memory bank 229 may perform an action based on the memory management memory bank 229 receiving a single memory management command.
[0039] Each corresponding activation counter 236 may be incremented in response to its memory bank 231 receiving an activation command. Comparison circuitry 238 may determine whether the value of activation counter 236 is greater than or equal to the wear leveling threshold by comparing the value of activation counter 236 with the value of the wear leveling threshold, and wear leveling circuitry 234 may perform a wear leveling operation on the data stored in its memory bank 231 in response to determining that the value of activation counter 236 is greater than or equal to the wear leveling threshold.
[0040] In some embodiments, the memory management block 222 may determine whether to perform a memory operation (e.g., a read, write, or erase operation) on data stored in a memory bank 231 among the plurality of memory banks 231 in response to receiving a command to perform a memory operation. The command may be from a host (e.g., Figure 1In some embodiments, the memory management block 222 may determine whether to perform a wear leveling operation on the data stored in the memory body 231, perform a sense and flip operation on the data stored in the memory body 231, or perform no operation on the data stored in the memory body 231 in response to a memory operation having been performed on the data. The memory management block 222 may include a memory management counter 223 that is incremented in response to the memory management memory body 229 receiving a memory management command (e.g., a periodic memory management command). As used herein, the term "periodic memory management command" refers to a command that facilitates the memory unit to operate as expected. In this embodiment, the memory management command may trigger a wear leveling operation or a sense and flip operation. For example, a controller (e.g., Figure 1 The host 120 in the memory management block 222 may issue a memory management command, and in response to receiving the memory management command, the memory management block 222 may trigger a wear leveling operation and / or a sense and flip operation. Multiple periodic memory management commands may be converted into possible activity-based memory management operations or periodic memory management operations based on the value of the memory management counter 223. In some embodiments, multiple periodic memory management commands may be issued at a memory management interval (tMMI). tMMI is the amount of time allowed to issue a number of memory management commands, and when the activation command occurs at the maximum frequency, the amount of time meets the requirements for triggering a time-based sense and flip operation and an activity-based wear leveling operation. The memory management block 222 may further include a circuit system (not shown) for determining whether the value of the memory management counter 223 is greater than or equal to a sense and flip operation threshold and performing a sense and flip operation on data stored in the memory bank 231 in response to determining that the value of the memory management counter 223 is greater than or equal to the sense and flip operation threshold. In some embodiments, an activity-based memory management operation will only be performed if the activation counter 236 is greater than or equal to the activity-based memory management command threshold.
[0041] The periodic memory management operations associated with the sense and flip operations may occur at periodic time intervals that depend on the memory management interval and the sense and flip threshold. In addition, the periodic memory management operations may be performed after a plurality of periodic memory management commands that result in possible activity-based memory management operations occur. Thus, the rate at which the periodic memory management operations occur depends on both the memory management interval and the sense and flip threshold. In some embodiments, the periodic memory management operations may include, but are not limited to, sense and flip operations. In addition, the activity-based operations may include, but are not limited to, wear leveling operations.
[0042] Each memory bank 231 may include a first logic gate 228 to couple the memory bank 231 to the memory management block 222. In some embodiments, the first logic gate 228 may be an AND gate. In addition, the inputs of the first logic gate 228 may be the output of the third logic gate 243 and the output of the circuit system 238 that compares the value of the activation counter 236 with the wear leveling threshold. The output of the first logic gate 228 may be sent to the wear leveling circuit system 234 to determine whether to perform a wear leveling operation (e.g., a wear leveling operation may be performed on the data stored in the memory bank 231 based on the value of the output of the first logic gate 228).
[0043] Each memory bank 231 may further include a second logic gate 242 to couple the memory bank 231 to other memory banks 231 in the plurality of memory banks 231. In some embodiments, the second logic gate 242 may be an OR gate. A first input of the second logic gate 242 may be an output of a comparison circuit system 238 that compares the value of the activation counter 236 with a wear leveling threshold, and a second input of the second logic gate 242 may be an output of a second logic gate 242 from a different memory bank 231. For example, an input of the second logic gate 242-1 may be an output of the comparison circuit system 238-1 and an output of the second logic gate 242-2. The output of the second logic gate 242-1 may be an input of a third logic gate 243. In some embodiments, the last memory bank (e.g., memory bank 231-N) may include a second logic gate 242-N coupled to ground. For example, one of the inputs of the second logic gate 242-N may be ground instead of the output of the second logic gate 242 of the different memory bank 231.
[0044] The memory management circuit system 213 may include a third logic gate 243 to couple the memory management block 222 to the first logic gate 228 of each memory bank 231. In some embodiments, the third logic gate 243 may be an AND gate. The memory management circuit system 213 may send a wear leveling operation command to the plurality of memory banks 231 via the third logic gate 243. Figure 2, the first input of the third logic gate 243 may be a signal indicating a command (e.g., a periodic command) received from the memory management block 222 to perform a wear leveling operation, and the second input may be the output of the second logic gate 242-1. In some embodiments, the output of the second logic gate 242-1 may indicate whether the value of the activation counter 236 of any one of the memory banks 231 is greater than or equal to the wear leveling threshold. The memory management block 222 may send a wear leveling operation command to one or more memory banks 231, whose activation counter 236 has a value greater than or equal to the wear leveling threshold, via the third logic gate 243. In addition, when the value of the memory management counter 223 is greater than or equal to the sensing and flipping threshold, the memory management block 222 may directly send a sensing and flipping operation to the memory bank 231. For example, the memory management block 222 may send a signal indicating a sensing and flipping operation to the memory bank 231 without an intermediate memory component between the memory management block 222 and the memory bank 231.
[0045] In some embodiments, the amount of power used by each memory bank 231 for memory management may be proportional to the number of activation commands received by the memory bank 231. For example, when the memory device has not received an activation command since the memory management counter was last reset, most of the power used by each memory bank 231 is used to perform sensing and flipping operations on the data stored in the memory bank 231. However, as the memory device receives more activation commands, more power used by the memory device is used to perform wear leveling operations. In some embodiments, the execution of the wear leveling operation may use more, less, or the same amount of power as the amount of power used to perform the sensing and flipping operations. In another embodiment, during maximum activity, the wear leveling operation is performed at a higher frequency than the sensing and flipping operations. As used herein, the term "maximum activity" refers to issuing activation commands at a maximum frequency. In addition, when there is no activity (e.g., a period in which no activation command is issued to the memory device), the wear leveling operation may not be performed. By not performing any wear leveling operations, the power consumption of the memory device can be reduced. However, during the period in which the activation command is not issued to the memory device, the memory device can still perform the sensing and flipping operations. When the memory device receives more than a threshold number of activate commands within a certain amount of time, most of the periodic memory management commands may be converted to wear leveling commands. When the memory device receives fewer activate commands, the memory device may perform fewer wear leveling operations. In some embodiments, if the value of the activation counter 236 is below an activity-based memory management operation threshold (e.g., a wear leveling threshold), the memory device is prohibited from performing activity-based memory management operations.
[0046] In some embodiments, the frequency (e.g., the amount and / or number over time) of activate commands issued to a memory device may determine which operations are performed by the memory device when periodic memory management commands are received. For example, at maximum activity (e.g., maximum activate command frequency), the memory device may perform activity-based memory management operations or periodic memory management operations in response to the memory device receiving periodic memory management commands. In this example, because all periodic memory management commands result in memory management operations being performed, maximum power consumption due to memory management occurs.
[0047] If the memory device is receiving an activation command at a frequency less than the maximum activation command frequency, then an activity-based memory management operation, a periodic memory management operation, or no memory management operation may be performed in response to the memory device receiving a periodic memory management command. When the memory device receives an activation command at a frequency less than the maximum activation command frequency, the power consumption attributed to memory management is less than the power consumption during maximum activity because the issuance of some memory management commands will result in no memory management operations being performed. In some embodiments, the power consumption attributed to memory management may be proportional to the activity (e.g., the frequency with which activation commands are issued to the memory device). If the memory device does not receive an activation command for more than a certain amount of time, then a periodic memory management operation or no operation may be performed in response to the memory device receiving a periodic memory management command directed to the memory management storage body 229. When the memory device receives a periodic memory management command after not receiving an activation command for more than a certain amount of time, the power consumed by the memory device due to memory management is less than the amount of power consumed during maximum activity. In some embodiments, the time intervals for performing periodic memory management operations on all memory banks 231 may be the same length of time, regardless of whether an activation command is issued to the memory device at a maximum frequency, an activation command is issued to the memory device at a frequency less than the maximum frequency, or whether no activation command is issued to the memory device. After a certain number (determined by the periodic memory management operation threshold and the memory management counter 223) of periodic memory management commands are issued to the memory device and result in an activity-based memory management operation (e.g., wear leveling), the periodic memory management operation (e.g., sensing and flipping) may be performed.
[0048] In some embodiments, the memory device may include additional memory management banks 229, where each memory management bank 229 may be coupled to at least one other memory management bank 229. The memory management block 222 may receive a signal indicating a periodic memory management command from an external component (e.g., a host or an external controller) and issue the appropriate memory management operation to the specified memory management bank 229. Maintenance (e.g., memory management) operations may be performed in some or all of the banks 231 in the memory management banks 229 in response to the memory device receiving the periodic memory management command.
[0049] Figure 3 342 is a flow chart of a method 342 for periodic and activity-based memory management according to some embodiments of the present disclosure. The method 342 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. As an example, the method 342 may be performed by the previously described methods in conjunction with Figure 1 and 2 The memory management circuit system 113 and / or 213 described herein is executed. Although shown in a specific sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in a different order, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.
[0050] At block 344, a command to perform a memory device operation is received. If the command is a memory management command (eg, a periodic memory management command), the method 342 proceeds to block 346. If the command is an activate command, the method 342 proceeds to block 350.
[0051] At block 346, method 342 may include determining a value of an activation flag. The activation flag may have a first value (eg, a value of 0) or a second value (eg, a value of 1). For example, it may be determined whether the value of the activation flag is 0.
[0052] At block 348, method 342 may include performing a sense and flip operation on data stored in a memory (e.g., a memory bank) in response to determining that the activation flag has a first value (e.g., a value of 0 or a value of 1). In some embodiments, an activation flag having a value, such as 0, may indicate that a corresponding memory bank (e.g., Figure 2231 in the memory device, a group of memory banks, or the entire memory device has not received an activate command since the memory management circuitry was previously powered on and / or reset the value of the activate flag. Therefore, if the memory management circuitry determines, in response to receiving a memory management command, that an activate command has not been issued since the memory management circuitry has reset the activate flag, the memory management circuitry may perform a sense and flip operation on the corresponding memory bank.
[0053] At block 352, method 342 may compare the value of the first counter to the value of the first threshold in response to determining that the activation flag has a second value (e.g., a value of 0 or a value of 1). In some embodiments, an activation flag having a value of, for example, 1, may indicate that the corresponding memory bank, group of memory banks, or the entire memory device has received an activation command since the memory device has been powered on and / or the value of the activation flag has been previously reset. In some embodiments, the first counter may be a memory management command counter that increments in response to the memory receiving a memory management command. Furthermore, in some embodiments, the first threshold may be a sense and flip operation threshold. Thus, it may be determined at block 352 whether the value of the memory management command counter is equal to or greater than the sense and flip operation threshold.
[0054] At block 354, the method 342 may include resetting the value of a first counter (e.g., a memory management command counter) in response to determining that the value of the memory management command counter is greater than or equal to the value of a first threshold (e.g., a sense and rollover threshold). After resetting the value of the memory management counter, the value of the memory management command counter may be 0. At block 348, the method 342 may include performing a sense and rollover operation in response to resetting the memory management command counter. At block 356, the method 342 may include incrementing the value of the memory management command counter (e.g., by 1) in response to determining that the value of the memory management command counter is less than the value of the sense and rollover threshold.
[0055] At block 358, method 342 may include comparing the value of the second counter to the value of the second threshold. In some embodiments, the second counter may be an activation command counter that is incremented in response to the memory receiving an activation command, and the second threshold may be a wear leveling operation threshold. Thus, a determination may be made at block 358 whether the value of the activation command counter is greater than or equal to the value of the wear leveling operation threshold. At block 360, method 342 may include performing a wear leveling operation on data stored in the memory (e.g., in a memory bank) in response to determining that the value of the second counter (e.g., the activation command counter) is greater than or equal to the value of the second threshold (e.g., the wear leveling threshold).
[0056] At block 360, method 342 may further include decrementing the activation command counter by the value of the wear leveling threshold in conjunction with performing a wear leveling operation in response to determining that the value of the activation command counter is greater than or equal to the wear leveling threshold. In some embodiments, method 342 may further include refraining from performing a wear leveling operation in response to determining that the value of the activation command counter is less than the wear leveling threshold. For example, if no memory bank has an activation command counter with a value greater than or equal to the wear leveling threshold, then the wear leveling operation may not be sent to the memory bank. Alternatively, if at least one memory bank has an activation command counter with a value greater than or equal to the wear leveling threshold, then a signal indicating a wear leveling operation is sent to each memory bank, and the wear leveling operation is performed only on the memory bank that includes an activation counter with a value greater than or equal to the wear leveling operation threshold.
[0057] At block 350 , the method 342 may include incrementing the value of the activate command counter and setting the value of the activate flag to 1 in response to receiving the activate command at block 344 .
[0058] At block 362, method 342 may include powering off the memory device to a powered-off state. At block 364, method 342 may include resetting the value of a memory management command counter (e.g., to 0), resetting the value of an activate command counter (e.g., to 0), and resetting the value of an activate flag (e.g., to 0) in response to powering on the memory device to a powered-on state. Method 342 may then return to block 344. In some embodiments, if the memory device is powered off for longer than a threshold period of time, a sense and flip operation may be performed on each memory cell in the memory device. Again, this may occur quickly by issuing periodic memory management commands before any activate commands have been issued.
[0059] Figure 4 An example machine illustrating a computer system 400 within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 400 may correspond to a host system (e.g., Figure 1 ), which includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 110 in the memory subsystem 110), or can be used to perform operations of the controller (for example, to execute an operating system to execute corresponding Figure 1In some embodiments, the machine may be connected (e.g., using a network) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The computer may operate as a server or a client machine in a client-server network environment, as a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.
[0060] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by the machine. Further, while a single machine is described, the term "machine" shall also be taken to include any collection of machines that individually or collectively execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.
[0061] The example computer system 400 includes a processing device 402, a main memory 404 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM)), etc.), a static memory 406 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 418, which communicate with each other via a bus 433.
[0062] The processing device 402 represents one or more general-purpose processing devices, such as a microprocessor, a central processing unit, or the like. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 402 may also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, or the like. The processing device 402 is configured to execute instructions 426 for performing the operations and steps discussed herein. The computer system 400 may further include a network interface device 408 for communicating over a network 427.
[0063] The data storage system 418 may include a machine-readable storage medium 424 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 426 or software embodying any one or more of the methodologies or functions described herein. During execution of the instructions 426 by the computer system 400, the instructions 426 may also reside, in whole or in part, within the main memory 404 and / or within the processing device 402, which also constitute machine-readable storage media. The machine-readable storage medium 424, the data storage system 418, and / or the main memory 404 may correspond to Figure 1 The memory subsystem 110 in.
[0064] In one embodiment, instructions 426 include implementing memory management circuitry corresponding to periodic and activity-based memory management circuitry (e.g., Figure 1 The term "machine-readable storage medium" should also be taken to include any medium capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more of the methods of the present disclosure. Thus, the term "machine-readable storage medium" should be taken to include, but not be limited to, solid-state memory, optical media, and magnetic media.
[0065] The present disclosure includes apparatus, methods, and systems that support periodic and activity-based memory management circuitry. Several embodiments include configurations of periodic and activity-based memory management circuitry.
[0066] Although specific embodiments have been illustrated and described herein, it will be appreciated by those skilled in the art that arrangements calculated to achieve the same results may be substituted for the specific embodiments shown. The present disclosure is intended to cover adaptations or variations of several embodiments of the present disclosure. It should be appreciated that the above description has been made in an illustrative and non-restrictive manner. Combinations of the above embodiments and other embodiments not expressly described herein will be understood by those skilled in the art after reviewing the above description. The scope of several embodiments of the present disclosure includes other applications using the above structures and methods. Therefore, the scope of several embodiments of the present disclosure should be determined with reference to the attached claims and the full range of equivalents to which such claims are entitled.
[0067] In the foregoing detailed description, some features are grouped in a single embodiment for the purpose of simplifying the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the disclosed embodiments of the disclosure must use more features than those explicitly recited in each claim. Rather, as the appended claims reflect, the inventive subject matter lies in less than all the features of a single disclosed embodiment. Therefore, the appended claims are hereby incorporated into the detailed description, with each claim standing on its own as a separate embodiment.
Claims
1. A device for memory management, comprising: Memory management block (222); and A memory management bank (229) coupled to the memory management block (222), wherein: The memory management storage body (229) includes a plurality of storage bodies (231); and Each memory bank (231) of the plurality of memory banks (231) comprises: an activation counter (236) configured to increment in response to the memory bank (231) receiving an activation command; and A circuit system (113, 213) for: determining whether the value of the activation counter (236) is equal to or greater than a wear leveling threshold; as well as A wear leveling operation is performed on data stored in the memory bank (231) in response to determining that the value of the activation counter (236) is equal to or greater than the wear leveling threshold.
2. The apparatus according to claim 1, wherein: The memory management block includes a memory management counter (223) for incrementing in response to a memory management bank receiving a memory management command; and The circuit system is used to: Determining whether the value of the memory management counter (223) is equal to or greater than a sense and flip operation threshold; and A sense and flip operation is performed on data stored in the memory bank in response to determining that the value of the memory management counter (223) is greater than the sense and flip operation threshold.
3. The apparatus of claim 1, wherein an amount of power used by each of the plurality of memory banks for memory management is proportional to a number of activate commands received by the memory bank.
4. The apparatus according to claim 1, wherein: The memory management block is used to determine whether to perform a memory operation on data stored in a memory bank among the plurality of memory banks in response to receiving a command; and The memory management block is used to determine whether to perform the wear leveling operation on the data stored in the memory bank, whether to perform a sense and flip operation on the data stored in the memory bank, or whether to perform no operation on the data stored in the memory bank in response to determining that the memory operation has been performed on the data.
5. A method for memory management, comprising: Determine the value of the activation flag; performing a sense and flip operation on data stored in a memory (130, 140) in response to determining that the activation flag has a first value; comparing the value of the first counter to the value of the first threshold in response to determining that the activation flag has a second value; resetting the value of the first counter in response to determining that the value of the first counter is greater than or equal to the value of the first threshold; incrementing the value of the first counter in response to determining that the value of the first counter is less than the value of the first threshold; as well as A wear leveling operation is performed on the data stored in the memory (130, 140) in response to determining that the value of the second counter is greater than or equal to the value of the second threshold.
6. The method of claim 5, wherein the first counter is a memory management command counter that is incremented in response to the memory receiving a memory management command, and the second counter is an activation counter that is incremented in response to the memory receiving an activate command.
7. The method of any one of claims 5 to 6, wherein the first threshold is a sense and flip operation threshold and the second threshold is a wear leveling operation threshold.
8. The method of any one of claims 5-6, further comprising resetting the value of the first counter in response to powering on the memory.
9. The method of any one of claims 5-6, further comprising resetting the value of the second counter in response to powering on the memory.
10. The method of any one of claims 5-6, further comprising resetting the value of the activation flag in response to powering on the memory.
11. The method of any one of claims 5-6, further comprising setting the value of the activate flag to the second value in response to the memory receiving an activate command.
12. The method of any one of claims 5-6, further comprising performing a sense and flip operation on the data stored in the memory in response to resetting the value of the first counter.
13. The method of any one of claims 5-6, further comprising refraining from performing the wear leveling operation in response to determining that the value of the second counter is less than the value of the second threshold.
14. A system for memory management, comprising: Host; and A memory device (130, 140) coupled to the host, wherein the memory device (130, 140) comprises: Memory management circuitry (113, 213), wherein the memory management circuitry (113, 213) comprises: A plurality of memory banks (231); and a memory management block (222) for determining whether to perform a sense and flip operation on the data stored in the plurality of memory banks (231), whether to perform a wear leveling operation on the data stored in the plurality of memory banks (231), or whether to perform no operation on the data stored in the plurality of memory banks (231); and Each memory bank (231) of the plurality of memory banks (231) comprises: a first logic gate for coupling the memory bank (231) to the memory management block (222); A circuit system (113, 213) for performing the wear leveling operation; an activation counter (236) for incrementing in response to the memory management circuitry (113, 213) receiving an activate command from the host; Circuitry (113, 213) for comparing the value of the activation counter (236) with the value of a wear leveling threshold; and A second logic gate is used to couple the memory bank (231) to other memory banks (231) in the plurality of memory banks (231).
15. The system of claim 14, wherein The memory management circuitry includes a third logic gate to couple the memory management block to the first logic gate of each memory bank; and The memory management circuit system is used to send a wear leveling operation command to the plurality of memory banks via the third logic gate.
16. The system of any one of claims 14-15, wherein the second logic gate of one of the memory banks of the plurality of memory banks is coupled to ground.
