US20170228168A1 - Memory state management for electronic device - Google Patents
Memory state management for electronic device Download PDFInfo
- Publication number
- US20170228168A1 US20170228168A1 US15/276,414 US201615276414A US2017228168A1 US 20170228168 A1 US20170228168 A1 US 20170228168A1 US 201615276414 A US201615276414 A US 201615276414A US 2017228168 A1 US2017228168 A1 US 2017228168A1
- Authority
- US
- United States
- Prior art keywords
- volatile memory
- memory
- sections
- controller
- state
- 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.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
- G06F3/0611—Improving I/O performance in relation to response time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3275—Power saving in memory, e.g. RAM, cache
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/12—Replacement control
- G06F12/121—Replacement control using replacement algorithms
- G06F12/122—Replacement control using replacement algorithms of the least frequently used [LFU] type, e.g. with individual count value
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/12—Replacement control
- G06F12/121—Replacement control using replacement algorithms
- G06F12/128—Replacement control using replacement algorithms adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0658—Controller construction arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C11/00—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
- G11C11/21—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements
- G11C11/34—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices
- G11C11/40—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors
- G11C11/401—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors forming cells needing refreshing or charge regeneration, i.e. dynamic cells
- G11C11/4063—Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing or timing
- G11C11/407—Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing or timing for memory cells of the field-effect type
- G11C11/4074—Power supply or voltage generation circuits, e.g. bias voltage generators, substrate voltage generators, back-up power, power control circuits
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/12—Replacement control
-
- G06F2212/69—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0625—Power saving in storage systems
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Definitions
- the subject matter described herein relates generally to the field of electronic devices and more particularly to a memory state management for electronic devices.
- Mobile electronic devices such as, e.g., laptop computers, notebook computers, tablet computers, mobile phones, electronic readers, and the like are commonly powered by one or more batteries. Many mobile devices are rarely turned off. Rather, users allow the devices to enter a sleep state in which various system components are placed in a low-activity state for extended periods of time to save power.
- a memory system is one of the consumers of power in an electronic device. Accordingly systems and methods to manage memory systems may find utility.
- FIGS. 1 and 2 are high-level schematic illustrations of an electronic device which may be adapted to include battery power management in accordance with some embodiments.
- FIGS. 3 and 4 are schematic, block diagram illustration of components of a memory system which may implement memory state management in accordance with various embodiments discussed herein.
- FIG. 5 is a flowchart illustrating operations in a method for battery power management in accordance with some embodiments.
- FIGS. 6-9 are schematic illustrations of electronic devices which may be modified to implement battery power management in accordance with some embodiments.
- Memory systems may include a volatile memory such as Dynamic Random Access Memory (DRAM), which frequently functions as cache memory, and nonvolatile memory such as phase change memory, NAND memory or the like or even magnetic or optical memory. Volatile memory generally exhibits faster response times (i.e., lower latency) but consumes more power, at least in part due to refresh requirements.
- DRAM Dynamic Random Access Memory
- volatile memory generally exhibits faster response times (i.e., lower latency) but consumes more power, at least in part due to refresh requirements.
- a two level memory In a two level memory (2LM) the physical memory address space is mapped to a nonvolatile memory.
- a nonvolatile memory There is also a large volatile memory (i.e., DRAM) cache to keep performance high, as the nonvolatile memory technology has higher latency and lower bandwidth than standard DRAM.
- the nonvolatile memory consumes little power at idle, unlike DRAM, which consumes considerable power during idle.
- relatively more data is kept in the DRAM under heavy load and less data in DRAM during low utilization. In each case all data is kept in the nonvolatile memory store, but the size of the DRAM cache may be adjusted to save power.
- DRAM memory is generally managed using memory tables which map logical addresses onto the underlying physical memory structure and which maintain state information about the memory.
- Example states are modified (M), Exclusive (E), shared (S), and invalid (I).
- a new memory state unused (U) is introduced.
- Memory may be placed into the U state when the electronic device is in a low activity state.
- the DRAM cache size can be reduced either by suspending refresh operations to memory in the U state or by writing data from the volatile memory back to the nonvolatile memory and then powering down the volatile memory.
- the memory system may suspend operations of some or all of the volatile memory in order to conserve power.
- the amount of volatile memory that is suspended may be managed dynamically by setting a threshold target for a performance parameter such as the cache miss rate. If the cache miss rate is below a threshold then additional volatile memory may be taken off line to conserve power. By contrast, if the cache miss rate exceeds a threshold then volatile memory may be brought back online.
- FIG. 1 is a schematic illustration of an exemplary electronic device 100 which may be adapted to implement battery power management as described herein, in accordance with some embodiments.
- electronic device 100 includes one or more accompanying input/output devices including a display 102 having a screen 104 , one or more speakers 106 , a keyboard 110 , and a mouse 114 .
- the electronic device 100 may be embodied as a personal computer, a laptop computer, a personal digital assistant, a mobile telephone, an entertainment device, or another computing device.
- the electronic device 100 includes system hardware 120 and memory 130 , which may be implemented as random access memory and/or read-only memory.
- a power source such as a battery 180 may be coupled to the electronic device 100 .
- System hardware 120 may include one or more processors 122 , one or more graphics processors 124 , network interfaces 126 , and bus structures 128 .
- processor 122 may be embodied as an Intel ® Core2 Duo® processor available from Intel Corporation, Santa Clara, Calif., USA.
- processor means any type of computational element, such as but not limited to, a microprocessor, a microcontroller, a complex instruction set computing (CISC) microprocessor, a reduced instruction set (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or any other type of processor or processing circuit.
- CISC complex instruction set computing
- RISC reduced instruction set
- VLIW very long instruction word
- Graphics processor(s) 124 may function as adjunct processor that manages graphics and/or video operations. Graphics processor(s) 124 may be integrated onto the motherboard of electronic device 100 or may be coupled via an expansion slot on the motherboard.
- network interface 126 could be a wired interface such as an Ethernet interface (see, e.g., Institute of Electrical and Electronics Engineers/IEEE 802.3-2002) or a wireless interface such as an IEEE 802.11a, b or g-compliant interface (see, e.g., IEEE Standard for IT-Telecommunications and information exchange between systems LAN/MAN—Part II: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications Amendment 4: Further Higher Data Rate Extension in the 2.4 GHz Band, 802.11G-2003).
- GPRS general packet radio service
- Bus structures 128 connect various components of system hardware 128 .
- bus structures 128 may be one or more of several types of bus structure(s) including a memory bus, a peripheral bus or external bus, and/or a local bus using any variety of available bus architectures including, but not limited to, 11-bit bus, Industrial Standard Architecture (ISA), Micro-Channel Architecture (MSA), Extended ISA (EISA), Intelligent Drive Electronics (IDE), VESA Local Bus (VLB), Peripheral Component Interconnect (PCI), Universal Serial Bus (USB), Advanced Graphics Port (AGP), Personal Computer Memory Card International Association bus (PCMCIA), and Small Computer Systems Interface (SCSI).
- ISA Industrial Standard Architecture
- MSA Micro-Channel Architecture
- EISA Extended ISA
- IDE Intelligent Drive Electronics
- VLB VESA Local Bus
- PCI Peripheral Component Interconnect
- USB Universal Serial Bus
- AGP Advanced Graphics Port
- PCMCIA Personal Computer Memory Card International Association bus
- SCSI Small Computer Systems Interface
- Memory 130 may store an operating system 140 for managing operations of electronic device 100 .
- operating system 140 includes a hardware interface module 154 , e.g., a device driver, that provides an interface to system hardware 120 .
- operating system 140 may include a file system 150 that manages files used in the operation of electronic device 100 and a process control subsystem 152 that manages processes executing on electronic device 100 .
- Operating system 140 may include (or manage) one or more communication interfaces that may operate in conjunction with system hardware 120 to transceive data packets and/or data streams from a remote source. Operating system 140 may further include a system call interface module 142 that provides an interface between the operating system 140 and one or more application modules resident in memory 130 . Operating system 140 may be embodied as a UNIX operating system or any derivative thereof (e.g., Linux, Solaris, etc.) or as a Windows® brand operating system, or other operating systems.
- memory 130 may store one or more applications which may execute on the one or more processors 122 including a state manage 162 .
- These applications may be embodied as logic instructions stored in a tangible, non-transitory computer readable medium (i.e., software or firmware) which may be executable on one or more of the processors 122 .
- these applications may be embodied as logic on a programmable device such as a field programmable gate array (FPGA) or the like.
- FPGA field programmable gate array
- these applications may be reduced to logic that may be hardwired into an integrated circuit.
- electronic device 100 may comprise a low-power embedded processor, referred to herein as a controller 170 .
- the controller 170 may be implemented as an independent integrated circuit located on the motherboard of the system 100 .
- the controller 170 may comprise one or more processors 172 and a memory module 174 , and the state manager 162 may be implemented in the controller 170 .
- the memory module 174 may comprise a persistent flash memory module and the state manager 162 may be implemented as logic instructions encoded in the persistent memory module, e.g., firmware or software. Because the controller 170 is physically separate from the main processor(s) 122 and operating system 140 , the adjunct controller 170 may be made secure, i.e., inaccessible to hackers such that it cannot be tampered with.
- FIG. 2 is a schematic illustration of another embodiment of an electronic device 200 which may be adapted to which may be adapted to implement battery power management as described herein, according to embodiments.
- electronic device 200 may be embodied as a mobile telephone, a personal digital assistant (PDA), a laptop computer, or the like.
- Electronic device 200 may include one or more temperature sensors 212 , an RF transceiver 220 to transceive RF signals and a signal processing module 222 to process signals received by RF transceiver 220 .
- RF transceiver 220 may implement a local wireless connection via a protocol such as, e.g., Bluetooth or 802.11X.
- IEEE 802.11a, b or g-compliant interface see, e.g., IEEE Standard for IT-Telecommunications and information exchange between systems LAN/MAN—Part II: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications Amendment 4 : Further Higher Data Rate Extension in the 2.4 GHz Band, 802.11G-2003).
- GPRS general packet radio service
- Electronic device 200 may further include one or more processors 224 and a memory module 240 .
- processor means any type of computational element, such as but not limited to, a microprocessor, a microcontroller, a complex instruction set computing (CISC) microprocessor, a reduced instruction set (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or any other type of processor or processing circuit.
- processor 224 may be one or more processors in the family of Intel® PXA 27 x processors available from Intel® Corporation of Santa Clara, Calif. Alternatively, other CPUs may be used, such as Intel's Itanium®, XEONTM, ATOMTM, and Celeron® processors. Also, one or more processors from other manufactures may be utilized. Moreover, the processors may have a single or multi core design.
- memory module 240 includes volatile memory (RAM); however, memory module 240 may be implemented using other memory types such as dynamic RAM (DRAM), synchronous DRAM (SDRAM), and the like. Memory 240 may store one or more applications which execute on the processor(s) 222 .
- RAM volatile memory
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- Memory 240 may store one or more applications which execute on the processor(s) 222 .
- Electronic device 200 may further include one or more input/output interfaces such as, e.g., a keypad 226 and one or more displays 228 .
- electronic device 200 comprises one or more camera modules 220 and an image signal processor 232 , and speakers 234 .
- a power source such as a battery 270 may be coupled to electronic device 200 .
- electronic device 200 may include a controller 270 which may be implemented in a manner analogous to that of adjunct controller 170 , described above.
- the controller 270 comprises one or more processor(s) 272 and a memory module 274 , which may be implemented as a persistent flash memory module. Because the controller 270 is physically separate from the main processor(s) 224 , the controller 270 may be made secure, i.e., inaccessible to hackers such that it cannot be tampered with.
- At least one of the memory 230 or the controller 270 may comprise a state manager 162 , which may be implemented as logic instructions encoded in the persistent memory module, e.g., firmware or software.
- FIG. 3 is a schematic, block diagram illustration of components of apparatus to implement memory latency management in accordance with various embodiments discussed herein.
- a central processing unit (CPU) package 300 which may comprise one or more CPUs 310 coupled to a control hub 320 and a local memory 330 .
- Control hub 320 comprises a memory controller 322 and a memory interface 324 .
- Memory interface 324 is coupled to one or more remote memory devices 340 by a communication bus 360 .
- Memory device 340 may comprise a controller 342 and one or more memory banks 350 .
- memory banks 350 may be implemented using nonvolatile memory.
- the memory device(s) 340 may comprise any suitable non-volatile memory, including but not limited to NAND (flash) memory, ferroelectric random-access memory (FeTRAM), nanowire-based non-volatile memory, memory that incorporates memristor technology, MRAM, STT-MRAM, three dimensional ( 3 D) cross point resistive memory such as phase change memory (PCM).
- NAND flash
- FeTRAM ferroelectric random-access memory
- PCM phase change memory
- memory 330 may be implemented using volatile memory such as one or more DRAM memory modules.
- FIG. 4 is a schematic, block diagram of an exemplary 330 which may be adapted to implement memory state management in accordance with various embodiments discussed herein.
- the memory 330 may comprise one or more direct in-line memory modules (DIMMs) 450 coupled to a memory channel 470 which provides a communication link to memory controller 322 .
- DIMMs direct in-line memory modules
- each DIMM comprises a first rank 455 and a second rank 460 , each of which includes a plurality of DRAM modules 465 .
- memory 330 may comprise more or fewer DIMMs 450 , and more or fewer ranks per DIMM. Further, some electronic devices (e.g., smart phones, tablet computers, and the like) may comprise simpler memory systems comprised of one or more DRAMs which need not be organized into DIMMs.
- the state manager 162 may comprise logic which, when executed, implements memory state management in a memory system of an electronic device. Operations of the state manager 162 will be described with reference to FIG. 5 .
- the state manager 162 monitors the device state.
- Many computer systems and their respective components may operate in one of a plurality of power states.
- ACPI Advanced Configuration and Power Interface
- the Advanced Configuration and Power Interface (ACPI) specification defines a plurality of active states and a plurality of inactive, or sleep, states for electronic devices. Each state is associated with particular operating states for various components and thereby defines different power consumption states. Sleep states are numbered S1-S4 states. Higher numbers correlate to deeper sleep states and correspondingly lower power consumption.
- the state manager 162 may periodically check the sleep state from the ACPI register maintained by the basic input/output system (BIOS) of the electronic device.
- BIOS basic input/output system
- the state manager 162 implements a memory state management routine which reduces power to at least a section of volatile memory in the memory 330 .
- the state manager 162 may require the electronic device to be in a specified sleep state (e.g., S3) or higher in order to invoke a memory state management routine.
- the state manager 162 suspends refresh operations to sections of the volatile memory in memory 330 .
- the state manager 162 may scan one or more memory management tables associated with the volatile memory in memory 330 and may identify one or more sections (e.g., cache lines, pages, or entire DRAMS) which are in an I state. The state manager 162 may then instruct the memory controller 322 to skip refresh operations on some or all of the memory sections identified as being in the I state.
- the state manager 162 may relocate data from one or more sections of the volatile memory in memory 330 .
- the state manager 162 may scan one or more memory management tables associated with the volatile memory in volatile memory 330 and may identify one or more sections (e.g., cache lines, pages, or entire DRAMS) which are in an M state.
- the state manager 162 may then instruct the memory controller 322 to relocate the data, e.g., by writing the data back to nonvolatile memory in volatile memory device(s) 340 . In some examples this may be performed at the DRAM level so that all data from sections in an M state on a DRAM is written back to the nonvolatile memory in volatile memory device(s) 340 .
- the state manager may then cut power (operation 530 ) to the DRAM chip, taking the DRAM chip offline.
- the state manager 162 may implement a routine which adjusts the amount of active nonvolatile memory dynamically in response to changes in the cache miss rate to achieve a balance between performance requirements and power conservation.
- the state manager 162 monitors the cache miss rate of the memory 330 .
- the state manager 162 will attempt to take more volatile memory offline to conserve power. Control thus passes to operation 545 and the state manager 162 may locate the least recently used (LRU) blocks of volatile memory in memory 330 . At operation 550 the state manager 162 collects active pages of memory onto a subset of DIMMs in the volatile memory 330 . At operation 555 the state manager 162 transitions the least recently used pages to an unused (U) state, and at operation 560 the state manager 162 powers down the DRAM chip. Control can then pass back to operation 535 and state manager 162 continues to monitor the cache miss rate.
- LRU least recently used
- operations 535 - 570 define a loop by which the state manager 162 can dynamically adjust the amount of volatile memory available in memory 330 to strike a balance between memory performance and power consumption when the memory 330 is operating in a reduced capacity.
- the state manager may utilize information from page tables for memory 330 to facilitate operations. For example, pages that are mapped as read-only, such as executable pages, can be placed in an area of contiguous memory such that the state manager 162 does not have to look for modified lines (M state). Rather, it can transition directly from state X to state U with no write back operations required. This saves power since no volatile memory writes will be required.
- the operating system memory manager may also be arranged such that read-only pages are located contiguously.
- FIG. 6 illustrates a block diagram of a computing system 600 in accordance with an embodiment of the invention.
- the computing system 600 may include one or more central processing unit(s) (CPUs) 602 or processors that communicate via an interconnection network (or bus) 604 .
- the processors 602 may include a general purpose processor, a network processor (that processes data communicated over a computer network 603 ), or other types of a processor (including a reduced instruction set computer (RISC) processor or a complex instruction set computer (CISC)).
- RISC reduced instruction set computer
- CISC complex instruction set computer
- the processors 602 may have a single or multiple core design.
- the processors 602 with a multiple core design may integrate different types of processor cores on the same integrated circuit (IC) die. Also, the processors 602 with a multiple core design may be implemented as symmetrical or asymmetrical multiprocessors. In an embodiment, one or more of the processors 602 may be the same or similar to the processors 102 of FIG. 1 . For example, one or more of the processors 602 may implement the state manager discussed with reference to FIGS. 1-2 . Also, the operations discussed with reference to FIG. 5 may be performed by one or more components of the system 600 .
- a chipset 606 may also communicate with the interconnection network 604 .
- the chipset 606 may include a memory control hub (MCH) 608 .
- the MCH 608 may include a memory controller 610 that communicates with a memory 612 (which may be the same or similar to the memory 130 of FIG. 1 ).
- the memory 412 may store data, including sequences of instructions, that may be executed by the CPU 602 , or any other device included in the computing system 600 .
- the memory 612 may include one or more volatile storage (or memory) devices such as random access memory (RAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), static RAM (SRAM), or other types of storage devices. Additional devices may communicate via the interconnection network 604 , such as multiple CPUs and/or multiple system memories.
- the MCH 608 may also include a graphics interface 614 that communicates with a display device 616 .
- the graphics interface 614 may communicate with the display device 616 via an accelerated graphics port (AGP).
- AGP accelerated graphics port
- the display 616 (such as a flat panel display) may communicate with the graphics interface 614 through, for example, a signal converter that translates a digital representation of an image stored in a storage device such as video memory or system memory into display signals that are interpreted and displayed by the display 616 .
- the display signals produced by the display device may pass through various control devices before being interpreted by and subsequently displayed on the display 616 .
- a hub interface 618 may allow the MCH 608 and an input/output control hub (ICH) 620 to communicate.
- the ICH 620 may provide an interface to I/O device(s) that communicate with the computing system 600 .
- the ICH 620 may communicate with a bus 622 through a peripheral bridge (or controller) 624 , such as a peripheral component interconnect (PCI) bridge, a universal serial bus (USB) controller, or other types of peripheral bridges or controllers.
- the bridge 624 may provide a data path between the CPU 602 and peripheral devices. Other types of topologies may be utilized.
- multiple buses may communicate with the ICH 620 , e.g., through multiple bridges or controllers.
- peripherals in communication with the ICH 620 may include, in various embodiments of the invention, integrated drive electronics (IDE) or small computer system interface (SCSI) hard drive(s), USB port(s), a keyboard, a mouse, parallel port(s), serial port(s), floppy disk drive(s), digital output support (e.g., digital video interface (DVI)), a solid state drive (SSD) with SATA interface or PCIe interface, or other devices.
- IDE integrated drive electronics
- SCSI small computer system interface
- HDD digital video interface
- SSD solid state drive
- the bus 622 may communicate with an audio device 626 , one or more disk drive(s) 628 , and a network interface device 630 (which is in communication with the computer network 603 ). Other devices may communicate via the bus 622 . Also, various components (such as the network interface device 630 ) may communicate with the MCH 608 in some embodiments of the invention. In addition, the processor 602 and one or more other components discussed herein may be combined to form a single chip (e.g., to provide a System on Chip (SOC)). Furthermore, the graphics accelerator 616 may be included within the MCH 608 in other embodiments of the invention.
- SOC System on Chip
- nonvolatile memory may include one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically EPROM (EEPROM), a disk drive (e.g., 628 ), a floppy disk, a compact disk ROM (CD-ROM), a digital versatile disk (DVD), flash memory, a magneto-optical disk, or other types of nonvolatile machine-readable media that are capable of storing electronic data (e.g., including instructions).
- ROM read-only memory
- PROM programmable ROM
- EPROM erasable PROM
- EEPROM electrically EPROM
- a disk drive e.g., 628
- CD-ROM compact disk ROM
- DVD digital versatile disk
- flash memory e.g., a magneto-optical disk, or other types of nonvolatile machine-readable media that are capable of storing electronic data (e.g., including instructions).
- FIG. 7 illustrates a block diagram of a computing system 700 , according to an embodiment of the invention.
- the system 700 may include one or more processors 702 - 1 through 702 -N (generally referred to herein as “processors 702 ” or “processor 702 ”).
- the processors 702 may communicate via an interconnection network or bus 704 .
- Each processor may include various components some of which are only discussed with reference to processor 702 - 1 for clarity. Accordingly, each of the remaining processors 702 - 2 through 702 -N may include the same or similar components discussed with reference to the processor 702 - 1 .
- the processor 702 - 1 may include one or more processor cores 706 - 1 through 706 -M (referred to herein as “cores 706 ” or more generally as “core 706 ”), a shared cache 708 , a router 710 , and/or a processor control logic or unit 720 .
- the processor cores 706 may be implemented on a single integrated circuit (IC) chip.
- the chip may include one or more shared and/or private caches (such as cache 708 ), buses or interconnections (such as a bus or interconnection network 712 ), memory controllers, or other components.
- the router 710 may be used to communicate between various components of the processor 702 - 1 and/or system 700 .
- the processor 702 - 1 may include more than one router 710 .
- the multitude of routers 710 may be in communication to enable data routing between various components inside or outside of the processor 702 - 1 .
- the shared cache 708 may store data (e.g., including instructions) that are utilized by one or more components of the processor 702 - 1 , such as the cores 706 .
- the shared cache 708 may locally cache data stored in a memory 714 for faster access by components of the processor 702 .
- the cache 708 may include a mid-level cache (such as a level 2 (L2), a level 3 (L3), a level 4 (L4), or other levels of cache), a last level cache (LLC), and/or combinations thereof.
- various components of the processor 702 - 1 may communicate with the shared cache 708 directly, through a bus (e.g., the bus 712 ), and/or a memory controller or hub.
- one or more of the cores 706 may include a level 1 (L1) cache 716 - 1 (generally referred to herein as “L1 cache 716 ”).
- the controller 720 may include logic to implement the operations described above with reference to FIG. 3 .
- FIG. 8 illustrates a block diagram of portions of a processor core 706 and other components of a computing system, according to an embodiment of the invention.
- the arrows shown in FIG. 8 illustrate the flow direction of instructions through the core 706 .
- One or more processor cores may be implemented on a single integrated circuit chip (or die) such as discussed with reference to FIG. 7 .
- the chip may include one or more shared and/or private caches (e.g., cache 708 of FIG. 7 ), interconnections (e.g., interconnections 704 and/or 112 of FIG. 7 ), control units, memory controllers, or other components.
- the processor core 706 may include a fetch unit 802 to fetch instructions (including instructions with conditional branches) for execution by the core 706 .
- the instructions may be fetched from any storage devices such as the memory 714 .
- the core 706 may also include a decode unit 804 to decode the fetched instruction. For instance, the decode unit 804 may decode the fetched instruction into a plurality of uops (micro-operations).
- the core 706 may include a schedule unit 806 .
- the schedule unit 806 may perform various operations associated with storing decoded instructions (e.g., received from the decode unit 804 ) until the instructions are ready for dispatch, e.g., until all source values of a decoded instruction become available.
- the schedule unit 806 may schedule and/or issue (or dispatch) decoded instructions to an execution unit 808 for execution.
- the execution unit 808 may execute the dispatched instructions after they are decoded (e.g., by the decode unit 804 ) and dispatched (e.g., by the schedule unit 806 ).
- the execution unit 808 may include more than one execution unit.
- the execution unit 808 may also perform various arithmetic operations such as addition, subtraction, multiplication, and/or division, and may include one or more an arithmetic logic units (ALUs).
- ALUs arithmetic logic units
- a co-processor (not shown) may perform various arithmetic operations in conjunction with the execution unit 808 .
- the execution unit 808 may execute instructions out-of-order.
- the processor core 706 may be an out-of-order processor core in one embodiment.
- the core 706 may also include a retirement unit 810 .
- the retirement unit 810 may retire executed instructions after they are committed. In an embodiment, retirement of the executed instructions may result in processor state being committed from the execution of the instructions, physical registers used by the instructions being de-allocated, etc.
- the core 706 may also include a bus unit 714 to enable communication between components of the processor core 706 and other components (such as the components discussed with reference to FIG. 8 ) via one or more buses (e.g., buses 804 and/or 812 ).
- the core 706 may also include one or more registers 816 to store data accessed by various components of the core 706 (such as values related to power consumption state settings).
- FIG. 7 illustrates the control unit 720 to be coupled to the core 706 via interconnect 812
- the control unit 720 may be located elsewhere such as inside the core 706 , coupled to the core via bus 704 , etc.
- FIG. 9 illustrates a block diagram of an SOC package in accordance with an embodiment.
- SOC 902 includes one or more Central Processing Unit (CPU) cores 920 , one or more Graphics Processor Unit (GPU) cores 930 , an Input/Output (I/O) interface 940 , and a memory controller 942 .
- CPU Central Processing Unit
- GPU Graphics Processor Unit
- I/O Input/Output
- Various components of the SOC package 902 may be coupled to an interconnect or bus such as discussed herein with reference to the other figures.
- the SOC package 902 may include more or less components, such as those discussed herein with reference to the other figures.
- each component of the SOC package 902 may include one or more other components, e.g., as discussed with reference to the other figures herein.
- SOC package 902 (and its components) is provided on one or more Integrated Circuit (IC) die, e.g., which are packaged into a single semiconductor device.
- IC Integrated Circuit
- SOC package 902 is coupled to a memory 960 (which may be similar to or the same as memory discussed herein with reference to the other figures) via the memory controller 942 .
- the memory 960 (or a portion of it) can be integrated on the SOC package 902 .
- the I/O interface 940 may be coupled to one or more I/O devices 970 , e.g., via an interconnect and/or bus such as discussed herein with reference to other figures.
- I/O device(s) 970 may include one or more of a keyboard, a mouse, a touchpad, a display, an image/video capture device (such as a camera or camcorder/video recorder), a touch screen, a speaker, or the like.
- Example 1 is a computer program product comprising logic instructions stored in a non-transitory computer readable medium which, when executed by a controller, configure the controller to perform operations to manage a memory state of a volatile memory, comprising determining whether an electronic device comprising a volatile memory and a nonvolatile memory is operating in a low power state, and in response to a determination that the electronic device is operating in a low power state, implementing a memory state management routine which reduces power to at least a section of the volatile memory in the memory system.
- the computer program product may further comprising logic instructions stored in the non-transitory computer readable medium which, when executed by the controller, configure the controller to perform operations comprising identifying one or more sections of volatile memory which are in an invalid state and suspending refresh operations to the one or more sections of volatile memory in an invalid state.
- the computer program product may further comprise logic instructions stored in the non-transitory computer readable medium which, when executed by the controller, configure the controller to perform operations comprising identifying one or more sections of a volatile memory module which are in a modified state, relocating data from the one or more sections of a volatile memory module which are in a modified state, and powering down the volatile memory module.
- the computer program product may further comprise logic instructions stored in the non-transitory computer readable medium which, when executed by the controller, configure the controller to perform operations comprising determining whether a cache miss rate is below a threshold and in response to a determination that the cache miss rate is below the threshold identifying one or more least recently used sections of a volatile memory module which are in a modified state relocating data from the one or more least recently used sections of the volatile memory module which are in a modified state and powering down the volatile memory module.
- the computer program product may further comprise logic instructions stored in the non-transitory computer readable medium which, when executed by the controller, configure the controller to perform operations comprising determining whether a cache miss rate is below a threshold and in response to a determination that the cache miss rate is not below the threshold activating at least one inactive memory module.
- the sections of volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
- a controller comprises logic to determine whether an electronic device comprising a volatile memory and a nonvolatile memory is operating in a low power state and in response to a determination that the electronic device is operating in a low power state, implement a memory state management routine which reduces power to at least a section of the volatile memory in the memory system.
- the controller may comprise logic to identify one or more sections of volatile memory which are in an invalid state and suspend refresh operations to the one or more sections of volatile memory in an invalid state.
- the controller may comprise logic to identify one or more sections of a volatile memory module which are in a modified state relocate data from the one or more sections of a volatile memory module which are in a modified state, and power down the volatile memory module.
- the controller may comprise logic to determine whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is below the threshold, to identify one or more least recently used sections of a volatile memory module which are in a modified state, relocate data from the one or more least recently used sections of the volatile memory module which are in a modified state, and power down the volatile memory module.
- the controller may comprise logic to determine whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is not below the threshold, to activate at least one inactive memory module.
- the sections of volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
- an electronic device comprises a memory system and a controller comprising logic to determine whether an electronic device is operating in a low power state, and in response to a determination that the electronic device is operating in a low power state, implement a memory state management routine which reduces power to at least a section of volatile memory in the memory system.
- the electronic device may comprise logic to identify one or more sections of volatile memory which are in an invalid state, and suspend refresh operations to the one or more sections of volatile memory in an invalid state.
- the electronic device may comprise logic to identify one or more sections of a volatile memory module which are in a modified state, relocate data from the one or more sections of a volatile memory module which are in a modified state, and power down the volatile memory module.
- the electronic device may comprise logic to determine whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is below the threshold. to identify one or more least recently used sections of a volatile memory module which are in a modified state, relocate data from the one or more least recently used sections of the volatile memory module which are in a modified state, and power down the volatile memory module.
- the electronic device may comprise logic to determine whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is not below the threshold, to activate at least one inactive memory module.
- the sections of volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
- a method to manage a memory system coupled to an electronic device comprises determining, in a controller, whether an electronic device is operating in a low power state, and in response to a determination that the electronic device is operating in a low power state, implementing a memory state management routine which reduces power to at least a section of volatile memory in the memory system.
- the method may further comprise identifying one or more sections of volatile memory which are in an invalid state, and suspending refresh operations to the one or more sections of volatile memory in an invalid state.
- the method may further comprise identifying one or more sections of a volatile memory module which are in a modified state, relocating data from the one or more sections of a volatile memory module which are in a modified state, and powering down the volatile memory module.
- the method may further comprise determining whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is below the threshold, identifying one or more least recently used sections of a volatile memory module which are in a modified state, relocating data from the one or more least recently used sections of the volatile memory module which are in a modified state, and powering down the volatile memory module.
- the method may further comprise determining whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is not below the threshold, activating at least one inactive memory module.
- the sections of volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
- logic instructions as referred to herein relates to expressions which may be understood by one or more machines for performing one or more logical operations.
- logic instructions may comprise instructions which are interpretable by a processor compiler for executing one or more operations on one or more data objects.
- this is merely an example of machine-readable instructions and embodiments are not limited in this respect.
- a computer readable medium may comprise one or more storage devices for storing computer readable instructions or data.
- Such storage devices may comprise storage media such as, for example, optical, magnetic or semiconductor storage media.
- this is merely an example of a computer readable medium and embodiments are not limited in this respect.
- logic as referred to herein relates to structure for performing one or more logical operations.
- logic may comprise circuitry which provides one or more output signals based upon one or more input signals.
- Such circuitry may comprise a finite state machine which receives a digital input and provides a digital output, or circuitry which provides one or more analog output signals in response to one or more analog input signals.
- Such circuitry may be provided in an application specific integrated circuit (ASIC) or field programmable gate array (FPGA).
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- logic may comprise machine-readable instructions stored in a memory in combination with processing circuitry to execute such machine-readable instructions.
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- Some of the methods described herein may be embodied as logic instructions on a computer-readable medium. When executed on a processor, the logic instructions cause a processor to be programmed as a special-purpose machine that implements the described methods.
- the processor when configured by the logic instructions to execute the methods described herein, constitutes structure for performing the described methods.
- the methods described herein may be reduced to logic on, e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC) or the like.
- FPGA field programmable gate array
- ASIC application specific integrated circuit
- Coupled may mean that two or more elements are in direct physical or electrical contact.
- coupled may also mean that two or more elements may not be in direct contact with each other, but yet may still cooperate or interact with each other.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computing Systems (AREA)
- Power Sources (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
In one embodiment a controller comprises logic to determine whether an electronic device is operating in a low power state and in response to a determination that the electronic device is operating in a low power state, implement a memory state management routine which reduces power to at least a section of volatile memory in the memory system. Other embodiments may be described.
Description
- This application is a continuation of U.S. patent application Ser. No. 13/795,439, filed on Mar. 12, 2013, now issued as U.S. Pat. No. 9,454,214, which is incorporated herein by reference.
- The subject matter described herein relates generally to the field of electronic devices and more particularly to a memory state management for electronic devices.
- Mobile electronic devices such as, e.g., laptop computers, notebook computers, tablet computers, mobile phones, electronic readers, and the like are commonly powered by one or more batteries. Many mobile devices are rarely turned off. Rather, users allow the devices to enter a sleep state in which various system components are placed in a low-activity state for extended periods of time to save power. A memory system is one of the consumers of power in an electronic device. Accordingly systems and methods to manage memory systems may find utility.
- The detailed description is described with reference to the accompanying figures.
-
FIGS. 1 and 2 are high-level schematic illustrations of an electronic device which may be adapted to include battery power management in accordance with some embodiments. -
FIGS. 3 and 4 are schematic, block diagram illustration of components of a memory system which may implement memory state management in accordance with various embodiments discussed herein. -
FIG. 5 is a flowchart illustrating operations in a method for battery power management in accordance with some embodiments. -
FIGS. 6-9 are schematic illustrations of electronic devices which may be modified to implement battery power management in accordance with some embodiments. - Described herein are exemplary systems and methods to implement memory state management in electronic devices. Memory systems may include a volatile memory such as Dynamic Random Access Memory (DRAM), which frequently functions as cache memory, and nonvolatile memory such as phase change memory, NAND memory or the like or even magnetic or optical memory. Volatile memory generally exhibits faster response times (i.e., lower latency) but consumes more power, at least in part due to refresh requirements. During operation of the electronic device it may be beneficial to store data in DRAM memory for highest possible memory bandwidth. However there may be long periods of time when an electronic device is not under heavy use. During periods of inactivity it may be beneficial to implement memory state management to manage memory operations in a way that balances performance requirements with power conservation.
- In a two level memory (2LM) the physical memory address space is mapped to a nonvolatile memory. There is also a large volatile memory (i.e., DRAM) cache to keep performance high, as the nonvolatile memory technology has higher latency and lower bandwidth than standard DRAM. The nonvolatile memory consumes little power at idle, unlike DRAM, which consumes considerable power during idle. In embodiments described herein relatively more data is kept in the DRAM under heavy load and less data in DRAM during low utilization. In each case all data is kept in the nonvolatile memory store, but the size of the DRAM cache may be adjusted to save power.
- DRAM memory is generally managed using memory tables which map logical addresses onto the underlying physical memory structure and which maintain state information about the memory. Example states are modified (M), Exclusive (E), shared (S), and invalid (I). In accordance with embodiments described herein a new memory state unused (U) is introduced. Memory may be placed into the U state when the electronic device is in a low activity state. When memory is placed in a U state, the DRAM cache size can be reduced either by suspending refresh operations to memory in the U state or by writing data from the volatile memory back to the nonvolatile memory and then powering down the volatile memory.
- Thus, when an electronic device is in a low-activity state (e.g., a sleep state) the memory system may suspend operations of some or all of the volatile memory in order to conserve power. In some embodiments the amount of volatile memory that is suspended may be managed dynamically by setting a threshold target for a performance parameter such as the cache miss rate. If the cache miss rate is below a threshold then additional volatile memory may be taken off line to conserve power. By contrast, if the cache miss rate exceeds a threshold then volatile memory may be brought back online.
- In the following description, numerous specific details are set forth to provide a thorough understanding of various embodiments. However, it will be understood by those skilled in the art that the various embodiments may be practiced without the specific details. In other instances, well-known methods, procedures, components, and circuits have not been illustrated or described in detail so as not to obscure the particular embodiments.
-
FIG. 1 is a schematic illustration of an exemplaryelectronic device 100 which may be adapted to implement battery power management as described herein, in accordance with some embodiments. In one embodiment,electronic device 100 includes one or more accompanying input/output devices including adisplay 102 having ascreen 104, one ormore speakers 106, akeyboard 110, and amouse 114. In various embodiments, theelectronic device 100 may be embodied as a personal computer, a laptop computer, a personal digital assistant, a mobile telephone, an entertainment device, or another computing device. - The
electronic device 100 includessystem hardware 120 andmemory 130, which may be implemented as random access memory and/or read-only memory. A power source such as abattery 180 may be coupled to theelectronic device 100. -
System hardware 120 may include one ormore processors 122, one ormore graphics processors 124,network interfaces 126, andbus structures 128. In one embodiment,processor 122 may be embodied as an Intel ® Core2 Duo® processor available from Intel Corporation, Santa Clara, Calif., USA. As used herein, the term “processor” means any type of computational element, such as but not limited to, a microprocessor, a microcontroller, a complex instruction set computing (CISC) microprocessor, a reduced instruction set (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or any other type of processor or processing circuit. - Graphics processor(s) 124 may function as adjunct processor that manages graphics and/or video operations. Graphics processor(s) 124 may be integrated onto the motherboard of
electronic device 100 or may be coupled via an expansion slot on the motherboard. - In one embodiment,
network interface 126 could be a wired interface such as an Ethernet interface (see, e.g., Institute of Electrical and Electronics Engineers/IEEE 802.3-2002) or a wireless interface such as an IEEE 802.11a, b or g-compliant interface (see, e.g., IEEE Standard for IT-Telecommunications and information exchange between systems LAN/MAN—Part II: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications Amendment 4: Further Higher Data Rate Extension in the 2.4 GHz Band, 802.11G-2003). Another example of a wireless interface would be a general packet radio service (GPRS) interface (see, e.g., Guidelines on GPRS Handset Requirements, Global System for Mobile Communications/GSM Association, Ver. 3.0.1, December 2002). -
Bus structures 128 connect various components ofsystem hardware 128. In one embodiment,bus structures 128 may be one or more of several types of bus structure(s) including a memory bus, a peripheral bus or external bus, and/or a local bus using any variety of available bus architectures including, but not limited to, 11-bit bus, Industrial Standard Architecture (ISA), Micro-Channel Architecture (MSA), Extended ISA (EISA), Intelligent Drive Electronics (IDE), VESA Local Bus (VLB), Peripheral Component Interconnect (PCI), Universal Serial Bus (USB), Advanced Graphics Port (AGP), Personal Computer Memory Card International Association bus (PCMCIA), and Small Computer Systems Interface (SCSI). -
Memory 130 may store anoperating system 140 for managing operations ofelectronic device 100. In one embodiment,operating system 140 includes ahardware interface module 154, e.g., a device driver, that provides an interface tosystem hardware 120. In addition,operating system 140 may include afile system 150 that manages files used in the operation ofelectronic device 100 and aprocess control subsystem 152 that manages processes executing onelectronic device 100. -
Operating system 140 may include (or manage) one or more communication interfaces that may operate in conjunction withsystem hardware 120 to transceive data packets and/or data streams from a remote source.Operating system 140 may further include a systemcall interface module 142 that provides an interface between theoperating system 140 and one or more application modules resident inmemory 130.Operating system 140 may be embodied as a UNIX operating system or any derivative thereof (e.g., Linux, Solaris, etc.) or as a Windows® brand operating system, or other operating systems. - In some
embodiments memory 130 may store one or more applications which may execute on the one ormore processors 122 including a state manage 162. These applications may be embodied as logic instructions stored in a tangible, non-transitory computer readable medium (i.e., software or firmware) which may be executable on one or more of theprocessors 122. Alternatively, these applications may be embodied as logic on a programmable device such as a field programmable gate array (FPGA) or the like. Alternatively, these applications may be reduced to logic that may be hardwired into an integrated circuit. - In some embodiments
electronic device 100 may comprise a low-power embedded processor, referred to herein as acontroller 170. Thecontroller 170 may be implemented as an independent integrated circuit located on the motherboard of thesystem 100. In some embodiments thecontroller 170 may comprise one ormore processors 172 and amemory module 174, and thestate manager 162 may be implemented in thecontroller 170. By way of example, thememory module 174 may comprise a persistent flash memory module and thestate manager 162 may be implemented as logic instructions encoded in the persistent memory module, e.g., firmware or software. Because thecontroller 170 is physically separate from the main processor(s) 122 andoperating system 140, theadjunct controller 170 may be made secure, i.e., inaccessible to hackers such that it cannot be tampered with. -
FIG. 2 is a schematic illustration of another embodiment of anelectronic device 200 which may be adapted to which may be adapted to implement battery power management as described herein, according to embodiments. In some embodimentselectronic device 200 may be embodied as a mobile telephone, a personal digital assistant (PDA), a laptop computer, or the like.Electronic device 200 may include one or more temperature sensors 212, anRF transceiver 220 to transceive RF signals and asignal processing module 222 to process signals received byRF transceiver 220. -
RF transceiver 220 may implement a local wireless connection via a protocol such as, e.g., Bluetooth or 802.11X. IEEE 802.11a, b or g-compliant interface (see, e.g., IEEE Standard for IT-Telecommunications and information exchange between systems LAN/MAN—Part II: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications Amendment 4: Further Higher Data Rate Extension in the 2.4 GHz Band, 802.11G-2003). Another example of a wireless interface would be a general packet radio service (GPRS) interface (see, e.g., Guidelines on GPRS Handset Requirements, Global System for Mobile Communications/GSM Association, Ver. 3.0.1, December 2002). -
Electronic device 200 may further include one ormore processors 224 and amemory module 240. As used herein, the term “processor” means any type of computational element, such as but not limited to, a microprocessor, a microcontroller, a complex instruction set computing (CISC) microprocessor, a reduced instruction set (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or any other type of processor or processing circuit. In some embodiments,processor 224 may be one or more processors in the family of Intel® PXA27x processors available from Intel® Corporation of Santa Clara, Calif. Alternatively, other CPUs may be used, such as Intel's Itanium®, XEON™, ATOM™, and Celeron® processors. Also, one or more processors from other manufactures may be utilized. Moreover, the processors may have a single or multi core design. - In some embodiments,
memory module 240 includes volatile memory (RAM); however,memory module 240 may be implemented using other memory types such as dynamic RAM (DRAM), synchronous DRAM (SDRAM), and the like.Memory 240 may store one or more applications which execute on the processor(s) 222. -
Electronic device 200 may further include one or more input/output interfaces such as, e.g., akeypad 226 and one ormore displays 228. In some embodimentselectronic device 200 comprises one ormore camera modules 220 and animage signal processor 232, andspeakers 234. A power source such as abattery 270 may be coupled toelectronic device 200. - In some embodiments
electronic device 200 may include acontroller 270 which may be implemented in a manner analogous to that ofadjunct controller 170, described above. In the embodiment depicted inFIG. 2 thecontroller 270 comprises one or more processor(s) 272 and amemory module 274, which may be implemented as a persistent flash memory module. Because thecontroller 270 is physically separate from the main processor(s) 224, thecontroller 270 may be made secure, i.e., inaccessible to hackers such that it cannot be tampered with. - In some embodiments at least one of the
memory 230 or thecontroller 270 may comprise astate manager 162, which may be implemented as logic instructions encoded in the persistent memory module, e.g., firmware or software. -
FIG. 3 is a schematic, block diagram illustration of components of apparatus to implement memory latency management in accordance with various embodiments discussed herein. Referring toFIG. 3 , in some embodiments a central processing unit (CPU)package 300 which may comprise one ormore CPUs 310 coupled to acontrol hub 320 and alocal memory 330.Control hub 320 comprises amemory controller 322 and amemory interface 324. -
Memory interface 324 is coupled to one or moreremote memory devices 340 by a communication bus 360.Memory device 340 may comprise acontroller 342 and one ormore memory banks 350. In various embodiments,memory banks 350 may be implemented using nonvolatile memory. By way of example, in some embodiments the memory device(s) 340 may comprise any suitable non-volatile memory, including but not limited to NAND (flash) memory, ferroelectric random-access memory (FeTRAM), nanowire-based non-volatile memory, memory that incorporates memristor technology, MRAM, STT-MRAM, three dimensional (3D) cross point resistive memory such as phase change memory (PCM). The specific configuration of the memory bank(s) 350 in the memory device(s) 340 is not critical. - In various embodiments,
memory 330 may be implemented using volatile memory such as one or more DRAM memory modules.FIG. 4 is a schematic, block diagram of an exemplary 330 which may be adapted to implement memory state management in accordance with various embodiments discussed herein. Referring toFIG. 4 , in some embodiments thememory 330 may comprise one or more direct in-line memory modules (DIMMs) 450 coupled to amemory channel 470 which provides a communication link tomemory controller 322. In the embodiment depicted inFIG. 4 each DIMM comprises afirst rank 455 and asecond rank 460, each of which includes a plurality ofDRAM modules 465. One skilled in the art will recognize thatmemory 330 may comprise more orfewer DIMMs 450, and more or fewer ranks per DIMM. Further, some electronic devices (e.g., smart phones, tablet computers, and the like) may comprise simpler memory systems comprised of one or more DRAMs which need not be organized into DIMMs. - Having described various embodiments and configurations of electronic devices which may be adapted to implement memory state management, attention will now be turned to methods to implement memory state management. In some embodiments the
state manager 162 may comprise logic which, when executed, implements memory state management in a memory system of an electronic device. Operations of thestate manager 162 will be described with reference toFIG. 5 . - Referring to
FIG. 5 , atoperation 510 thestate manager 162 monitors the device state. Many computer systems and their respective components may operate in one of a plurality of power states. By way of example, the Advanced Configuration and Power Interface (ACPI) specification defines a plurality of active states and a plurality of inactive, or sleep, states for electronic devices. Each state is associated with particular operating states for various components and thereby defines different power consumption states. Sleep states are numbered S1-S4 states. Higher numbers correlate to deeper sleep states and correspondingly lower power consumption. By way of example, thestate manager 162 may periodically check the sleep state from the ACPI register maintained by the basic input/output system (BIOS) of the electronic device. - If, at
operation 515, the electronic device is not in a low power (i.e., sleep) state then control passes back tooperation 510 and normal memory operations are allowed to continue. By contrast, if atoperation 515 the device is in a low power state then thestate manager 162 implements a memory state management routine which reduces power to at least a section of volatile memory in thememory 330. In some embodiments thestate manager 162 may require the electronic device to be in a specified sleep state (e.g., S3) or higher in order to invoke a memory state management routine. - At
operation 520 thestate manager 162 suspends refresh operations to sections of the volatile memory inmemory 330. By way of example, in some embodiments thestate manager 162 may scan one or more memory management tables associated with the volatile memory inmemory 330 and may identify one or more sections (e.g., cache lines, pages, or entire DRAMS) which are in an I state. Thestate manager 162 may then instruct thememory controller 322 to skip refresh operations on some or all of the memory sections identified as being in the I state. - At
operation 525 thestate manager 162 may relocate data from one or more sections of the volatile memory inmemory 330. By way of example, in some embodiments thestate manager 162 may scan one or more memory management tables associated with the volatile memory involatile memory 330 and may identify one or more sections (e.g., cache lines, pages, or entire DRAMS) which are in an M state. Thestate manager 162 may then instruct thememory controller 322 to relocate the data, e.g., by writing the data back to nonvolatile memory in volatile memory device(s) 340. In some examples this may be performed at the DRAM level so that all data from sections in an M state on a DRAM is written back to the nonvolatile memory in volatile memory device(s) 340. The state manager may then cut power (operation 530) to the DRAM chip, taking the DRAM chip offline. - When the memory system is operating in a state with reduced volatile memory capacity the
state manager 162 may implement a routine which adjusts the amount of active nonvolatile memory dynamically in response to changes in the cache miss rate to achieve a balance between performance requirements and power conservation. Thus, atoperation 535 thestate manager 162 monitors the cache miss rate of thememory 330. - If at
operation 540 the cache miss rate is less than a threshold value then thestate manager 162 will attempt to take more volatile memory offline to conserve power. Control thus passes tooperation 545 and thestate manager 162 may locate the least recently used (LRU) blocks of volatile memory inmemory 330. Atoperation 550 thestate manager 162 collects active pages of memory onto a subset of DIMMs in thevolatile memory 330. At operation 555 thestate manager 162 transitions the least recently used pages to an unused (U) state, and atoperation 560 thestate manager 162 powers down the DRAM chip. Control can then pass back tooperation 535 andstate manager 162 continues to monitor the cache miss rate. - If, at
operation 540 the cache miss rate is not less than a threshold value, then control passes tooperation 565. If, atoperation 565 there are no DRAMs powered off then control passes back tooperation 535 and thestate manager 162 continues to monitor the cache miss rate. By contrast, if atoperation 570 one or more DRAMs are powered off then control passes tooperation 570 and thestate manager 162 activates a portion of the volatile memory to increase the amount of volatile memory available inmemory 330. To activate the volatile memory thestate manager 162 may identify regions of memory to bring back online and may set the memory back into a self-refresh mode. The cache state for the memory may then be transitioned from the unused (U) state to the invalid (I) state. - Thus, operations 535-570 define a loop by which the
state manager 162 can dynamically adjust the amount of volatile memory available inmemory 330 to strike a balance between memory performance and power consumption when thememory 330 is operating in a reduced capacity. In some embodiments the state manager may utilize information from page tables formemory 330 to facilitate operations. For example, pages that are mapped as read-only, such as executable pages, can be placed in an area of contiguous memory such that thestate manager 162 does not have to look for modified lines (M state). Rather, it can transition directly from state X to state U with no write back operations required. This saves power since no volatile memory writes will be required. The operating system memory manager may also be arranged such that read-only pages are located contiguously. - As described above, in some embodiments the electronic device may be embodied as a computer system.
FIG. 6 illustrates a block diagram of acomputing system 600 in accordance with an embodiment of the invention. Thecomputing system 600 may include one or more central processing unit(s) (CPUs) 602 or processors that communicate via an interconnection network (or bus) 604. Theprocessors 602 may include a general purpose processor, a network processor (that processes data communicated over a computer network 603), or other types of a processor (including a reduced instruction set computer (RISC) processor or a complex instruction set computer (CISC)). Moreover, theprocessors 602 may have a single or multiple core design. Theprocessors 602 with a multiple core design may integrate different types of processor cores on the same integrated circuit (IC) die. Also, theprocessors 602 with a multiple core design may be implemented as symmetrical or asymmetrical multiprocessors. In an embodiment, one or more of theprocessors 602 may be the same or similar to theprocessors 102 ofFIG. 1 . For example, one or more of theprocessors 602 may implement the state manager discussed with reference toFIGS. 1-2 . Also, the operations discussed with reference toFIG. 5 may be performed by one or more components of thesystem 600. - A
chipset 606 may also communicate with theinterconnection network 604. Thechipset 606 may include a memory control hub (MCH) 608. TheMCH 608 may include amemory controller 610 that communicates with a memory 612 (which may be the same or similar to thememory 130 ofFIG. 1 ). The memory 412 may store data, including sequences of instructions, that may be executed by theCPU 602, or any other device included in thecomputing system 600. In one embodiment of the invention, thememory 612 may include one or more volatile storage (or memory) devices such as random access memory (RAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), static RAM (SRAM), or other types of storage devices. Additional devices may communicate via theinterconnection network 604, such as multiple CPUs and/or multiple system memories. - The
MCH 608 may also include agraphics interface 614 that communicates with adisplay device 616. In one embodiment of the invention, thegraphics interface 614 may communicate with thedisplay device 616 via an accelerated graphics port (AGP). In an embodiment of the invention, the display 616 (such as a flat panel display) may communicate with the graphics interface 614 through, for example, a signal converter that translates a digital representation of an image stored in a storage device such as video memory or system memory into display signals that are interpreted and displayed by thedisplay 616. The display signals produced by the display device may pass through various control devices before being interpreted by and subsequently displayed on thedisplay 616. - A
hub interface 618 may allow theMCH 608 and an input/output control hub (ICH) 620 to communicate. TheICH 620 may provide an interface to I/O device(s) that communicate with thecomputing system 600. TheICH 620 may communicate with abus 622 through a peripheral bridge (or controller) 624, such as a peripheral component interconnect (PCI) bridge, a universal serial bus (USB) controller, or other types of peripheral bridges or controllers. Thebridge 624 may provide a data path between theCPU 602 and peripheral devices. Other types of topologies may be utilized. Also, multiple buses may communicate with theICH 620, e.g., through multiple bridges or controllers. Moreover, other peripherals in communication with theICH 620 may include, in various embodiments of the invention, integrated drive electronics (IDE) or small computer system interface (SCSI) hard drive(s), USB port(s), a keyboard, a mouse, parallel port(s), serial port(s), floppy disk drive(s), digital output support (e.g., digital video interface (DVI)), a solid state drive (SSD) with SATA interface or PCIe interface, or other devices. - The
bus 622 may communicate with anaudio device 626, one or more disk drive(s) 628, and a network interface device 630 (which is in communication with the computer network 603). Other devices may communicate via thebus 622. Also, various components (such as the network interface device 630) may communicate with theMCH 608 in some embodiments of the invention. In addition, theprocessor 602 and one or more other components discussed herein may be combined to form a single chip (e.g., to provide a System on Chip (SOC)). Furthermore, thegraphics accelerator 616 may be included within theMCH 608 in other embodiments of the invention. - Furthermore, the
computing system 600 may include volatile and/or nonvolatile memory (or storage). For example, nonvolatile memory may include one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically EPROM (EEPROM), a disk drive (e.g., 628), a floppy disk, a compact disk ROM (CD-ROM), a digital versatile disk (DVD), flash memory, a magneto-optical disk, or other types of nonvolatile machine-readable media that are capable of storing electronic data (e.g., including instructions). -
FIG. 7 illustrates a block diagram of acomputing system 700, according to an embodiment of the invention. Thesystem 700 may include one or more processors 702-1 through 702-N (generally referred to herein as “processors 702” or “processor 702”). Theprocessors 702 may communicate via an interconnection network orbus 704. Each processor may include various components some of which are only discussed with reference to processor 702-1 for clarity. Accordingly, each of the remaining processors 702-2 through 702-N may include the same or similar components discussed with reference to the processor 702-1. - In an embodiment, the processor 702-1 may include one or more processor cores 706-1 through 706-M (referred to herein as “
cores 706” or more generally as “core 706”), a sharedcache 708, arouter 710, and/or a processor control logic orunit 720. Theprocessor cores 706 may be implemented on a single integrated circuit (IC) chip. Moreover, the chip may include one or more shared and/or private caches (such as cache 708), buses or interconnections (such as a bus or interconnection network 712), memory controllers, or other components. - In one embodiment, the
router 710 may be used to communicate between various components of the processor 702-1 and/orsystem 700. Moreover, the processor 702-1 may include more than onerouter 710. Furthermore, the multitude ofrouters 710 may be in communication to enable data routing between various components inside or outside of the processor 702-1. - The shared
cache 708 may store data (e.g., including instructions) that are utilized by one or more components of the processor 702-1, such as thecores 706. For example, the sharedcache 708 may locally cache data stored in amemory 714 for faster access by components of theprocessor 702. In an embodiment, thecache 708 may include a mid-level cache (such as a level 2 (L2), a level 3 (L3), a level 4 (L4), or other levels of cache), a last level cache (LLC), and/or combinations thereof. Moreover, various components of the processor 702-1 may communicate with the sharedcache 708 directly, through a bus (e.g., the bus 712), and/or a memory controller or hub. As shown inFIG. 7 , in some embodiments, one or more of thecores 706 may include a level 1 (L1) cache 716-1 (generally referred to herein as “L1 cache 716”). In one embodiment, thecontroller 720 may include logic to implement the operations described above with reference toFIG. 3 . -
FIG. 8 illustrates a block diagram of portions of aprocessor core 706 and other components of a computing system, according to an embodiment of the invention. In one embodiment, the arrows shown inFIG. 8 illustrate the flow direction of instructions through thecore 706. One or more processor cores (such as the processor core 706) may be implemented on a single integrated circuit chip (or die) such as discussed with reference toFIG. 7 . Moreover, the chip may include one or more shared and/or private caches (e.g.,cache 708 ofFIG. 7 ), interconnections (e.g.,interconnections 704 and/or 112 ofFIG. 7 ), control units, memory controllers, or other components. - As illustrated in
FIG. 8 , theprocessor core 706 may include a fetchunit 802 to fetch instructions (including instructions with conditional branches) for execution by thecore 706. The instructions may be fetched from any storage devices such as thememory 714. Thecore 706 may also include adecode unit 804 to decode the fetched instruction. For instance, thedecode unit 804 may decode the fetched instruction into a plurality of uops (micro-operations). - Additionally, the
core 706 may include aschedule unit 806. Theschedule unit 806 may perform various operations associated with storing decoded instructions (e.g., received from the decode unit 804) until the instructions are ready for dispatch, e.g., until all source values of a decoded instruction become available. In one embodiment, theschedule unit 806 may schedule and/or issue (or dispatch) decoded instructions to anexecution unit 808 for execution. Theexecution unit 808 may execute the dispatched instructions after they are decoded (e.g., by the decode unit 804) and dispatched (e.g., by the schedule unit 806). In an embodiment, theexecution unit 808 may include more than one execution unit. Theexecution unit 808 may also perform various arithmetic operations such as addition, subtraction, multiplication, and/or division, and may include one or more an arithmetic logic units (ALUs). In an embodiment, a co-processor (not shown) may perform various arithmetic operations in conjunction with theexecution unit 808. - Further, the
execution unit 808 may execute instructions out-of-order. Hence, theprocessor core 706 may be an out-of-order processor core in one embodiment. Thecore 706 may also include aretirement unit 810. Theretirement unit 810 may retire executed instructions after they are committed. In an embodiment, retirement of the executed instructions may result in processor state being committed from the execution of the instructions, physical registers used by the instructions being de-allocated, etc. - The
core 706 may also include abus unit 714 to enable communication between components of theprocessor core 706 and other components (such as the components discussed with reference toFIG. 8 ) via one or more buses (e.g.,buses 804 and/or 812). Thecore 706 may also include one ormore registers 816 to store data accessed by various components of the core 706 (such as values related to power consumption state settings). - Furthermore, even though
FIG. 7 illustrates thecontrol unit 720 to be coupled to thecore 706 via interconnect 812, in various embodiments thecontrol unit 720 may be located elsewhere such as inside thecore 706, coupled to the core viabus 704, etc. - In some embodiments, one or more of the components discussed herein can be embodied as a System On Chip (SOC) device.
FIG. 9 illustrates a block diagram of an SOC package in accordance with an embodiment. As illustrated inFIG. 9 ,SOC 902 includes one or more Central Processing Unit (CPU)cores 920, one or more Graphics Processor Unit (GPU)cores 930, an Input/Output (I/O)interface 940, and amemory controller 942. Various components of theSOC package 902 may be coupled to an interconnect or bus such as discussed herein with reference to the other figures. Also, theSOC package 902 may include more or less components, such as those discussed herein with reference to the other figures. Further, each component of theSOC package 902 may include one or more other components, e.g., as discussed with reference to the other figures herein. In one embodiment, SOC package 902 (and its components) is provided on one or more Integrated Circuit (IC) die, e.g., which are packaged into a single semiconductor device. - As illustrated in
FIG. 9 ,SOC package 902 is coupled to a memory 960 (which may be similar to or the same as memory discussed herein with reference to the other figures) via thememory controller 942. In an embodiment, the memory 960 (or a portion of it) can be integrated on theSOC package 902. - The I/
O interface 940 may be coupled to one or more I/O devices 970, e.g., via an interconnect and/or bus such as discussed herein with reference to other figures. I/O device(s) 970 may include one or more of a keyboard, a mouse, a touchpad, a display, an image/video capture device (such as a camera or camcorder/video recorder), a touch screen, a speaker, or the like. - The following examples pertain to further embodiments.
- Example 1 is a computer program product comprising logic instructions stored in a non-transitory computer readable medium which, when executed by a controller, configure the controller to perform operations to manage a memory state of a volatile memory, comprising determining whether an electronic device comprising a volatile memory and a nonvolatile memory is operating in a low power state, and in response to a determination that the electronic device is operating in a low power state, implementing a memory state management routine which reduces power to at least a section of the volatile memory in the memory system.
- The computer program product may further comprising logic instructions stored in the non-transitory computer readable medium which, when executed by the controller, configure the controller to perform operations comprising identifying one or more sections of volatile memory which are in an invalid state and suspending refresh operations to the one or more sections of volatile memory in an invalid state.
- The computer program product may further comprise logic instructions stored in the non-transitory computer readable medium which, when executed by the controller, configure the controller to perform operations comprising identifying one or more sections of a volatile memory module which are in a modified state, relocating data from the one or more sections of a volatile memory module which are in a modified state, and powering down the volatile memory module.
- The computer program product may further comprise logic instructions stored in the non-transitory computer readable medium which, when executed by the controller, configure the controller to perform operations comprising determining whether a cache miss rate is below a threshold and in response to a determination that the cache miss rate is below the threshold identifying one or more least recently used sections of a volatile memory module which are in a modified state relocating data from the one or more least recently used sections of the volatile memory module which are in a modified state and powering down the volatile memory module.
- The computer program product may further comprise logic instructions stored in the non-transitory computer readable medium which, when executed by the controller, configure the controller to perform operations comprising determining whether a cache miss rate is below a threshold and in response to a determination that the cache miss rate is not below the threshold activating at least one inactive memory module.
- The sections of volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
- In example 2, a controller comprises logic to determine whether an electronic device comprising a volatile memory and a nonvolatile memory is operating in a low power state and in response to a determination that the electronic device is operating in a low power state, implement a memory state management routine which reduces power to at least a section of the volatile memory in the memory system.
- The controller may comprise logic to identify one or more sections of volatile memory which are in an invalid state and suspend refresh operations to the one or more sections of volatile memory in an invalid state.
- The controller may comprise logic to identify one or more sections of a volatile memory module which are in a modified state relocate data from the one or more sections of a volatile memory module which are in a modified state, and power down the volatile memory module.
- The controller may comprise logic to determine whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is below the threshold, to identify one or more least recently used sections of a volatile memory module which are in a modified state, relocate data from the one or more least recently used sections of the volatile memory module which are in a modified state, and power down the volatile memory module.
- The controller may comprise logic to determine whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is not below the threshold, to activate at least one inactive memory module.
- The sections of volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
- In example 3, an electronic device, comprises a memory system and a controller comprising logic to determine whether an electronic device is operating in a low power state, and in response to a determination that the electronic device is operating in a low power state, implement a memory state management routine which reduces power to at least a section of volatile memory in the memory system.
- The electronic device may comprise logic to identify one or more sections of volatile memory which are in an invalid state, and suspend refresh operations to the one or more sections of volatile memory in an invalid state.
- The electronic device may comprise logic to identify one or more sections of a volatile memory module which are in a modified state, relocate data from the one or more sections of a volatile memory module which are in a modified state, and power down the volatile memory module.
- The electronic device may comprise logic to determine whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is below the threshold. to identify one or more least recently used sections of a volatile memory module which are in a modified state, relocate data from the one or more least recently used sections of the volatile memory module which are in a modified state, and power down the volatile memory module.
- The electronic device may comprise logic to determine whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is not below the threshold, to activate at least one inactive memory module.
- The sections of volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
- In example 4, a method to manage a memory system coupled to an electronic device, wherein the memory system comprises a volatile memory and a nonvolatile memory, comprises determining, in a controller, whether an electronic device is operating in a low power state, and in response to a determination that the electronic device is operating in a low power state, implementing a memory state management routine which reduces power to at least a section of volatile memory in the memory system.
- The method may further comprise identifying one or more sections of volatile memory which are in an invalid state, and suspending refresh operations to the one or more sections of volatile memory in an invalid state.
- The method may further comprise identifying one or more sections of a volatile memory module which are in a modified state, relocating data from the one or more sections of a volatile memory module which are in a modified state, and powering down the volatile memory module.
- The method may further comprise determining whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is below the threshold, identifying one or more least recently used sections of a volatile memory module which are in a modified state, relocating data from the one or more least recently used sections of the volatile memory module which are in a modified state, and powering down the volatile memory module.
- The method may further comprise determining whether a cache miss rate is below a threshold, and in response to a determination that the cache miss rate is not below the threshold, activating at least one inactive memory module.
- The sections of volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
- The terms “logic instructions” as referred to herein relates to expressions which may be understood by one or more machines for performing one or more logical operations. For example, logic instructions may comprise instructions which are interpretable by a processor compiler for executing one or more operations on one or more data objects. However, this is merely an example of machine-readable instructions and embodiments are not limited in this respect.
- The terms “computer readable medium” as referred to herein relates to media capable of maintaining expressions which are perceivable by one or more machines. For example, a computer readable medium may comprise one or more storage devices for storing computer readable instructions or data. Such storage devices may comprise storage media such as, for example, optical, magnetic or semiconductor storage media. However, this is merely an example of a computer readable medium and embodiments are not limited in this respect.
- The term “logic” as referred to herein relates to structure for performing one or more logical operations. For example, logic may comprise circuitry which provides one or more output signals based upon one or more input signals. Such circuitry may comprise a finite state machine which receives a digital input and provides a digital output, or circuitry which provides one or more analog output signals in response to one or more analog input signals. Such circuitry may be provided in an application specific integrated circuit (ASIC) or field programmable gate array (FPGA). Also, logic may comprise machine-readable instructions stored in a memory in combination with processing circuitry to execute such machine-readable instructions. However, these are merely examples of structures which may provide logic and embodiments are not limited in this respect.
- Some of the methods described herein may be embodied as logic instructions on a computer-readable medium. When executed on a processor, the logic instructions cause a processor to be programmed as a special-purpose machine that implements the described methods. The processor, when configured by the logic instructions to execute the methods described herein, constitutes structure for performing the described methods. Alternatively, the methods described herein may be reduced to logic on, e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC) or the like.
- In the description and claims, the terms coupled and connected, along with their derivatives, may be used. In particular embodiments, connected may be used to indicate that two or more elements are in direct physical or electrical contact with each other. Coupled may mean that two or more elements are in direct physical or electrical contact. However, coupled may also mean that two or more elements may not be in direct contact with each other, but yet may still cooperate or interact with each other.
- Reference in the specification to “one embodiment” or “some embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least an implementation. The appearances of the phrase “in one embodiment” in various places in the specification may or may not be all referring to the same embodiment.
- Although embodiments have been described in language specific to structural features and/or methodological acts, it is to be understood that claimed subject matter may not be limited to the specific features or acts described. Rather, the specific features and acts are disclosed as sample forms of implementing the claimed subject matter.
Claims (26)
1. (canceled)
2. A controller comprising logic to:
determine whether an electronic device comprising a volatile memory and a nonvolatile memory is operating in a low power state; and
in response to a determination that the electronic device is operating in the low power state, determine whether a cache miss rate is below a threshold; and
in response to a determination that the cache miss rate is below the threshold:
identify one or more sections of the volatile memory that are in a modified state;
relocate data only from the one or more sections of the volatile memory that are in the modified state; and
power down the one or more sections of the volatile memory.
3. The controller of claim 2 , wherein relocate data only from the one or more sections of the volatile memory further comprises relocate data only from the one or sections of the volatile memory to a section of the volatile memory.
4. The controller of claim 2 , wherein relocate data only from the one or more sections of the volatile memory further comprises relocate data only from the one or more sections of the volatile memory to the nonvolatile memory.
5. The controller of claim 2 , wherein the volatile memory is dynamic random access memory (DRAM).
6. The controller of claim 2 , wherein the volatile memory is three dimensional (3D) cross point memory.
7. The controller of claim 2 , further comprising logic to:
identify one or more sections of the volatile memory that are in an invalid state; and
suspend refresh operations to the one or more sections of the volatile memory that are in the invalid state.
8. The controller of claim 2 , wherein the one or more sections of the volatile memory that are in the modified state further comprises one or more least recently used sections of the volatile memory.
9. The controller of claim 2 , further comprising logic to:
in response to a determination that the cache miss rate is not below the threshold, activate at least one inactive section of the volatile memory.
10. The controller of claim 2 , wherein the sections of the volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
11. The controller of claim 2 , further comprising logic to arrange the volatile memory such that read-only pages are located contiguously.
12. An electronic device, comprising:
a volatile memory;
a nonvolatile memory; and
a controller comprising logic to:
determine whether an electronic device comprising a volatile memory and a nonvolatile memory is operating in a low power state; and
in response to a determination that the electronic device is operating in the low power state, determine whether a cache miss rate is below a threshold; and
in response to a determination that the cache miss rate is below the threshold:
identify one or more sections of the volatile memory that are in a modified state;
relocate data only from the one or more sections of the volatile memory that are in the modified state; and
power down the one or more sections of the volatile memory.
13. The device of claim 12 , wherein relocate data only from the one or more sections of the volatile memory further comprises relocate data only from the one or sections of the volatile memory to a section of the volatile memory.
14. The device of claim 12 , wherein relocate data only from the one or more sections of the volatile memory further comprises relocate data only from the one or more sections of the volatile memory to the nonvolatile memory.
15. The device of claim 12 , wherein the volatile memory is dynamic random access memory (DRAM).
16. The device of claim 12 , wherein the volatile memory is three dimensional (3D) cross point memory.
17. The device of claim 12 , wherein the sections of the volatile memory correspond to at least one of a cache line, a memory chip, a memory rank, or a memory bank.
18. The electronic device of claim 12 , wherein the controller comprises logic to arrange the volatile memory such that read-only pages are located contiguously.
19. A method to manage a memory system coupled to an electronic device, comprising:
determining, in a controller, whether an electronic device comprising a volatile memory and a nonvolatile memory is operating in a low power state; and
in response to determining that the electronic device is operating in the low power state, determining whether a cache miss rate is below a threshold; and
in response to determining that the cache miss rate is below the threshold:
identifying one or more sections of the volatile memory that are in a modified state;
relocating data only from the one or more sections of the volatile memory that are in the modified state; and
powering down the one or more sections of the volatile memory.
20. The method of claim 19 , wherein relocating data only from the one or more sections of the volatile memory further comprises relocating data only from the one or sections of the volatile memory to a section of the volatile memory.
21. The method of claim 19 , wherein relocating data only from the one or more sections of the volatile memory further comprises relocating data only from the one or more sections of the volatile memory to the nonvolatile memory.
22. The method of claim 19 , further comprising arranging the volatile memory such that read-only pages are located contiguously.
23. A computer program product comprising logic instructions stored in a non-transitory computer readable medium that, when executed by a controller, configure the controller to perform operations to manage a memory state of a volatile memory, comprising:
determining whether an electronic device comprising a volatile memory and a nonvolatile memory is operating in a low power state; and
in response to determining that the electronic device is operating in the low power state, determining whether a cache miss rate is below a threshold; and
in response to determining that the cache miss rate is below the threshold:
identifying one or more sections of the volatile memory that are in a modified state;
relocating data only from the one or more sections of the volatile memory that are in the modified state; and
powering down the one or more sections of the volatile memory.
24. The computer program product of claim 23 , wherein relocating data only from the one or more sections of the volatile memory further comprises relocating data only from the one or sections of the volatile memory to a section of the volatile memory.
25. The computer program product of claim 23 , wherein relocating data only from the one or more sections of the volatile memory further comprises relocating data only from the one or more sections of the volatile memory to the nonvolatile memory.
26. The computer program product of claim 23 , further comprising logic to arrange the volatile memory such that read-only pages are located contiguously.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/276,414 US20170228168A1 (en) | 2013-03-12 | 2016-09-26 | Memory state management for electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/795,439 US9454214B2 (en) | 2013-03-12 | 2013-03-12 | Memory state management for electronic device |
US15/276,414 US20170228168A1 (en) | 2013-03-12 | 2016-09-26 | Memory state management for electronic device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/795,439 Continuation US9454214B2 (en) | 2013-03-12 | 2013-03-12 | Memory state management for electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
US20170228168A1 true US20170228168A1 (en) | 2017-08-10 |
Family
ID=51534136
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/795,439 Expired - Fee Related US9454214B2 (en) | 2013-03-12 | 2013-03-12 | Memory state management for electronic device |
US15/276,414 Abandoned US20170228168A1 (en) | 2013-03-12 | 2016-09-26 | Memory state management for electronic device |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/795,439 Expired - Fee Related US9454214B2 (en) | 2013-03-12 | 2013-03-12 | Memory state management for electronic device |
Country Status (1)
Country | Link |
---|---|
US (2) | US9454214B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11113188B2 (en) | 2019-08-21 | 2021-09-07 | Microsoft Technology Licensing, Llc | Data preservation using memory aperture flush order |
US11662916B2 (en) | 2021-04-15 | 2023-05-30 | EMC IP Holding Company LLC | Method, electronic device and computer program product for managing a storage system |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9454214B2 (en) * | 2013-03-12 | 2016-09-27 | Intel Corporation | Memory state management for electronic device |
US20150363116A1 (en) * | 2014-06-12 | 2015-12-17 | Advanced Micro Devices, Inc. | Memory controller power management based on latency |
KR20180094386A (en) | 2017-02-15 | 2018-08-23 | 삼성전자주식회사 | Memory system and operation method thereof |
EP4033365A1 (en) | 2021-01-25 | 2022-07-27 | Nordic Semiconductor ASA | Memory retention for radio device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8020024B2 (en) * | 2005-12-07 | 2011-09-13 | Chimei Innolux Corporation | Method for preventing erroneous resetting of electronic device due to electrostatic discharge |
US20110296095A1 (en) * | 2010-05-25 | 2011-12-01 | Mediatek Inc. | Data movement engine and memory control methods thereof |
US9454214B2 (en) * | 2013-03-12 | 2016-09-27 | Intel Corporation | Memory state management for electronic device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5524248A (en) * | 1993-07-06 | 1996-06-04 | Dell Usa, L.P. | Random access memory power management system |
US5860106A (en) * | 1995-07-13 | 1999-01-12 | Intel Corporation | Method and apparatus for dynamically adjusting power/performance characteristics of a memory subsystem |
US5928365A (en) * | 1995-11-30 | 1999-07-27 | Kabushiki Kaisha Toshiba | Computer system using software controlled power management method with respect to the main memory according to a program's main memory utilization states |
US6546472B2 (en) * | 2000-12-29 | 2003-04-08 | Hewlett-Packard Development Company, L.P. | Fast suspend to disk |
US6766420B2 (en) * | 2001-09-27 | 2004-07-20 | International Business Machines Corporation | Selectively powering portions of system memory in a network server to conserve energy |
US20070291571A1 (en) * | 2006-06-08 | 2007-12-20 | Intel Corporation | Increasing the battery life of a mobile computing system in a reduced power state through memory compression |
WO2013043503A1 (en) * | 2011-09-19 | 2013-03-28 | Marvell World Trade Ltd. | Systems and methods for monitoring and managing memory blocks to improve power savings |
KR20150098649A (en) * | 2012-12-22 | 2015-08-28 | 퀄컴 인코포레이티드 | Reducing power consumption of volatile memory via use of non-volatile memory |
-
2013
- 2013-03-12 US US13/795,439 patent/US9454214B2/en not_active Expired - Fee Related
-
2016
- 2016-09-26 US US15/276,414 patent/US20170228168A1/en not_active Abandoned
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8020024B2 (en) * | 2005-12-07 | 2011-09-13 | Chimei Innolux Corporation | Method for preventing erroneous resetting of electronic device due to electrostatic discharge |
US20110296095A1 (en) * | 2010-05-25 | 2011-12-01 | Mediatek Inc. | Data movement engine and memory control methods thereof |
US9454214B2 (en) * | 2013-03-12 | 2016-09-27 | Intel Corporation | Memory state management for electronic device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11113188B2 (en) | 2019-08-21 | 2021-09-07 | Microsoft Technology Licensing, Llc | Data preservation using memory aperture flush order |
US11662916B2 (en) | 2021-04-15 | 2023-05-30 | EMC IP Holding Company LLC | Method, electronic device and computer program product for managing a storage system |
Also Published As
Publication number | Publication date |
---|---|
US9454214B2 (en) | 2016-09-27 |
US20140281637A1 (en) | 2014-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3014623B1 (en) | Hybrid memory device | |
US20170228168A1 (en) | Memory state management for electronic device | |
US11467740B2 (en) | Method, apparatus, and system for energy efficiency and energy conservation including autonomous hardware-based deep power down in devices | |
US8959369B2 (en) | Hardware automatic performance state transitions in system on processor sleep and wake events | |
CN108874457B (en) | Method, device and system for continuous automatic adjustment of code area | |
US8984311B2 (en) | Method, apparatus, and system for energy efficiency and energy conservation including dynamic C0-state cache resizing | |
CN103270488B (en) | For the method and apparatus improving the time of restarting of platform | |
US7757039B2 (en) | DRAM selective self refresh | |
US20140184163A1 (en) | Battery charge management for electronic device | |
US7529955B2 (en) | Dynamic bus parking | |
US20130166866A1 (en) | Systems and methods of performing a data save operation | |
US20150085589A1 (en) | Data movement in memory devices | |
JP6276470B2 (en) | System and method for reducing standby power of volatile memory in portable computing devices | |
US9317421B2 (en) | Memory management | |
CN106796532B (en) | Virtual sensor hub for an electronic device | |
US10203959B1 (en) | Subroutine power optimiztion | |
US20180188797A1 (en) | Link power management scheme based on link's prior history | |
US9740610B2 (en) | Polarity based data transfer function for volatile memory | |
US9575551B2 (en) | GNSS services on low power hub | |
US8370669B2 (en) | Memory device having a memory sleep logic and methods therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: INTEL CORPORATION, CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BAHNSEN, ROBERT B.;GOVINDARAJU, KANIVENAHALLI;SWANSON, ROBERT C.;AND OTHERS;SIGNING DATES FROM 20130315 TO 20130409;REEL/FRAME:039859/0791 |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: FINAL REJECTION MAILED |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |