System Level Management of Hybrid Memory Systems
Author:
Abstract:
In electronics and computer science, the term ‘memory’ generally refers to devices that are used to store information that we use in various appliances ranging from our PCs to all hand-held devices, smart appliances etc. Primary/main memory is used for storage systems that function at a highspeed (i.e. RAM). The primary memory is often associated with addressable semiconductor memory, i.e. integrated circuits consisting of silicon-based transistors, used for example as primary memory but also other purposes in computers and other digital electronic devices. The secondary/auxiliary memory, in comparison provides program and data storage that is slower to access but offers larger capacity. Examples include external hard drives, portable flash drives, CDs, and DVDs. These devices and media must be either plugged in or inserted into a computer in order to be accessed by the system. Since secondary storage technology is not always connected to the computer, it is commonly used for backing up data. The term storage is often used to describe secondary memory. Secondary memory stores a large amount of data at lesser cost per byte than primary memory; this makes secondary storage about two orders of magnitude less expensive than primary storage. There are two main types of semiconductor memory: volatile and nonvolatile. Examples of non-volatile memory are ‘Flash’ memory (sometimes used as secondary, sometimes primary computer memory) and ROM/PROM/EPROM/EEPROM memory (used for firmware such as boot programs). Examples of volatile memory are primary memory (typically dynamic RAM, DRAM), and fast CPU cache memory (typically static RAM, SRAM, which is fast but energy-consuming and offer lower memory capacity per area unit than DRAM). Non-volatile memory technologies in Si-based electronics date back to the 1990s. Flash memory is widely used in consumer electronic products such as cell phones and music players and NAND Flash-based solid-state disks (SSDs) are increasingly displacing hard disk drives as the primary storage device in laptops, desktops, and even data centers. The integration limit of Flash memories is approaching, and many new types of memory to replace conventional Flash memories have been proposed. The rapid increase of leakage currents in Silicon CMOS transistors with scaling poses a big challenge for the integration of SRAM memories. There is also the case of susceptibility to read/write failure with low power schemes. As a result of this, over the past decade, there has been an extensive pooling of time, resources and effort towards developing emerging memory technologies like Resistive RAM (ReRAM/RRAM), STT-MRAM, Domain Wall Memory and Phase Change Memory (PRAM). Emerging non-volatile memory technologies promise new memories to store more data at less cost than the 'expensive to build' silicon chips used by popular consumer gadgets including digital cameras, cell phones and portable music players. These new memory technologies combine the speed of static random-access memory (SRAM), the density of dynamic random-access memory (DRAM), and the non-volatility of Flash memory and so become very attractive as another possibility for future memory hierarchies. The research and information on these Non-Volatile Memory (NVM) technologies has matured over the last decade. These NVMs are now being explored thoroughly nowadays as viable replacements for conventional SRAM based memories even for the higher levels of the memory hierarchy. Many other new classes of emerging memory technologies such as transparent and plastic, three-dimensional (3-D), and quantum dot memory technologies have also gained tremendous popularity in recent years. However, it must be noted that the reliability/endurance issues and the read/write latencies required for the higher level memories has defied the use of such NVM options for performance-critical applications. Thus, a direct drop-in replacement of SRAM by NVMs is not possible. Besides, NVM designs are also improving rapidly and it is crucial to take into account the memory cell/array characteristics when designing and proposing architectural modifications. The aim of this PhD is to explore the advantages of using hybrid on-chip memory systems, composed of SRAM and NVM modules, in the context of high performance and low power embedded systems. Both, system architecture design and application to memory mapping are to be addressed in the proposed PhD work, focusing the search in the multimedia, wireless and the Internet of Things (Iot) application domains. We look at two different platforms: Ultra low power and General Purpose. Both the instruction memory and data memory hierarchy are explored for potential NVM inclusion. We propose novel crosslayer design methods for feasible NVM based memories. Our designs address the adverse effects due to the NVM latency and reliability/endurance issues by means of micro-architectural modifications and aims to remove the performance penalty. We also tinker with profiling the applications and optimizing their code to achieve our goal. The area and energy costs are explored when considering our target, design methodology and the specific code optimizations. According to our simulations, the appropriate tuning of selective architectural parameters of the memory in our proposal and suitable optimizations can reduce the performance penalty introduced by the NVM significantly. Thus, it is worthwhile to pursue explorations on the replacement of SRAM by NVMs at the highest levels of the memory hierarchy. The designing is kept more or less generic in order to facilitate re-use and exploration of other NVMs in the future. Overall, we comprehensively evaluate the cost, ability and feasibility of exploring NVM based high level memory systems that can effectively compete with more traditional/SRAM based counterparts. Finally, we present a case study wherein we develop a complete framework (from the technology all the way up to the system level) to analyse the effectiveness of NVM based higher level memories. The study clearly indicates that only through close co-optimization across all the different layers of abstraction can a realistic picture be obtained on emerging NVM technologies. This PhD thesis aims to investigate the feasibility of this rapidly developing new class of memory technologies and scaling of scientific procedures from a system and micro-architecture level point of view.