WO2017014844A1 - Memory system and method for adaptive auto-sleep and background operations - Google Patents

Memory system and method for adaptive auto-sleep and background operations Download PDF

Info

Publication number
WO2017014844A1
WO2017014844A1 PCT/US2016/036354 US2016036354W WO2017014844A1 WO 2017014844 A1 WO2017014844 A1 WO 2017014844A1 US 2016036354 W US2016036354 W US 2016036354W WO 2017014844 A1 WO2017014844 A1 WO 2017014844A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory
time
controller
memory system
auto
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/US2016/036354
Other languages
French (fr)
Inventor
Yonatan Tzafrir
Hannon Aharon BORUKHOV
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SanDisk Technologies LLC
Original Assignee
SanDisk Technologies LLC
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 SanDisk Technologies LLC filed Critical SanDisk Technologies LLC
Priority to CN201680049605.7A priority Critical patent/CN107924224B/en
Publication of WO2017014844A1 publication Critical patent/WO2017014844A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3225Monitoring of peripheral devices of memory devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3275Power saving in memory, e.g. RAM, cache
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • Some memory systems with non-volatile memories have an auto-sleep function.
  • the controller of such a memory system is programmed with a predetermined time threshold, and if the memory has been idle for longer than the predetermined time threshold (e.g.. due to inactivity of a host), the controller places the memory system in an auto-slccp mode to reduce the current and power consumed by the memory system.
  • the controller Before the memory system is put to sleep, the controller typically performs various tasks to prepare for sleep mode, such as saving user and management data from volatile memory to non-volatile memory and powering off hardware components.
  • the controller senses a new command from the host, the controller typically performs various tasks to exit from sleep mode, such as copying user and management data from non-volatile memory to volatile memory and powering on hardware components.
  • Figure 1 is a block diagram of an exemplary memory system of an embodiment.
  • Figure 2 A is a block diagram of a memory system of an embodiment removably connected to a host.
  • Figure 2B is a block diagram of a memory system of an embodiment embedded in a host
  • Figure 3 is a flow chart of a method of an embodiment for adaptive auto-sleep.
  • Figure 4 is a flow chart of a method of an embodiment for adaptive auto-sleep using interrupt and sclf-lcaming circuitry.
  • Figure 5 is a graph illustrating adaptive auto-sleep of an embodiment
  • Figure 6 is a flow chart of a method of an embodiment for adaptive background operations. Detailed Description
  • a controller of a memory system measures an amount of time between when the memory completes an operation and when the controller receives a command to perform another operation in the memory.
  • the controller adjusts a time period after which the controller enters an auto-sleep mode based on the measured amount of time.
  • the time period is adjusted based on the measured amount of time and on at least one additional amount of time for at least one additional operation.
  • the time period can be reduced when the measured amount of time is less than the time period, while, in other embodiments, the time period is reduced when the measured amount of time is less than a sum of the time period and a time it takes the controller to enter and exit the auto-sleep mode.
  • the time period is increased when the measured amount of time is greater than the time period, while, in other embodiments, the time period is increased when the measured amount of time is greater than a sum of the time period and a time it takes the controller to enter and exit the auto-sleep mode.
  • the controller measures the amount of time by measuring time between when the controller receives an end signal via a memory interface and when the controller received a start signal via a host interface.
  • a memory system having a memory and a controller.
  • the controller is configured to measure idle time of the memory and determine if the measured idle time of the memory is less than or greater than an auto- sleep threshold. In response to determining that the measured idle time is less than the auto-sleep threshold, the controller decreases the auto-sleep threshold. In response to determining that the measured idle time is greater than the auto-sleep threshold, the controller increases the auto-sleep threshold.
  • the controller is configured to measure idle time by measuring an amount of time between when the controller completes an operation in the memory and when the controller receives a command to perform another operation in the memory.
  • the controller is configured to measure the amount of time by measuring time between when the controller receives an end signal via a memory interface and when the controller received a start signal via a host interface.
  • the controller is configured to use a plurality of measured idle times to determine if the auto-sleep threshold should be increased or decreased.
  • the auto-sleep threshold includes a time it takes the controller to enter and exit the auto-sleep mode.
  • the controller is configured to measure idle time using interrupt circuitry and a clock, and the controller is further configured to determine if the measured idle time of the controller is less than or greater than the auto-sleep threshold using self-learning circuitry.
  • the above method and/or memory system is used to performing adaptive background operations, in addition to or instead of performing adaptive auto-sleep.
  • the memory is a three-dimensional memory.
  • the memory system is embedded in a host, while, in other embodiments, the memory system is removably connected to a host.
  • these embodiments generally relate to a memory system and method for adaptive auto-sleep and background operations.
  • the follow paragraphs present an exemplary memory system that can be used with these embodiments.
  • Figure 1 is a block diagram of a memory system 100 of an embodiment
  • the memory system 100 of this embodiment comprises a controller 110 in communication with a memory die 120.
  • the phrase "in communication with” could mean directly in communication with or indirectly in communication with through one or more components, which may or may not be shown or described herein.
  • the controller 110 transmits command sequences for read, program, and erase operations to the memory die 120, and performs other functions, as will be discussed below.
  • the controller 1 10 can be implemented in any suitable manner.
  • the controller 1 10 can take the form of processing circuitry, a microprocessor or processor, and a computer-readable medium that stores computer-readable program code (e.g., firmware) executable by the (microprocessor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, for example.
  • the controller 1 10 can be configured with hardware and/or firmware to perform the various functions described below and shown in the flow diagrams. Also, some of the components shown as being internal to the controller 110 can also be stored external to the controller 110, and other components can be used.
  • the memory system 100 comprises a single memory die 120, while, in other embodiments, the memory system 100 comprises at least one additional memory die 125.
  • the term "die” refers to the collection of non-volatile memory ceils, and associated circuitry for managing the physical operation of those non-volatile memory cells, that are formed on a single semiconductor substrate.
  • a memory die may include any suitable non-volatile storage medium, including NAND flash memory cells and/or NOR flash memory cells.
  • the memory cells can take the form of solid-state (e.g., flash) memory cells and can be one-time programmable, few-time programmable, or many-time programmable.
  • the memory cells can also be single-level cells (SIX), multiple-level cells (MIX), triple-level cells (TLC), or use other memory cell level technologies, now known or later developed. Also, the memory cells can be fabricated in a two-dimensional or three-dimensional fashion.
  • the memory system's controller 110 comprises a host interface (or host interface module ( ⁇ )) 115, a memory (or backend) interface 125, interrupt circuitry 130, a clock 135, and self-learning circuitry 140.
  • the controller 1 10 can contain other components as well, such as, but not limited to, random access memory (RAM), read only memory (ROM) (e.g., to store system boot code), an error correction controller (ECC) engine to encode/decode data written to and read from the memory die 120. and a crypto-cngine to provide encryption and/or decryption operations.
  • RAM random access memory
  • ROM read only memory
  • ECC error correction controller
  • crypto-cngine to provide encryption and/or decryption operations.
  • the host interface 115 can take any suitable form, such as, but are not limited to, a SATA, SATA Express, SAS, Fibre Channel, USB, PCIe. and NVMe interface.
  • the memory interlace 125 can also take any suitable form, such as, but not limited to, a flash interface (e.g.. Toggle Mode 200, 400, or 800).
  • the interrupt circuitry 130 which takes the form of a programmable hardware block in one embodiment, is configured to receive interrupts from multiple interrupt sources on every change associated with data of a serviced command.
  • the interrupts can be host interrupts that are received via the host interface 115 and/or interrupts received from the memory 120 via the memory interface 125.
  • the host interface 115 receives commands from the host and provides a transaction start signal as an interrupt to the interrupt circuitry 130 in response to receiving every new command.
  • the memory interface 125 receives a transaction end (end- of-oocration (EOP» signal from the memory 120 with every completion of a transaction in the memory 120.
  • EOP end- of-oocration
  • the interrupt circuitry 130 when the interrupt circuitry 130 receives a transaction end signal from the memory interface 125, the interrupt circuitry 130 activates the clock 135 (which can be a hardware component that serves as a real time or non-real time clock). The interrupt circuitry 130 stops the clock 135 in response to receiving the transaction start signal from the host interface 115. In this way, the clock 135 measures the amount of time between when the memory 120 completes an operation to when the controller 110 receives a command to perform another operation in the memory 120.
  • the clock 135 measures the amount of time between when the memory 120 completes an operation to when the controller 110 receives a command to perform another operation in the memory 120.
  • This measured time is then provided to the self-learning circuitry 140, which uses this measured time to adjust an auto-sleep threshold (i.e., a time period after which the controller 1 10 enters an auto-sleep mode), which will be discussed in more detail below.
  • an auto-sleep threshold i.e., a time period after which the controller 1 10 enters an auto-sleep mode
  • circuitry can refer to an instruction processor, such as a Central Processing Unit (CPU), microcontroller, or a microprocessor; or an instruction processor, such as a Central Processing Unit (CPU), microcontroller, or a microprocessor; or an instruction processor, such as a Central Processing Unit (CPU), microcontroller, or a microprocessor; or an instruction processor, such as a Central Processing Unit (CPU), microcontroller, or a microprocessor; or an
  • Circuitry may include discrete interconnected hardware components or may be combined on a single integrated circuit die, distributed among multiple integrated circuit dies, or implemented in a Multiple Chip Module (MCM) of multiple integrated circuit dies in a common package, as examples.
  • MCM Multiple Chip Module
  • circuitry may store or access instructions for execution or may implement its functionality in hardware alone.
  • the instructions may he stored in a tangible storage medium that is other than a transitory signal, such as a flash memory, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable
  • EPROM Programmable Read Only Memory
  • CDROM Compact Disc Read Only Memory
  • HDD Hard Disk Drive
  • a product such as a computer program product, may include a storage medium and instructions stored in or on the medium, and the instructions when executed by the circuitry in a device may cause the device to implement any of the processing described above or illustrated in the drawings.
  • circuitry may include multiple distinct system components, such as multiple processors and memories, and may span multiple distributed processing systems.
  • Parameters, databases, and other data structures may be separately stored and managed, may be incorporated into a single memory or database, may be logically and physically organized in many different ways, and may be implemented in many different ways.
  • Example implementations include linked lists, program variables, hash tables, arrays, records (e.g., database records), objects, and implicit storage mechanisms. Instructions may form parts (e.g., subroutines or other code sections) of a single program, may form multiple separate programs, may ⁇ be distributed across multiple memories and processors, and may be implemented in many different ways.
  • Example implementations include stand-alone programs and part of a library, such as a shared library like a Dynamic Link Library (DLL).
  • the library may contain shared data and one or more shared programs that include instructions that perform any of the processing described above or illustrated in the drawings, when executed by the circuitry. Accordingly, ''circuitry' * may be implemented in many different ways and in many different combinations of hardware and software.
  • the memory system 100 can take any suitable form.
  • the memory system 100 can be a removable mass storage device, such as, but not limited to, a handheld, removable memory device, such as a memory card (e.g., a Secure Digital (SD) card, a micro Secure Digital (micro-SD) card, or a MultiMedia Card (MMC)), or a universal serial bus (USB) device.
  • a memory card e.g., a Secure Digital (SD) card, a micro Secure Digital (micro-SD) card, or a MultiMedia Card (MMC)
  • MMC MultiMedia Card
  • USB universal serial bus
  • the memory system 100 can also take the form of an embedded mass storage device, such as an eSD/eMMC embedded flash drive or an embedded or removable solid state drive (SSD) found in, for example, portable computing devices, such as laptop computers, and tablet computers.
  • SSD embedded or removable solid state drive
  • the memory system 100 is removably connected to a host SO (e.g., where the host 50 and memory system 100 can each have mating physical connectors that allow the memory system 100 to be removably connected to the host SO).
  • a host SO e.g., where the host 50 and memory system 100 can each have mating physical connectors that allow the memory system 100 to be removably connected to the host SO.
  • the memory system 100 is embedded in a host SO ( Figure 2B).
  • a host can take any suitable form.
  • a host SO typically has a controller and an interface for communicating with the memory system 100.
  • the host SO has a crypto-cngine operative to provide encryption and/or decryption operations for communication with the memory system 100 (e.g., for mutual authentication, key exchange, and establishment of a secure channel).
  • the host 50 can contain other components (e.g., a display device, a speaker, a headphone jack, a video output connection, etc.).
  • hosts 50 include, but are not limited to, a mobile phone, a digital media player, a game device, a personal digital assistant (PDA), a personal computer (PC), a kiosk, a set-top box, a TV system, a book reader, or any combination thereof.
  • PDA personal digital assistant
  • PC personal computer
  • kiosk a set-top box
  • TV system TV system
  • book reader or any combination thereof.
  • some memory systems have an auto-sleep function to reduce the current and power consumed by the memory system when not in use.
  • the controller of such a memory system is programmed with a predetermined time threshold, and if the memory has been idle for longer than the predetermined time threshold (e.g., due to inactivity of a host), the controller places the memory system in an auto-slccp mode. Before the memory system is put to sleep, the controller typically performs various tasks to prepare for sleep mode, such as saving user and management data from volatile memory to non-volatile memory, powering off hardware components (e.g., hardware cores and volatile memories inside the controller) and latching logic or hardware cores.
  • hardware components e.g., hardware cores and volatile memories inside the controller
  • the controller When the controller senses a new command from the host that requires a memory operation, the controller typically performs various tasks to exit from sleep mode, such as copying user and management data from non-volatile memory to volatile memory, powering on hardware components, and unlatching logic or hardware cores.
  • sleep mode the time it takes for the controller to exit auto-sleep mode will be referred to herein as "tl .” and the time it takes for the controller to enter auto-sleep mode will be referred to herein as "t2.”
  • the controller starts the auto-sleep process after measuring a time T of no memory activity, e.g., due to inactivity of a host.
  • host processors vary in their behavior during idle (no-activity) time based on the type, brand, and model of the host processor.
  • even the same host processor can change its behavior (e.g., bus speed, bus bits width, single data rate vs. double data rate, etc.) depending on the mode in which it operates and the main task it is performing (e.g., sequential vs. random activity, write vs. read vs. erase, size of data chunk, etc.). This results in idle time and frequency that varies from one device controller to the other.
  • T may be too short in some situations and too long in others.
  • T is fixed at a time that is too short, the controller will enter auto-sleep too frequently, incurring the time penalty of tl and t2 too often, thereby degrading the speed and performance of the memory system. This can occur, for example, when the host is frequently stopping its activity after time, where At «T, and then going back to activity right afterwards.
  • T is fixed at a time that is too long, the controller will not enter auto-sleep frequently enough, which means that the memory system is consuming more current and power than it needs to.
  • FIG. 3 is a flow chart 300 that illustrates this embodiment As shown in Figure 3, the controller 110 measures the idle time of the memory (act 310).
  • the controller 110 determines if the measured idle is less than or greater than an auto-sleep threshold (act 320). In response to determining that the measured idle time is less than the auto-slocp threshold, the controller 110 decreases the auto-sleep threshold (act 330). In response to determining that the measured idle time is greater than the auto-slccp threshold, the controller 110 increases the auto-sleep threshold (act 340). In this way, the controller 110 can reduce the time period when the measured amount of time is less than the auto-sleep threshold (time period T), or less than T plus tl and t2.
  • the controller 110 can reduce the time period T, which would cause the memory system 100 to go to sleep more frequently. Conversely, the controller 110 can increase the time period when the measured amount of time is more than the time period T (or more than T plus tl and t2).
  • the controller 110 can increase the time period when the measured amount of time is more than the time period T (or more than T plus tl and t2).
  • other algorithms can be used, e.g., depending on the need of the memory system 100 for performance and power
  • idle time is measured as the amount of time between when the memory 120 completes an operation and when the controller 110 receives a command to perform another operation in the memory 120.
  • interrupt circuitry 130 is configured to receive a host interrupt via the host interface 1 15 and an interrupt from the memory 120 via the memory interface 125.
  • interrupt circuitry 130 is configured to receive a host interrupt via the host interface 1 15 and an interrupt from the memory 120 via the memory interface 125.
  • the host interface 1 receives commands from the host and provides a transaction start signal as an interrupt to the interrupt circuitry 130 in response to receiving every new command. (An interrupt from the host 50 can also prompt the controller 110 to exit sleep mode.) Similarly, the memory interface 125 receives a transaction end (end-of- o peration (HOP)) signal from the memory 120 with every completion of a transaction in the memory 120.
  • HOP end-of- o peration
  • the controller 1100 determines if a transaction start signal is received from a host (act 440). If the transaction start signal is received, the interrupt circuitry 130 stops the clock 135 (act 450). In this way, the clock 135 measures the amount of time between when the memory 120 completes an operation to when the controller 1 10 receives a command to perform another operation in the memory 120.
  • This measured time is then provided to the self-learning circuitry 140 (act 460), which uses this measured time to adjust an auto-sleep threshold (i.e., a time period T after which the controller 1 10 enters an auto-slecp mode based on the measured amount of time) (act 470).
  • the self-learning circuitry 140 can make these adjustments after the completion of every transaction (associated with one or more commands) or after a threshold (e.g., after N transactions).
  • the controller 110 can periodically or occasionally initiate a self-adjusting process associated with the operation of the controller 110 for adjusting (increasing or decreasing) the time period T based on input from the sclf-lcaming circuitry 140.
  • self-adjusting may be performed by the controller 1 10 in a dynamic manner.
  • the self-learning circuitry 140 can be used only when the memory system 100 is in a certain mode. In this way, the adaptive changing of the auto-sleep threshold can be performed only some of the time.
  • Figure 5 is a graph that illustrates this embodiment
  • Figure 5 is a graph of current consumed by the memory device 100 versus time.
  • the memory device 100 when the memory device 100 is in sleep mode (during time Ts), the memory device 100 is consuming a relatively-low level of current (in this example, 6.0 mA).
  • the memory device 100 receives a command from a host (e.g., when the controller 110 receives a transaction start signal)
  • the memory device 100 spends tl time coming out of sleep mode and Tact time performing the command.
  • the memory device 100 is out of auto-sleep mode, it consumes a relatively-higher level of current (in this example, 106 mA).
  • the controller 110 then waits for T time to pass before putting the memory device 100 back into auto-sleep mode, which requires t2 time.
  • the self-learning circuitry 140 in the controller 1 10 monitors the actual time that passes since the controller 110 completed the last operation for an existing command and until receiving an indication for a new request.
  • the sclf-leaming circuitry 140 can measure the time frame (Td) since the controller 110 finishes its activity and until it gets an indication from the host for the next activity. If this time Td is much smaller (say by a threshold la. which can be configured by the controller 110) than the time T+t1+t2 for N number of transactions (N can be a defined number of transactions and can be associated with one or more commands), then T can be adjusted (reduced) as much as possible, provided that, in this particular embodiment, T+tl+t2>Td. Similarly, if Td>T+Tl+T2, then the time T can be adjusted (increased) such that T+t I +t2>Td.
  • Td time frame
  • the self-learning mechanism discussed above for adjusting an auto-sleep threshold can instead or additionally be used for adjusting a time period after which the controller performs a background operation.
  • a background operation is in contrast to a foreground operation, which is an operation that is preferably performed to completion without being interrupted and typically has a predetermined completion time.
  • a foreground command is typically issued by the host controller and sent to the memory system 100 for execution. Examples of a foreground command include, but are not limited to, a read command, a write command, and an erase command
  • a background operation refers to an operation that can be preempted/interrupted by a foreground command and continued at a later time. Unlike foreground commands which typically have a predetermined completion time, background commands can have an uncertain completion time, depending on how much they are interrupted by foreground commands. A background command can be performed whenever possible when no host foreground commands are currently being executed and after a period of idle time. Examples of background operations include, but are not limited to.
  • EDC error detection code
  • Td die time frame since the controller 110 finishes its activity and until it gets an indication from the host for the next activity
  • Tb die time after which a background operation can be performed
  • the flow chart 600 in Figure 6 illustrates this embodiment.
  • the controller 1 10 measures idle time of the memory 110 (act 610) and determines if the measured idle time is less than or greater than a background operation threshold time after which the controller 110 performs a background operation (act 620). If the measured idle time is less than the threshold time, the controller 110 decreases the background operation threshold time (act 630). However, if the measured idle time is greater than the threshold time, the controller 110 increases the background operation threshold time (act 640).
  • any suitable type of memory can be used.
  • Semiconductor memory devices include volatile memory devices, such as dynamic random access memory (“DRAM”) or static random access memory (“SRAM”) devices, non-volatile memory devices, such as resistive random access memory (“ReRAM”), electrically erasable programmable read only memory (“EEPROM”), flash memory (which can also be considered a subset of EEPROM), ferroelectric random access memory (“FRAM”), and magnetoresistive random access memory (“MRAM”), and other semiconductor elements capable of storing information.
  • volatile memory devices such as dynamic random access memory (“DRAM”) or static random access memory (“SRAM”) devices
  • non-volatile memory devices such as resistive random access memory (“ReRAM”), electrically erasable programmable read only memory (“EEPROM”), flash memory (which can also be considered a subset of EEPROM), ferroelectric random access memory (“FRAM”), and magnetoresistive random access memory (“MRAM”), and other semiconductor elements capable of storing information.
  • ReRAM resistive random access memory
  • EEPROM electrically erasable
  • the memory devices can be formed from passive and/or active elements, in any combinations.
  • passive semiconductor memory elements include ReRAM device elements, which in some embodiments include a resistivity switching storage element, such as an anti-fuse, phase change material, etc., and optionally a steering clement, such as a diode, etc.
  • active semiconductor memory elements include EEPROM and flash memory device elements, which in some embodiments include elements containing a charge storage region, such as a floating gate, conductive nanoparticles, or a charge storage dielectric material.
  • Multiple memory elements may be configured so that they are connected in series or so that each element is individually accessible.
  • flash memory devices in a NAND configuration typically contain memory elements connected in series.
  • ⁇ NAND memory array may be configured so that the array is composed of multiple strings of memory in which a string is composed of multiple memory elements sharing a single bit line and accessed as a group.
  • memory elements may be configured so that each element is individually accessible, e.g., a NOR memory array.
  • NAND and NOR memory configurations arc exemplary, and memory elements may be otherwise configured.
  • the semiconductor memory elements located within and/or over a substrate may be arranged in two or three dimensions, such as a two dimensional memory structure or a three dimensional memory structure.
  • the semiconductor memory elements are arranged in a single plane or a single memory device level.
  • memory elements are arranged in a plane (e.g., in an x-z direction plane) which extends substantially parallel to a major surface of a substrate that supports the memory elements.
  • the substrate may be a wafer over or in which the layer of the memory elements are formed or it may be a carrier substrate which is attached to the memory elements after they arc formed.
  • the substrate may include a semiconductor such as silicon.
  • the memory elements may be arranged in the single memory device level in an ordered array, such as in a plurality of rows and/or columns. However, the memory elements may be arrayed in non-regular or non-orthogonal configurations. The memory elements may each have two or more electrodes or contact lines, such as bit lines and word lines. [0057] A three dimensional memory array is arranged so that memory elements occupy multiple planes or multiple memory device levels, thereby forming a structure in three dimensions (i.e., in the x, y and z directions, where the y direction is substantially perpendicular and the x and z directions are substantially parallel to the major surface of the substrate).
  • a three dimensional memory structure may be vertically arranged as a stack of multiple two dimensional memory device levels.
  • a three dimensional memory array may be arranged as multiple vertical columns (e.g., columns extending substantially perpendicular to the major surface of the substrate, i.e., in the y direction) with each column having multiple memory' elements in each column.
  • the columns may be arranged in a two dimensional configuration, e.g., in an x-z plane, resulting in a three dimensional arrangement of memory elements with elements on multiple vertically stacked memory planes.
  • Other configurations of memory elements in throe dimensions can also constitute a three dimensional memory array.
  • the memory elements may be coupled together to form a NAND string within a single horizontal (e.g., x-z) memory device levels.
  • the memory elements may be coupled together to form a vertical NAND string that traverses across multiple horizontal memory device levels.
  • Other three dimensional configurations can be envisioned wherein some NAND strings contain memory elements in a single memory level while other strings contain memory elements which span through multiple memory levels.
  • Three dimensional memory arrays may also be designed in a NOR configuration and in a ReRAM configuration.
  • a monolithic three dimensional memory array typically, one or more memory device levels are formed above a single substrate.
  • the monolithic three dimensional memory array may also have one or more memory layers at least partially within the single substrate.
  • the substrate may include a semiconductor such as silicon.
  • the layers constituting each memory device level of the array are typically formed on the layers of the underlying memory device levels of the array.
  • layers of adjacent memory device levels of a monolithic three dimensional memory array may be shared or have intervening layers between memory device levels.
  • non-monolithic stacked memories can be constructed by forming memory levels on separate substrates and then stacking the memory levels atop each other. The substrates may be thinned or removed from the memory device levels before stacking, but as the memory device levels are initially formed over separate substrates, the resulting memory arrays are not monolithic three dimensional memory arrays.
  • multiple two dimensional memory arrays or three dimensional memory arrays may be formed on separate chips and then packaged together to form a stacked-chip memory device.
  • Associated circuitry is typically required for operation of the memory elements and for communication with the memory elements.
  • memory devices may have circuitry used for controlling and driving memory elements to accomplish functions such as programming and reading.
  • This associated circuitry may be on the same substrate as the memory elements and/or on a separate substrate.
  • a controller for memory read-write operations may be located on a separate controller chip and/or on the same substrate as the memory elements.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Abstract

A memory system and method are provided for adaptive auto-sleep and background operations. In one embodiment, a controller of a memory system measures an amount of time between when the memory completes an operation and when the controller receives a command to perform another operation in the memory. The controller adjusts a time period after which the controller enters an auto-sleep mode and/or starts a background operation based on the measured amount of time. Other embodiments are disclosed

Description

Memory System and Method for Adaptive Auto-Sleep
and Background Operations
Background
[0001] Some memory systems with non-volatile memories (such as flash memory) have an auto-sleep function. Typically, the controller of such a memory system is programmed with a predetermined time threshold, and if the memory has been idle for longer than the predetermined time threshold (e.g.. due to inactivity of a host), the controller places the memory system in an auto-slccp mode to reduce the current and power consumed by the memory system. Before the memory system is put to sleep, the controller typically performs various tasks to prepare for sleep mode, such as saving user and management data from volatile memory to non-volatile memory and powering off hardware components. When the controller senses a new command from the host, the controller typically performs various tasks to exit from sleep mode, such as copying user and management data from non-volatile memory to volatile memory and powering on hardware components.
Brief Description of the Drawings
[0002] Figure 1 is a block diagram of an exemplary memory system of an embodiment.
[0003] Figure 2 A is a block diagram of a memory system of an embodiment removably connected to a host.
[0004] Figure 2B is a block diagram of a memory system of an embodiment embedded in a host
[0005] Figure 3 is a flow chart of a method of an embodiment for adaptive auto-sleep.
[0006] Figure 4 is a flow chart of a method of an embodiment for adaptive auto-sleep using interrupt and sclf-lcaming circuitry.
[0007] Figure 5 is a graph illustrating adaptive auto-sleep of an embodiment
[0008] Figure 6 is a flow chart of a method of an embodiment for adaptive background operations. Detailed Description
[0009] By way of introduction, the below embodiments relate to a memory system and method for adaptive auto-sleep and background operations is provided. In one embodiment, a controller of a memory system measures an amount of time between when the memory completes an operation and when the controller receives a command to perform another operation in the memory. The controller adjusts a time period after which the controller enters an auto-sleep mode based on the measured amount of time.
[0010] In some embodiments, the time period is adjusted based on the measured amount of time and on at least one additional amount of time for at least one additional operation.
[0011] In some embodiments, the time period can be reduced when the measured amount of time is less than the time period, while, in other embodiments, the time period is reduced when the measured amount of time is less than a sum of the time period and a time it takes the controller to enter and exit the auto-sleep mode.
[0012] In some embodiments, the time period is increased when the measured amount of time is greater than the time period, while, in other embodiments, the time period is increased when the measured amount of time is greater than a sum of the time period and a time it takes the controller to enter and exit the auto-sleep mode.
[0013] In some embodiments, the controller measures the amount of time by measuring time between when the controller receives an end signal via a memory interface and when the controller received a start signal via a host interface.
[0014] In another embodiment, a memory system is disclosed having a memory and a controller. The controller is configured to measure idle time of the memory and determine if the measured idle time of the memory is less than or greater than an auto- sleep threshold. In response to determining that the measured idle time is less than the auto-sleep threshold, the controller decreases the auto-sleep threshold. In response to determining that the measured idle time is greater than the auto-sleep threshold, the controller increases the auto-sleep threshold.
[0015] In some embodiments, the controller is configured to measure idle time by measuring an amount of time between when the controller completes an operation in the memory and when the controller receives a command to perform another operation in the memory.
[0016] In some embodiments, the controller is configured to measure the amount of time by measuring time between when the controller receives an end signal via a memory interface and when the controller received a start signal via a host interface.
[0017] In some embodiments, the controller is configured to use a plurality of measured idle times to determine if the auto-sleep threshold should be increased or decreased.
[0018] In some embodiments, the auto-sleep threshold includes a time it takes the controller to enter and exit the auto-sleep mode.
[0019] In some embodiments, the controller is configured to measure idle time using interrupt circuitry and a clock, and the controller is further configured to determine if the measured idle time of the controller is less than or greater than the auto-sleep threshold using self-learning circuitry.
[0020] In another embodiment, the above method and/or memory system is used to performing adaptive background operations, in addition to or instead of performing adaptive auto-sleep.
[002] ) In some embodiments, the memory is a three-dimensional memory.
[0022] In some embodiments, the memory system is embedded in a host, while, in other embodiments, the memory system is removably connected to a host.
[0023] Other embodiments are possible, and each of the embodiments can be used alone or together in combination.
[•0241 As mentioned above, these embodiments generally relate to a memory system and method for adaptive auto-sleep and background operations. Before turning to several examples, the follow paragraphs present an exemplary memory system that can be used with these embodiments.
[0025] Turning now to the drawings. Figure 1 is a block diagram of a memory system 100 of an embodiment As shown in Figure 1 , the memory system 100 of this embodiment comprises a controller 110 in communication with a memory die 120. As used herein, the phrase "in communication with" could mean directly in communication with or indirectly in communication with through one or more components, which may or may not be shown or described herein.
[0026] In general, the controller 110 transmits command sequences for read, program, and erase operations to the memory die 120, and performs other functions, as will be discussed below. The controller 1 10 can be implemented in any suitable manner. For example, the controller 1 10 can take the form of processing circuitry, a microprocessor or processor, and a computer-readable medium that stores computer-readable program code (e.g., firmware) executable by the (microprocessor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, for example. The controller 1 10 can be configured with hardware and/or firmware to perform the various functions described below and shown in the flow diagrams. Also, some of the components shown as being internal to the controller 110 can also be stored external to the controller 110, and other components can be used.
[0027] In some embodiments, the memory system 100 comprises a single memory die 120, while, in other embodiments, the memory system 100 comprises at least one additional memory die 125. As used herein, the term "die" refers to the collection of non-volatile memory ceils, and associated circuitry for managing the physical operation of those non-volatile memory cells, that are formed on a single semiconductor substrate. A memory die may include any suitable non-volatile storage medium, including NAND flash memory cells and/or NOR flash memory cells. The memory cells can take the form of solid-state (e.g., flash) memory cells and can be one-time programmable, few-time programmable, or many-time programmable. The memory cells can also be single-level cells (SIX), multiple-level cells (MIX), triple-level cells (TLC), or use other memory cell level technologies, now known or later developed. Also, the memory cells can be fabricated in a two-dimensional or three-dimensional fashion.
[0028] As shown in Figure 1, in one embodiment, the memory system's controller 110 comprises a host interface (or host interface module (ΙΠΜ)) 115, a memory (or backend) interface 125, interrupt circuitry 130, a clock 135, and self-learning circuitry 140. The controller 1 10 can contain other components as well, such as, but not limited to, random access memory (RAM), read only memory (ROM) (e.g., to store system boot code), an error correction controller (ECC) engine to encode/decode data written to and read from the memory die 120. and a crypto-cngine to provide encryption and/or decryption operations.
[0029] The host interface 115 can take any suitable form, such as, but are not limited to, a SATA, SATA Express, SAS, Fibre Channel, USB, PCIe. and NVMe interface. The memory interlace 125 can also take any suitable form, such as, but not limited to, a flash interface (e.g.. Toggle Mode 200, 400, or 800). The interrupt circuitry 130, which takes the form of a programmable hardware block in one embodiment, is configured to receive interrupts from multiple interrupt sources on every change associated with data of a serviced command. For example, the interrupts can be host interrupts that are received via the host interface 115 and/or interrupts received from the memory 120 via the memory interface 125. In one embodiment, the host interface 115 receives commands from the host and provides a transaction start signal as an interrupt to the interrupt circuitry 130 in response to receiving every new command. Similarly, the memory interface 125 receives a transaction end (end- of-oocration (EOP» signal from the memory 120 with every completion of a transaction in the memory 120.
[0030] In this embodiment, when the interrupt circuitry 130 receives a transaction end signal from the memory interface 125, the interrupt circuitry 130 activates the clock 135 (which can be a hardware component that serves as a real time or non-real time clock). The interrupt circuitry 130 stops the clock 135 in response to receiving the transaction start signal from the host interface 115. In this way, the clock 135 measures the amount of time between when the memory 120 completes an operation to when the controller 110 receives a command to perform another operation in the memory 120. This measured time is then provided to the self-learning circuitry 140, which uses this measured time to adjust an auto-sleep threshold (i.e., a time period after which the controller 1 10 enters an auto-sleep mode), which will be discussed in more detail below.
[0031] As used herein, the term "circuitry" can refer to an instruction processor, such as a Central Processing Unit (CPU), microcontroller, or a microprocessor; or an
Application Specific Integrated Circuit (ASIC), Programmable Logic Device (PLD), or Field Programmable Gate Array (FPGA); or a collection of discrete logic or other circuit components, including analog circuit components, digital circuit components or both; or any combination thereof. Circuitry may include discrete interconnected hardware components or may be combined on a single integrated circuit die, distributed among multiple integrated circuit dies, or implemented in a Multiple Chip Module (MCM) of multiple integrated circuit dies in a common package, as examples.
[0032] Accordingly, "circuitry" may store or access instructions for execution or may implement its functionality in hardware alone. The instructions may he stored in a tangible storage medium that is other than a transitory signal, such as a flash memory, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable
Programmable Read Only Memory (EPROM); or on a magnetic or optical disc, such as a Compact Disc Read Only Memory (CDROM), Hard Disk Drive (HDD), or other magnetic or optical disk; or in or on another machine-readable medium. A product, such as a computer program product, may include a storage medium and instructions stored in or on the medium, and the instructions when executed by the circuitry in a device may cause the device to implement any of the processing described above or illustrated in the drawings.
[0033] The implementations may be distributed. For instance, circuitry may include multiple distinct system components, such as multiple processors and memories, and may span multiple distributed processing systems. Parameters, databases, and other data structures may be separately stored and managed, may be incorporated into a single memory or database, may be logically and physically organized in many different ways, and may be implemented in many different ways. Example implementations include linked lists, program variables, hash tables, arrays, records (e.g., database records), objects, and implicit storage mechanisms. Instructions may form parts (e.g., subroutines or other code sections) of a single program, may form multiple separate programs, may¬ be distributed across multiple memories and processors, and may be implemented in many different ways. Example implementations include stand-alone programs and part of a library, such as a shared library like a Dynamic Link Library (DLL). The library, for example, may contain shared data and one or more shared programs that include instructions that perform any of the processing described above or illustrated in the drawings, when executed by the circuitry. Accordingly, ''circuitry'* may be implemented in many different ways and in many different combinations of hardware and software.
[0034] The memory system 100 can take any suitable form. For example, the memory system 100 can be a removable mass storage device, such as, but not limited to, a handheld, removable memory device, such as a memory card (e.g., a Secure Digital (SD) card, a micro Secure Digital (micro-SD) card, or a MultiMedia Card (MMC)), or a universal serial bus (USB) device. The memory system 100 can also take the form of an embedded mass storage device, such as an eSD/eMMC embedded flash drive or an embedded or removable solid state drive (SSD) found in, for example, portable computing devices, such as laptop computers, and tablet computers.
[0035] As shown in Figure 2 A, in some embodiments, the memory system 100 is removably connected to a host SO (e.g., where the host 50 and memory system 100 can each have mating physical connectors that allow the memory system 100 to be removably connected to the host SO). In other embodiments (shown in Figure 2B), the memory system 100 is embedded in a host SO (Figure 2B).
[0036] A host can take any suitable form. A host SO typically has a controller and an interface for communicating with the memory system 100. In some implementations, the host SO has a crypto-cngine operative to provide encryption and/or decryption operations for communication with the memory system 100 (e.g., for mutual authentication, key exchange, and establishment of a secure channel). The host 50 can contain other components (e.g., a display device, a speaker, a headphone jack, a video output connection, etc.). Examples of hosts 50 include, but are not limited to, a mobile phone, a digital media player, a game device, a personal digital assistant (PDA), a personal computer (PC), a kiosk, a set-top box, a TV system, a book reader, or any combination thereof.
(0u37| As mentioned in the background section above, some memory systems have an auto-sleep function to reduce the current and power consumed by the memory system when not in use. Typically, the controller of such a memory system is programmed with a predetermined time threshold, and if the memory has been idle for longer than the predetermined time threshold (e.g., due to inactivity of a host), the controller places the memory system in an auto-slccp mode. Before the memory system is put to sleep, the controller typically performs various tasks to prepare for sleep mode, such as saving user and management data from volatile memory to non-volatile memory, powering off hardware components (e.g., hardware cores and volatile memories inside the controller) and latching logic or hardware cores. When the controller senses a new command from the host that requires a memory operation, the controller typically performs various tasks to exit from sleep mode, such as copying user and management data from non-volatile memory to volatile memory, powering on hardware components, and unlatching logic or hardware cores. The time it takes for the controller to exit auto-sleep mode will be referred to herein as "tl ." and the time it takes for the controller to enter auto-sleep mode will be referred to herein as "t2."
[0038] The controller starts the auto-sleep process after measuring a time T of no memory activity, e.g., due to inactivity of a host. However, host processors vary in their behavior during idle (no-activity) time based on the type, brand, and model of the host processor. Also, even the same host processor can change its behavior (e.g., bus speed, bus bits width, single data rate vs. double data rate, etc.) depending on the mode in which it operates and the main task it is performing (e.g., sequential vs. random activity, write vs. read vs. erase, size of data chunk, etc.). This results in idle time and frequency that varies from one device controller to the other. As such, using a constant (fixed) time T against which to measure idle time of the memory can lead to non-ideal behavior, as a given time T may be too short in some situations and too long in others. If T is fixed at a time that is too short, the controller will enter auto-sleep too frequently, incurring the time penalty of tl and t2 too often, thereby degrading the speed and performance of the memory system. This can occur, for example, when the host is frequently stopping its activity after
Figure imgf000009_0001
time, where At«T, and then going back to activity right afterwards. Likewise, if T is fixed at a time that is too long, the controller will not enter auto-sleep frequently enough, which means that the memory system is consuming more current and power than it needs to.
[0059] To address this situation, the following embodiments can be used to provide an adaptive auto-sleep mode. Instead of using a constant time T against which to measure the idle time of the memory 120, an adjustable time period can be used. More specifically, the time T in which the controller 110 enters auto-sleep mode is adaptive and dynamically self-adjusted in an optimal manner based on the actual operation of the controller 110. This allows for optimizing operation of the controller 110 in sleep mode in a dynamic manner, thereby improving overall system performance and achieving less power consumption. [0040] Turning again to the drawings. Figure 3 is a flow chart 300 that illustrates this embodiment As shown in Figure 3, the controller 110 measures the idle time of the memory (act 310). Next, the controller 110 determines if the measured idle is less than or greater than an auto-sleep threshold (act 320). In response to determining that the measured idle time is less than the auto-slocp threshold, the controller 110 decreases the auto-sleep threshold (act 330). In response to determining that the measured idle time is greater than the auto-slccp threshold, the controller 110 increases the auto-sleep threshold (act 340). In this way, the controller 110 can reduce the time period when the measured amount of time is less than the auto-sleep threshold (time period T), or less than T plus tl and t2. That is, if the memory 120 is idle less than the time period T (or less than T plus tl and t2), the controller 110 can reduce the time period T, which would cause the memory system 100 to go to sleep more frequently. Conversely, the controller 110 can increase the time period when the measured amount of time is more than the time period T (or more than T plus tl and t2). Of course, other algorithms can be used, e.g., depending on the need of the memory system 100 for performance and power
optimization.
[004] ] Measuring the idle time and dynamically self-adjusting the time period T after which the controller 110 enters an auto-sleep mode can be performed in any suitable way. For example, in one embodiment, idle time is measured as the amount of time between when the memory 120 completes an operation and when the controller 110 receives a command to perform another operation in the memory 120.
[0042] In one exemplary implementation, the components in Figure I are used, and Figure 4 is a flowchart 400 that illustrates the use of those components. As shown in Figure 1, interrupt circuitry 130 is configured to receive a host interrupt via the host interface 1 15 and an interrupt from the memory 120 via the memory interface 125. In one
embodiment, the host interface 1 IS receives commands from the host and provides a transaction start signal as an interrupt to the interrupt circuitry 130 in response to receiving every new command. (An interrupt from the host 50 can also prompt the controller 110 to exit sleep mode.) Similarly, the memory interface 125 receives a transaction end (end-of- o peration (HOP)) signal from the memory 120 with every completion of a transaction in the memory 120. [0043] As shown in Figure 4, in this embodiment, when the interrupt circuitry 130 receives a transaction end signal from the memory interface 125 (act 410), the interrupt circuitry 130 activates the clock 13S (act 420), whkh can be a hardware component that serves as a real time or non-real time clock. The clock measures time (act 430). and the controller 1100 determines if a transaction start signal is received from a host (act 440). If the transaction start signal is received, the interrupt circuitry 130 stops the clock 135 (act 450). In this way, the clock 135 measures the amount of time between when the memory 120 completes an operation to when the controller 1 10 receives a command to perform another operation in the memory 120.
[0044] This measured time is then provided to the self-learning circuitry 140 (act 460), which uses this measured time to adjust an auto-sleep threshold (i.e., a time period T after which the controller 1 10 enters an auto-slecp mode based on the measured amount of time) (act 470). The self-learning circuitry 140 can make these adjustments after the completion of every transaction (associated with one or more commands) or after a threshold (e.g., after N transactions). Also, the controller 110 can periodically or occasionally initiate a self-adjusting process associated with the operation of the controller 110 for adjusting (increasing or decreasing) the time period T based on input from the sclf-lcaming circuitry 140. Accordingly, self-adjusting may be performed by the controller 1 10 in a dynamic manner. Also, the self-learning circuitry 140 can be used only when the memory system 100 is in a certain mode. In this way, the adaptive changing of the auto-sleep threshold can be performed only some of the time.
[0045] Figure 5 is a graph that illustrates this embodiment Figure 5 is a graph of current consumed by the memory device 100 versus time. As shown in Figure 5, when the memory device 100 is in sleep mode (during time Ts), the memory device 100 is consuming a relatively-low level of current (in this example, 6.0 mA). When the memory device 100 receives a command from a host (e.g., when the controller 110 receives a transaction start signal), the memory device 100 spends tl time coming out of sleep mode and Tact time performing the command. When the memory device 100 is out of auto-sleep mode, it consumes a relatively-higher level of current (in this example, 106 mA). The controller 110 then waits for T time to pass before putting the memory device 100 back into auto-sleep mode, which requires t2 time. [0046] In this embodiment, the self-learning circuitry 140 in the controller 1 10 monitors the actual time that passes since the controller 110 completed the last operation for an existing command and until receiving an indication for a new request. The time since the controller 110 completes the operation for an existing command until it receives an indication from the host for a new request is represented as Td= Ts +t2+Tact+tl and is monitored by the self-learning circuitry 140 on a regular basis and updated accordingly. For example, the sclf-leaming circuitry 140 can measure the time frame (Td) since the controller 110 finishes its activity and until it gets an indication from the host for the next activity. If this time Td is much smaller (say by a threshold la. which can be configured by the controller 110) than the time T+t1+t2 for N number of transactions (N can be a defined number of transactions and can be associated with one or more commands), then T can be adjusted (reduced) as much as possible, provided that, in this particular embodiment, T+tl+t2>Td. Similarly, if Td>T+Tl+T2, then the time T can be adjusted (increased) such that T+t I +t2>Td.
[0047] There are several alternatives that can be used with these embodiments. For example, the self-learning mechanism discussed above for adjusting an auto-sleep threshold can instead or additionally be used for adjusting a time period after which the controller performs a background operation. A background operation is in contrast to a foreground operation, which is an operation that is preferably performed to completion without being interrupted and typically has a predetermined completion time. A foreground command is typically issued by the host controller and sent to the memory system 100 for execution. Examples of a foreground command include, but are not limited to, a read command, a write command, and an erase command
(M48| In contrast, a background operation refers to an operation that can be preempted/interrupted by a foreground command and continued at a later time. Unlike foreground commands which typically have a predetermined completion time, background commands can have an uncertain completion time, depending on how much they are interrupted by foreground commands. A background command can be performed whenever possible when no host foreground commands are currently being executed and after a period of idle time. Examples of background operations include, but are not limited to. data scrambling, column replacement, handling write aborts and/or program failures (via safe zones), read scrubbing, wear leveling, bad block and/or spare block management, error detection code (EDC) functionality, status functionality, encryption functionality, error recovery, and address mapping (e.g., mapping of logical to physical blocks).
[0049] In the same manner as described above, if Td (die time frame since the controller 110 finishes its activity and until it gets an indication from the host for the next activity) is smaller than the time Tb+tl+t2 for N number of transactions, then Tb (die time after which a background operation can be performed) can be adjusted (reduced) as much as possible, preferably provided that Tb+tl +t2>Td. Accordingly, if
Td>Tb+Tl+T2, then the time T can be adjusted (increased) such that T+tl +t2>Td.
[0050] The flow chart 600 in Figure 6 illustrates this embodiment. As shown in the flow chart 600 in Figure 6, in performing adaptive background operations, the controller 1 10 measures idle time of the memory 110 (act 610) and determines if the measured idle time is less than or greater than a background operation threshold time after which the controller 110 performs a background operation (act 620). If the measured idle time is less than the threshold time, the controller 110 decreases the background operation threshold time (act 630). However, if the measured idle time is greater than the threshold time, the controller 110 increases the background operation threshold time (act 640).
[0051] Finally, as mentioned above, any suitable type of memory can be used.
Semiconductor memory devices include volatile memory devices, such as dynamic random access memory ("DRAM") or static random access memory ("SRAM") devices, non-volatile memory devices, such as resistive random access memory ("ReRAM"), electrically erasable programmable read only memory ("EEPROM"), flash memory (which can also be considered a subset of EEPROM), ferroelectric random access memory ("FRAM"), and magnetoresistive random access memory ("MRAM"), and other semiconductor elements capable of storing information. Each type of memory device may have different configurations. For example, flash memory devices may be configured in a NAND or a NOR configuration.
[0052] The memory devices can be formed from passive and/or active elements, in any combinations. By way of non-limiting example, passive semiconductor memory elements include ReRAM device elements, which in some embodiments include a resistivity switching storage element, such as an anti-fuse, phase change material, etc., and optionally a steering clement, such as a diode, etc. Further by way of non-limiting example, active semiconductor memory elements include EEPROM and flash memory device elements, which in some embodiments include elements containing a charge storage region, such as a floating gate, conductive nanoparticles, or a charge storage dielectric material.
[0053] Multiple memory elements may be configured so that they are connected in series or so that each element is individually accessible. By way of non-limiting example, flash memory devices in a NAND configuration (NAND memory) typically contain memory elements connected in series. Λ NAND memory array may be configured so that the array is composed of multiple strings of memory in which a string is composed of multiple memory elements sharing a single bit line and accessed as a group. Alternatively, memory elements may be configured so that each element is individually accessible, e.g., a NOR memory array. NAND and NOR memory configurations arc exemplary, and memory elements may be otherwise configured.
[0054] The semiconductor memory elements located within and/or over a substrate may be arranged in two or three dimensions, such as a two dimensional memory structure or a three dimensional memory structure.
[0055] In a two dimensional memory structure, the semiconductor memory elements are arranged in a single plane or a single memory device level. Typically, in a two dimensional memory structure, memory elements are arranged in a plane (e.g., in an x-z direction plane) which extends substantially parallel to a major surface of a substrate that supports the memory elements. The substrate may be a wafer over or in which the layer of the memory elements are formed or it may be a carrier substrate which is attached to the memory elements after they arc formed. As a non-limiting example, the substrate may include a semiconductor such as silicon.
[0056] The memory elements may be arranged in the single memory device level in an ordered array, such as in a plurality of rows and/or columns. However, the memory elements may be arrayed in non-regular or non-orthogonal configurations. The memory elements may each have two or more electrodes or contact lines, such as bit lines and word lines. [0057] A three dimensional memory array is arranged so that memory elements occupy multiple planes or multiple memory device levels, thereby forming a structure in three dimensions (i.e., in the x, y and z directions, where the y direction is substantially perpendicular and the x and z directions are substantially parallel to the major surface of the substrate).
[0058] As a non-limiting example, a three dimensional memory structure may be vertically arranged as a stack of multiple two dimensional memory device levels. As another non-limiting example, a three dimensional memory array may be arranged as multiple vertical columns (e.g., columns extending substantially perpendicular to the major surface of the substrate, i.e., in the y direction) with each column having multiple memory' elements in each column. The columns may be arranged in a two dimensional configuration, e.g., in an x-z plane, resulting in a three dimensional arrangement of memory elements with elements on multiple vertically stacked memory planes. Other configurations of memory elements in throe dimensions can also constitute a three dimensional memory array.
[0059] By way of non-limiting example, in a three dimensional N AND memory array, the memory elements may be coupled together to form a NAND string within a single horizontal (e.g., x-z) memory device levels. Alternatively, the memory elements may be coupled together to form a vertical NAND string that traverses across multiple horizontal memory device levels. Other three dimensional configurations can be envisioned wherein some NAND strings contain memory elements in a single memory level while other strings contain memory elements which span through multiple memory levels. Three dimensional memory arrays may also be designed in a NOR configuration and in a ReRAM configuration.
[0060] Typically, in a monolithic three dimensional memory array, one or more memory device levels are formed above a single substrate. Optionally, the monolithic three dimensional memory array may also have one or more memory layers at least partially within the single substrate. As a non-limiting example, the substrate may include a semiconductor such as silicon. In a monolithic three dimensional array, the layers constituting each memory device level of the array are typically formed on the layers of the underlying memory device levels of the array. However, layers of adjacent memory device levels of a monolithic three dimensional memory array may be shared or have intervening layers between memory device levels.
[0061] Then again, two dimensional arrays may be formed separately and then packaged together to form a non-monolithic memory device having multiple layers of memory. For example, non-monolithic stacked memories can be constructed by forming memory levels on separate substrates and then stacking the memory levels atop each other. The substrates may be thinned or removed from the memory device levels before stacking, but as the memory device levels are initially formed over separate substrates, the resulting memory arrays are not monolithic three dimensional memory arrays.
Further, multiple two dimensional memory arrays or three dimensional memory arrays (monolithic or non-monolithic) may be formed on separate chips and then packaged together to form a stacked-chip memory device.
[0062] Associated circuitry is typically required for operation of the memory elements and for communication with the memory elements. As non-limiting examples, memory devices may have circuitry used for controlling and driving memory elements to accomplish functions such as programming and reading. This associated circuitry may be on the same substrate as the memory elements and/or on a separate substrate. For example, a controller for memory read-write operations may be located on a separate controller chip and/or on the same substrate as the memory elements.
[0063] One of skill in the art will recognize that this invention is not limited to the two dimensional and three dimensional exemplary structures described but cover all relevant memory structures within die spirit and scope of the invention as described herein and as understood by one of skill in the art
[0064] It is intended that the foregoing detailed description be understood as an illustration of selected forms that the invention can take and not as a definition of the invention. It is only the following claims, including all equivalents, that are intended to define the scope of the claimed invention. Finally, it should be noted that any aspect of any of the preferred embodiments described herein can be used alone or in combination with one another.

Claims

What is claimed is:
1. A method for performing adaptive auto-sleep in a memory system, the method comprising:
performing the following in a controller of a memory system having a memory: measuring an amount of time between when the memory completes an operation and when the controller receives a command to perform another operation in the memory; and
adjusting a time period after which the controller enters an auto-sleep mode based on the measured amount of time.
2. The method of Claim 1, wherein the time period is adjusted based on the measured amount of time and on at least one additional amount of time for at least one additional operation.
3. The method of Claim 1 , wherein the time period is reduced when the measured amount of time is less than the time period.
4. The method of Claim 1 , wherein the time period is reduced when the measured amount of time is less than a sum of the time period and a time it takes the controller to enter and exit the auto-sleep mode.
5. The method of Claim 1 , wherein the time period is increased when the measured amount of time is greater than the time period.
6. The method of Claim 1. wherein the time period is increased when the measured amount of time is greater than a sum of the time period and a time it takes the controller to enter and exit the auto- sleep mode.
7. The method of Claim 1. wherein the controller measures the amount of time by measuring time between when the controller receives an end signal via a memory interlace and when the controller received a start signal via a host interface.
8. The method of Claim 1, wherein the memory is a three-dimensional memory.
9. The method of Claim 1 , wherein the memory system is embedded in a host
10. The method of Claim 1 , wherein the memory system is removably connected to a host
11. A memory system comprising:
a memory; and
a controller in communication with the memory, wherein the controller is configured to:
measure idle time of the memory; and
determine if the measured idle time of the memory is less than or greater than an auto-sleep threshold; in response to detennining that the measured idle time is less than the auto-sleep threshold, decrease the auto-steep threshold; and
in response to determining that the measured idle time is greater than the auto-sleep threshold, increase the auto-sleep threshold.
12. The memory system of Claim 1 1, wherein the controller is configured to measure idle time by measuring an amount of time between when the controller completes an operation in the memory and when the controller receives a command to perform another operation in the memory.
13. The memory system of Claim 12, wherein the controller is configured to measure the amount of time by measuring time between when the controller receives an end signal via a memory interface and when the controller received a start signal via a host interface.
14. The memory system of Claim 1 1 , wherein the controller is configured to use a plurality of measured idle times to determine if the auto-sleep threshold should be increased or decreased.
15. The memory system of Claim 1 1 , wherein the auto-sleep threshold includes a time it takes the controller to enter and exit the auto-sleep mode.
16. The memory system of Claim 11 , wherein the controller is configured to measure idle time using interrupt circuitry and a clock, and wherein the controller is further configured to determine if the measured idle time of the controller is less than or greater than the auto-sleep threshold using self-learning circuitry.
17. The memory system of Claim 1 , wherein the memory is a three-dimensional memory.
18. The memory system of Claim 1 , wherein the memory system is embedded in a host
19. The memory system of Claim 1. wherein the memory system is removably connected to a host.
20. A method for performing adaptive background operations in a memory system, the method comprising:
performing the following in a controller of a memory system having a memory: measuring an amount of time between when the controller completes an operation in the memory and when the controller receives a command to perform another operation in the memory; and
adjusting a time period after which the controller performs a background operation based on the measured amount of time.
21. The method of Claim 20, wherein the time period is adjusted based on the measured amount of time and on at least one additional amount of time for at least one additional operation.
22. The method of Claim 20, wherein the time period is reduced when the measured amount of time is less than the time period.
23. The method of Claim 20, wherein the time period is increased when the measured amount of time is greater than the time period.
24. The method of Claim 20, wherein the controller measures the amount of time by measuring time between when the controller receives an end signal via a memory interface and when the controller received a start signal via a host interface.
25. The method of Claim 20, wherein the memory is a three-dimensional memory.
26. The method of Claim 20, wherein the memory system is embedded in a host.
27. The method of Claim 20, wherein the memory system is removably connected to a host.
28. A memory system comprising:
a memory; and a controller in communication with the memory, wherein the controller is configured to:
measure idle time of the memory; and
determine if the measured idle time is less than or greater than a background operation threshold time after which the controller performs a background operation;
in response to determining that the measured idle time is less than the background operation threshold time, decrease the background operation threshold time; and
in response to determining that the measured idle time is greater than the threshold time, increase the background operation threshold time.
29. The memory system of Claim 28, wherein the controller is configured to measure idle time by measuring an amount of time between when the controller completes an operation in the memory and when the controller receives a command to perform another operation in the memory.
30. The memory system of Claim 29, wherein the controller is configured to measure the amount of time by measuring time between when the controller receives an end signal via a memory interface and when the controller received a start signal via a host interface.
31. The memory system of Claim 28, wherein the controller is configured to use a plurality of measured idle times to determine if the threshold should be increased or decreased.
32. The memory system of Claim 28, wherein the controller is configured to measure idle time using interrupt circuitry and a clock, and wherein the controller is further configured to determine if the measured idle time of the controller is less than or greater than the threshold using self-learning circuitry.
33. The memory system of Claim 28, wherein the memory is a three-dimensional memory.
34. The memory system of Claim 28, wherein the memory system is embedded in a host
35. The memory system of Claim 28, wherein the memory system is removably connected to a host.
PCT/US2016/036354 2015-07-20 2016-06-08 Memory system and method for adaptive auto-sleep and background operations Ceased WO2017014844A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201680049605.7A CN107924224B (en) 2015-07-20 2016-06-08 Memory system and method for adaptive auto-sleep and background operation

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US14/803,732 2015-07-20
US14/803,732 US10042416B2 (en) 2015-07-20 2015-07-20 Memory system and method for adaptive auto-sleep and background operations

Publications (1)

Publication Number Publication Date
WO2017014844A1 true WO2017014844A1 (en) 2017-01-26

Family

ID=56194585

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2016/036354 Ceased WO2017014844A1 (en) 2015-07-20 2016-06-08 Memory system and method for adaptive auto-sleep and background operations

Country Status (3)

Country Link
US (1) US10042416B2 (en)
CN (1) CN107924224B (en)
WO (1) WO2017014844A1 (en)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11029748B2 (en) * 2016-03-15 2021-06-08 Qualcomm Incorporated Adaptive peripheral component interconnect express link substate initiation for optimal performance and power savings
US11269764B2 (en) * 2017-03-21 2022-03-08 Western Digital Technologies, Inc. Storage system and method for adaptive scheduling of background operations
US11188456B2 (en) 2017-03-21 2021-11-30 Western Digital Technologies Inc. Storage system and method for predictive block allocation for efficient garbage collection
US10635335B2 (en) 2017-03-21 2020-04-28 Western Digital Technologies, Inc. Storage system and method for efficient pipeline gap utilization for background operations
KR102298947B1 (en) * 2017-04-28 2021-09-08 삼성전자주식회사 Voice data processing method and electronic device supporting the same
KR102480017B1 (en) * 2017-08-11 2022-12-21 삼성전자 주식회사 Memory Controller and Application Processor controlling performance/power of input/output device and Operating Method of Memory Controller
US10732871B2 (en) * 2017-11-01 2020-08-04 Western Digital Technologies, Inc. Storage device and method for adaptive sleep mode transitions
US10489072B2 (en) * 2017-11-01 2019-11-26 Western Digital Technologies, Inc. Activity based device initiated state transitions
US20190041947A1 (en) * 2018-06-28 2019-02-07 Intel Corporation Technologies for dynamically managing power states of endpoint devices based on workload
JP7159002B2 (en) * 2018-10-26 2022-10-24 キヤノン株式会社 An information processing apparatus including a device that is in an operation stop state according to an operation stop signal and that can shift to a power saving mode on condition that at least an operation stop signal is not input.
CN110187192B (en) * 2019-06-17 2021-05-11 南方电网科学研究院有限责任公司 A converter valve loss measurement system and method based on the drag experiment
CN110333770B (en) * 2019-07-10 2023-05-09 合肥兆芯电子有限公司 Memory management method, memory storage device and memory control circuit unit
US11507310B2 (en) 2019-09-02 2022-11-22 SK Hynix Inc. Memory controller and operating method thereof
KR20210061174A (en) * 2019-11-19 2021-05-27 에스케이하이닉스 주식회사 Memory controller and operating method thereof
US11501808B2 (en) 2019-09-02 2022-11-15 SK Hynix Inc. Memory controller and operating method thereof
KR102713219B1 (en) 2019-09-02 2024-10-07 에스케이하이닉스 주식회사 Memory controller and operating method thereof
US12223195B2 (en) 2019-09-02 2025-02-11 SK Hynix Inc. Memory controller and operating method thereof
US12051470B2 (en) 2019-09-02 2024-07-30 SK Hynix Inc. Memory controller and operating method thereof
KR20210097938A (en) 2020-01-31 2021-08-10 에스케이하이닉스 주식회사 Apparatus and method for verifying reliability of data read from memory device through clock modulation and memory system including the same
US11656673B2 (en) * 2019-12-30 2023-05-23 Micron Technology, Inc. Managing reduced power memory operations
KR102848954B1 (en) 2020-02-28 2025-08-20 삼성전자주식회사 Storage device and Method of operating the storage device
US11500447B2 (en) * 2020-03-20 2022-11-15 Western Digital Technologies, Inc. Power allocation management for external storage
US11126254B1 (en) 2020-05-26 2021-09-21 Western Digital Technologies, Inc. Shaped and optimized power cycles
US11726659B2 (en) 2021-03-10 2023-08-15 Samsung Electronics Co., Ltd. Systems, methods, and devices for data storage with specified data transfer rate
US12112062B2 (en) 2021-06-24 2024-10-08 SanDisk Technologies, Inc. Write performance by relocation during sequential reads
US11797228B2 (en) * 2021-06-24 2023-10-24 Western Digital Technologies, Inc. Efficient handling of background operations for improving sustained performance of host reads and writes
US11886220B2 (en) * 2022-05-05 2024-01-30 Qualcomm Incorporated Dynamic power-down management in a computing device
CN119536498B (en) * 2023-08-31 2026-04-10 北京玄戒技术有限公司 Low-power consumption management method and device, electronic equipment, chip and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198542A1 (en) * 2004-03-08 2005-09-08 David Freker Method and apparatus for a variable memory enable deassertion wait time
WO2010080172A1 (en) * 2009-01-12 2010-07-15 Rambus Inc. Clock-forwarding low-power signaling system
US20120151238A1 (en) * 2010-12-08 2012-06-14 Dawin Technology Inc. Reducing power consumption in memory line architecture
US20120159209A1 (en) * 2010-12-20 2012-06-21 Microsoft Corporation Idle Time Service
US20130290758A1 (en) * 2010-01-11 2013-10-31 Qualcomm Incorporated Sleep mode latency scaling and dynamic run time adjustment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08335357A (en) * 1995-06-08 1996-12-17 Fujitsu Ltd Storage device
US7383457B1 (en) * 2005-03-23 2008-06-03 Apple Inc. Adaptive power-reduction mode
US7386747B2 (en) * 2005-05-10 2008-06-10 Qualcomm Incorporated Method and system for reducing power consumption of a programmable processor
US8448003B1 (en) * 2007-05-03 2013-05-21 Marvell Israel (M.I.S.L) Ltd. Method and apparatus for activating sleep mode
US8024594B2 (en) * 2008-03-31 2011-09-20 Intel Corporation Method and apparatus for reducing power consumption in multi-channel memory controller systems
US9281021B2 (en) * 2013-03-14 2016-03-08 Macronix International Co., Ltd. Method and apparatus for reduced read latency for consecutive read operations of memory of an integrated circuit
US9921635B2 (en) * 2013-10-31 2018-03-20 Advanced Micro Devices, Inc. Dynamic and adaptive sleep state management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198542A1 (en) * 2004-03-08 2005-09-08 David Freker Method and apparatus for a variable memory enable deassertion wait time
WO2010080172A1 (en) * 2009-01-12 2010-07-15 Rambus Inc. Clock-forwarding low-power signaling system
US20130290758A1 (en) * 2010-01-11 2013-10-31 Qualcomm Incorporated Sleep mode latency scaling and dynamic run time adjustment
US20120151238A1 (en) * 2010-12-08 2012-06-14 Dawin Technology Inc. Reducing power consumption in memory line architecture
US20120159209A1 (en) * 2010-12-20 2012-06-21 Microsoft Corporation Idle Time Service

Also Published As

Publication number Publication date
US20170024002A1 (en) 2017-01-26
CN107924224A (en) 2018-04-17
CN107924224B (en) 2021-11-26
US10042416B2 (en) 2018-08-07

Similar Documents

Publication Publication Date Title
US10042416B2 (en) Memory system and method for adaptive auto-sleep and background operations
CN107767915B (en) Adaptive temperature and memory parameter suppression
US10572169B2 (en) Scheduling scheme(s) for a multi-die storage device
US10698610B2 (en) Storage system and method for performing high-speed read and write operations
US9927986B2 (en) Data storage device with temperature sensor and temperature calibration circuitry and method of operating same
EP3149732B1 (en) Methods and systems for staggered memory operations
US10133483B2 (en) Memory system and method for differential thermal throttling
US9645744B2 (en) Suspending and resuming non-volatile memory operations
US9070481B1 (en) Internal current measurement for age measurements
US10379754B2 (en) Memory die temperature adjustment based on a power condition
US9658789B2 (en) Storage module and method for optimized power utilization
US20170371559A1 (en) Systems and Methods for Optimizing Media Read Times
US9269451B2 (en) Storage device and method for performing a self-refresh operation
CN107924701B (en) Dynamic Retuning of Charge-Trapped-Based Memories
US9940039B2 (en) Method and data storage device with enhanced data retention
US9996486B2 (en) Data transfer rate adjustment
US20170109078A1 (en) Memory System and Method for Increasing Read Parallelism of Translation Pages
US9658790B2 (en) Memory system and method for power-based operation scheduling
US9620201B1 (en) Storage system and method for using hybrid blocks with sub-block erase operations
US11487449B2 (en) Data storage device and method for enabling higher lane utilization in run time via device hints on workload patterns
US20250110666A1 (en) Data Storage Device and Method for Delaying Execution of a Host Write Command to Perform an Internal Memory Operation
CN112486850B (en) Controller and operation method thereof
US12619498B2 (en) Data storage device and method for transaction recovery using extra timeout
US20250370875A1 (en) Data Storage Device and Method for Transaction Recovery Using Extra Timeout
US20250391490A1 (en) Storage device including memory device, operation method of storage device, and operation method of memory device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16731723

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16731723

Country of ref document: EP

Kind code of ref document: A1