CN101989183A - Method for realizing energy-saving storing of hybrid main storage - Google Patents
Method for realizing energy-saving storing of hybrid main storage Download PDFInfo
- Publication number
- CN101989183A CN101989183A CN 201010509810 CN201010509810A CN101989183A CN 101989183 A CN101989183 A CN 101989183A CN 201010509810 CN201010509810 CN 201010509810 CN 201010509810 A CN201010509810 A CN 201010509810A CN 101989183 A CN101989183 A CN 101989183A
- Authority
- CN
- China
- Prior art keywords
- data
- tag
- phase change
- change memory
- memory
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 230000008859 change Effects 0.000 claims abstract description 58
- 230000008569 process Effects 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 description 12
- 238000005265 energy consumption Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 4
- 230000006872 improvement Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 150000004770 chalcogenides Chemical class 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000000116 mitigating effect Effects 0.000 description 1
- 230000002250 progressing effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000011232 storage material Substances 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
本发明公开了一种混合主存储器实现节能存储的方法,它包括如下步骤:构造以相变存储器为主、动态随机存储器为缓冲存储器的混合主存储器,并设计适应该主存储器结构的读写策略,并根据该读写策略对磁盘和相变存储器中的数据进行读写。本发明是对原来的主存储器结构做出改进,充分利用相变存储器大容量、低功耗的优点以及动态随机存储器低时延的特点,使得混合主存储器在不增加功耗和时延的前提下获得更大的容量,从而减少对磁盘的访问次数,实现存储方面的节能。
The invention discloses a method for realizing energy-saving storage of a mixed main memory, which comprises the following steps: constructing a mixed main memory with a phase change memory as the main memory and a dynamic random access memory as a buffer memory, and designing a read-write strategy adapted to the structure of the main memory , and read and write data in the disk and phase change memory according to the read and write strategy. The present invention improves the original main memory structure, fully utilizes the advantages of large capacity and low power consumption of the phase change memory and the low time delay of the dynamic random access memory, so that the hybrid main memory does not increase power consumption and time delay. It can achieve greater capacity under the environment, thereby reducing the number of accesses to the disk and realizing energy saving in storage.
Description
所属技术领域Technical field
本发明涉及嵌入式系统存储节能领域,尤其涉及一种改进主存储器结构和读写策略实现节能存储的方法。The invention relates to the field of storage and energy saving of embedded systems, in particular to a method for improving the main memory structure and read-write strategy to realize energy-saving storage.
背景技术Background technique
存储器是计算机系统中一个非常重要的组成部分,是用来存储程序和数据的部件。主存储器是处理器能够直接寻址的存储空间,所有的程序和数据必须装载到主存储器中才能运行。因此,主存储器的性能直接影响到整个计算机系统的运行速度。随着处理器的速度不断提升,主存储器的读写速度远远跟不上处理器的速度,逐渐成为提高系统性能的瓶颈。因此,如何在不增加费用和能耗的前提下,最大限度地提高主存储器的容量和读写速度一直是研究的热点。Memory is a very important part of a computer system and is used to store programs and data. The main memory is the storage space that the processor can directly address, and all programs and data must be loaded into the main memory to run. Therefore, the performance of the main memory directly affects the operating speed of the entire computer system. As the speed of the processor continues to increase, the read and write speed of the main memory is far behind the speed of the processor, which has gradually become a bottleneck for improving system performance. Therefore, how to maximize the capacity and read/write speed of the main memory without increasing the cost and energy consumption has always been a research hotspot.
cache技术的提出就是为了解决主存储器读写速度慢的问题。由于处理器的速度比主存储器的访问速度快很多,处理器经常会等待着主存储器读写完成后才继续执行。这样使得处理器的性能没有充分得到利用。为了缓解处理器与主存储器的速度差距,cache技术就应运而生。cache是介于处理器与主存储器之间的一种特殊的存储器子系统,其访问速度要比主存储器快。cache中存储了处理器频繁访问的主存储器中的数据及这些数据的存储地址。当处理器需要访问主存储器中的某地址时,cache便检查是否存储有该地址。如果存有该地址,就将该地址对应的数据返回给处理器;如果没有存储该地址,就进行通常情况下的主存储器访问。The cache technology is proposed to solve the problem of slow read and write speed of the main memory. Because the speed of the processor is much faster than the access speed of the main memory, the processor often waits for the read and write of the main memory to complete before continuing to execute. This makes the performance of the processor not fully utilized. In order to alleviate the speed gap between the processor and the main memory, cache technology came into being. Cache is a special memory subsystem between the processor and the main memory, and its access speed is faster than the main memory. The data in the main memory frequently accessed by the processor and the storage addresses of these data are stored in the cache. When the processor needs to access an address in main memory, the cache checks to see if the address is stored. If the address is stored, the data corresponding to the address is returned to the processor; if the address is not stored, the usual main memory access is performed.
虚拟内存就是解决主存储器容量不足的一种技术。这种技术将主存储器和磁盘上的临时空间结合起来,使应用程序认为它拥有一个空间非常大的连续完整的内存。虚拟内存其实是在主存储器剩余空间不足时,将部分数据从主存储器移至硬盘中,以释放部分空间给程序继续运行。Virtual memory is a technology to solve the shortage of main memory capacity. This technique combines main memory and temporary space on disk to make the application think that it has a very large contiguous full memory. Virtual memory is actually moving part of the data from the main memory to the hard disk when the remaining space of the main memory is insufficient, so as to free up part of the space for the program to continue running.
虽然这些技术的提出在一定程度上缓解了处理器与主存储器在速度上的矛盾,但是这些技术的缓解能力始终是有限的。例如:为了适应处理器速度的提高,在一级cache的基础上提出了二级cache甚至三级cache。但是三级cache的性能影响就不太明显了,只是有利于服务器或游戏等大型程序,对大多数家庭计算机作用不大。虚拟内存的容量也不是无限的,一般为物理内存的1.5-2倍,同时也不能超过32位操作系统的内存寻址范围4GB。可见,这些技术仍然没有改变主存储器的读写速度是制约整个计算机系统性能提升的瓶颈的局面。由于主存储器访问速度的提升远赶不上处理器速度的提升,它们之间在速度上的矛盾迟早都会无法避免地凸现出来。Although the proposal of these technologies alleviates the speed conflict between the processor and the main memory to a certain extent, the mitigation ability of these technologies is always limited. For example: In order to adapt to the improvement of processor speed, a second-level cache or even a third-level cache is proposed on the basis of the first-level cache. However, the performance impact of the third-level cache is not so obvious. It is only beneficial to large-scale programs such as servers or games, and has little effect on most home computers. The capacity of virtual memory is not unlimited, it is generally 1.5-2 times of physical memory, and it cannot exceed the memory addressing range of 32-bit operating system 4GB. It can be seen that these technologies still have not changed the situation that the read/write speed of the main memory is the bottleneck restricting the performance improvement of the entire computer system. Since the improvement of main memory access speed is far behind the improvement of processor speed, the contradiction in speed between them will inevitably be highlighted sooner or later.
多核时代的到来,对主存储器提出了更加严峻的考验。现在主流的基于动态随机存储器DRAM的主存储器,已经达到了它的极限。如果为了适应处理器的高速度而提高主存储器的容量,就必须付出更高的费用和能耗,这样会使性价比大大降低。然而,随着核的数量越来越多,目前的主存储器将会面临越来越多的挑战。因此,许多专家学者都致力于研究更加良好的存储材料,以解决目前存储技术所处的困境。The advent of the multi-core era has put forward a more severe test for the main memory. The current mainstream DRAM-based main memory has reached its limit. If the capacity of the main memory is increased in order to adapt to the high speed of the processor, higher costs and energy consumption must be paid, which will greatly reduce the cost performance. However, as the number of cores increases, the current main memory will face more and more challenges. Therefore, many experts and scholars are committed to researching better storage materials to solve the current dilemma of storage technology.
Flash存储器是一种电可擦除可编程只读存储器,具有固态性、体积小、重量轻、抗震动、低能耗等特点。它是一种不易挥发的存储器,即在没有供电的情况下依然能够长久地保存数据,其存储特性相当于磁盘。它在价格、访问延迟、传输带宽、存储密度和能耗方面介于RAM和磁盘之间。由于Flash存储器在访问延迟上比主存储器相差甚远,因此很难将其应用到主存储器中。目前,Flash存储器主要应用于移动存储设备,例如:U盘、MP3、数码相机等。随着容量越来越大和价格越来越低,Flash存储器在不久的将来可能取代磁盘而应用到计算机系统中。Flash memory is an electrically erasable programmable read-only memory, which has the characteristics of solid state, small size, light weight, anti-vibration, and low energy consumption. It is a non-volatile memory, that is, it can still store data for a long time without power supply, and its storage characteristics are equivalent to magnetic disks. It is between RAM and disk in terms of price, access latency, transfer bandwidth, storage density, and power consumption. Because the Flash memory is much different than the main memory in terms of access delay, it is difficult to apply it to the main memory. At present, Flash memory is mainly used in mobile storage devices, such as U disk, MP3, digital camera, etc. With increasing capacity and lower prices, Flash memory may replace disks and be used in computer systems in the near future.
相变存储器PCM是基于Ovshinsky在20世纪60年代末提出的奥弗辛斯基电子效应的存储器,利用硫系化合物材料在电脉冲作用下快速相变的特性。由于工艺技术的限制,这项半导体存储技术一直都进展非常缓慢。直到上世纪末期,随着半导体工业界的制造技术达到纳米量级,这项技术才体现出其极大的优越性,从而得以飞速发展。相变存储器具有高可扩展性、高访问速度、高存储密度和低能耗等特性。它在访问速度上仅仅比动态随机存储器稍微慢一点。根据相变存储器的这些特性,如果能够很好地将其应用到主存储器中,必定会有效地解决当前主存储器所面临的低容量、高能耗等问题,从而极大地提升计算机系统的整体性能。由于其访问速度相对于动态随机存储器DRAM来说比较低,如果简单地把它作为主存储器,反而会降低计算机系统的性能。如果能够把它和动态随机存储器结合起来组成主存储器,达到取长补短、优势互补的效果,应该对提升主存储器性能有所帮助。Phase-change memory PCM is a memory based on the Ovshinsky electronic effect proposed by Ovshinsky in the late 1960s, using the characteristics of fast phase transition of chalcogenide materials under the action of electric pulses. Due to the limitations of process technology, this semiconductor memory technology has been progressing very slowly. It was not until the end of the last century, when the manufacturing technology of the semiconductor industry reached the nanometer level, that this technology showed its great superiority and developed rapidly. Phase change memory has the characteristics of high scalability, high access speed, high storage density and low energy consumption. It is only slightly slower than DRAM in access speed. According to these characteristics of phase change memory, if it can be well applied to the main memory, it will effectively solve the problems of low capacity and high energy consumption faced by the current main memory, thereby greatly improving the overall performance of the computer system. Because its access speed is relatively low compared with DRAM, if it is simply used as the main memory, it will reduce the performance of the computer system. If it can be combined with DRAM to form the main memory to achieve the effect of learning from each other and complementing each other's advantages, it should be helpful to improve the performance of the main memory.
发明内容Contents of the invention
为了在不增加功耗和时延的前提下,最大限度地增加主存储器的容量,适应处理器速度的快速提升,减少对磁盘的访问次数,降低存储所耗的能量,本发明提供一种混合主存储器实现节能存储的方法。In order to maximize the capacity of the main memory without increasing power consumption and delay, adapt to the rapid increase of processor speed, reduce the number of accesses to the disk, and reduce the energy consumed by storage, the present invention provides a hybrid A method for realizing energy-saving storage in a main memory.
本发明解决其技术问题所采用的技术方案是:The technical solution adopted by the present invention to solve its technical problems is:
一种混合主存储器实现节能存储的方法,包括如下步骤:A method for realizing energy-saving storage by mixing main memory, comprising the steps of:
1)构造混合主存储器:1) Construct a hybrid main memory:
混合主存储器由相变存储器PCM和动态随机存储器DRAM组成,相变存储器提供混合主存储器的主要容量,用于存储程序运行时所需要的指令和数据;DRAM通过数据线与磁盘和相变存储器相连,用于缓冲磁盘和相变存储器的数据,DRAM还通过数据线与处理器相连,用于向处理器发送数据;The hybrid main memory is composed of phase change memory PCM and dynamic random access memory DRAM. The phase change memory provides the main capacity of the hybrid main memory and is used to store instructions and data required for program operation; DRAM is connected to the disk and phase change memory through data lines , used to buffer the data of the disk and phase change memory, and the DRAM is also connected to the processor through a data line to send data to the processor;
2)根据如下读写策略对磁盘和相变存储器中的数据进行读写:2) Read and write data in the disk and phase change memory according to the following read and write strategies:
当处理器需要数据或指令时,首先判断它们是否存在于DRAM缓冲区中,如果存在就将其发送给处理器;如果不存在于DRAM缓冲区中,就继续判断它们是否存在于相变存储器中,如果存在于相变存储器就先将其读入DRAM缓冲区中,然后发送给处理器;如果它们不存在于相变存储器中,就从磁盘中将其读入DRAM缓冲区中,然后发送给处理器;When the processor needs data or instructions, first determine whether they exist in the DRAM buffer, and if they exist, send them to the processor; if they do not exist in the DRAM buffer, continue to determine whether they exist in the phase change memory , if they exist in PCM, they are read into the DRAM buffer first, and then sent to the processor; if they do not exist in PCM, they are read from disk into the DRAM buffer, and then sent to the processor;
当DRAM缓冲区满时,部分页表会被替换掉以装载新的数据,在这些页表被替换掉前,首先判断该拟被替换掉的页表是否在相变存储器中和是否是脏数据,如果其不在相变存储器中或是脏数据,则将其写入相变存储器中,否则,直接用新的数据将其覆盖掉。When the DRAM buffer is full, some page tables will be replaced to load new data. Before these page tables are replaced, first determine whether the page table to be replaced is in the phase change memory and whether it is dirty data , if it is not in the phase change memory or is dirty data, write it into the phase change memory, otherwise, directly overwrite it with new data.
为了方便对DRAM缓冲区中的数据进行管理,本发明还给DRAM缓冲区中的每一项数据添加一个TAG标签,通过TAG标签判断其所标记数据的如下信息:是否有效,是否在相变存储器中,是否被修改过;所述TAG标签的数据结构包括有效位项、PCM位项、脏数据位项,其中每一项用一个比特位来存储,每一项的设置规则如下:In order to facilitate the management of the data in the DRAM buffer, the present invention also adds a TAG tag to each item of data in the DRAM buffer, and judges the following information of the marked data by the TAG tag: whether it is valid, whether it is in the phase change memory Among them, whether it has been modified; the data structure of the TAG tag includes a valid bit item, a PCM bit item, and a dirty data bit item, each of which is stored with a bit, and the setting rules for each item are as follows:
1)有效位设置:当数据存入DRAM缓冲区时,其标签TAG中的有效位设置为1;当数据被替换出DRAM缓冲区时,其标签TAG中的有效位设置为0;有效位为1的TAG所对应的数据区不能装载新的数据,有效位为0的TAG所对应的数据区可以装载新的数据,装载新的数据后其TAG的有效位设置为1;1) Valid bit setting: when data is stored in the DRAM buffer, the valid bit in its tag TAG is set to 1; when the data is replaced out of the DRAM buffer, the valid bit in its tag TAG is set to 0; the valid bit is The data area corresponding to the TAG of 1 cannot load new data, and the data area corresponding to the TAG whose effective bit is 0 can load new data, and the effective bit of the TAG is set to 1 after loading the new data;
2)PCM位设置:当数据从磁盘中读入DRAM缓冲区时,其标签TAG中的PCM位设置为0;当数据从相变存储器PCM中读入DRAM缓冲区时,其标签TAG中的PCM位设置为1;2) PCM bit setting: when the data is read from the disk into the DRAM buffer, the PCM bit in the tag TAG is set to 0; when the data is read from the phase change memory PCM into the DRAM buffer, the PCM in the tag TAG bit set to 1;
3)脏数据位设置:当数据从磁盘或相变存储器中读入DRAM缓冲区时,其标签TAG中的脏数据位设置为0;当数据被处理器修改后,其标签TAG中的脏数据位设置为1。3) Dirty data bit setting: When data is read from disk or phase change memory into the DRAM buffer, the dirty data bit in its tag TAG is set to 0; when the data is modified by the processor, the dirty data in its tag TAG bit is set to 1.
在DRAM缓冲区向相变存储器写的过程中,还设有一个相变存储器写队列,当DRAM缓冲区被替换掉的页表需要写回相变存储器中时,先将这些页表送入相变存储器写队列中,然后再写入相变存储器。In the process of writing the DRAM buffer to the phase change memory, there is also a phase change memory write queue. When the page tables replaced by the DRAM buffer need to be written back to the phase change memory, these page tables are first sent to the phase change memory. Change memory write queue, and then write phase change memory.
与背景技术相比,本发明具有的有益的效果是:Compared with background technology, the beneficial effect that the present invention has is:
利用相变存储器和动态随机存储器相结合形成的混合主存储器,能够充分利用它们各自的优点,达到优势互补的效果。相变存储器提供混合主存储器的主要容量,利用其高存储密度特性极大地提高了主存储器容量,利用其低电压、低能耗特性有效降低了整个主存储器的能耗。动态随机存储器作为混合主存储器的缓冲区,利用其高访问速度的特性保证了主存储器的访问速度没有受到相变存储器的影响。因此,本发明的混合主存储器能够获得如下特性:大容量、低费用、低能耗、高存储密度和高访问速度。混合主存储器的这些特性可以有效地解决目前主存储器所面临的小容量、高费用和高能耗等问题,从而提升计算机系统的整体性能。The hybrid main memory formed by combining the phase-change memory and the dynamic random access memory can make full use of their respective advantages and achieve the effect of complementary advantages. The phase change memory provides the main capacity of the hybrid main memory, greatly increases the capacity of the main memory with its high storage density characteristics, and effectively reduces the energy consumption of the entire main memory with its low voltage and low energy consumption characteristics. The dynamic random access memory is used as a buffer of the mixed main memory, and its high access speed characteristic ensures that the access speed of the main memory is not affected by the phase change memory. Therefore, the hybrid main memory of the present invention can obtain the following characteristics: large capacity, low cost, low energy consumption, high storage density and high access speed. These characteristics of the hybrid main memory can effectively solve the problems of small capacity, high cost and high energy consumption faced by the current main memory, thereby improving the overall performance of the computer system.
附图说明Description of drawings
图1是本发明实施例的混合主存储器结构示意图;FIG. 1 is a schematic structural diagram of a hybrid main memory according to an embodiment of the present invention;
图2是本发明实施例的DRAM缓冲区中TAG的数据结构图;Fig. 2 is the data structure figure of TAG in the DRAM buffer zone of the embodiment of the present invention;
图3是本发明实施例的混合主存储器读策略流程图;FIG. 3 is a flow chart of a hybrid main memory read strategy according to an embodiment of the present invention;
图4是本发明实施例的混合主存储器写策略流程图。FIG. 4 is a flow chart of a hybrid main memory write strategy according to an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例的具体实施方式是:首先,根据图1所示的混合主存储器结构示意图搭建系统的硬件环境;然后根据图2所示的TAG数据结构配置DRAM缓冲区;最后根据读写策略对磁盘和相变存储器中的数据进行读写。下面更详细地说明这个实施过程。The specific implementation manner of the embodiment of the present invention is: at first, set up the hardware environment of system according to the schematic diagram of hybrid main memory structure shown in Figure 1; Then configure DRAM buffer according to the TAG data structure shown in Figure 2; Read and write data in disk and phase change memory. This implementation is described in more detail below.
(一)构造混合主存储器(1) Construction of hybrid main memory
混合主存储器由相变存储器PCM和动态随机存储器DRAM组成的。其中,相变存储器提供混合主存储器的主要容量,用于存储程序运行时所需要的指令和数据;动态随机存储器作为混合主存储器的缓冲存储器,用于缓冲磁盘和相变存储器的数据。DRAM缓冲区能够读取磁盘和相变存储器的数据,因此它需要数据线直接与磁盘和相变存储器相连。DRAM缓冲区是唯一能够直接向处理器发送数据的部件,因此只有它有数据线直接与处理器相连。当DRAM缓冲区满时,部分页表将会被替换掉以装载新的数据。如果被替换掉的数据不在相变存储器中或是脏数据(即DRAM缓冲区中的数据与其在磁盘或相变存储器中的源数据不一致),则需要写到相变存储器中。为了缓解相变存储器较低的写速度,避免处理器长时间等待,在DRAM缓冲区向相变存储器写的过程中,增加一个相变存储器写队列。因此,DRAM缓冲区写回的数据线并没有直接与相变存储器相连,而是先连接到PCM写队列,然后再连接到相变存储器PCM。混合主存储器的结构如图1所示。Hybrid main memory is composed of phase change memory PCM and dynamic random access memory DRAM. Among them, the phase change memory provides the main capacity of the hybrid main memory, which is used to store the instructions and data required for the program to run; the dynamic random access memory is used as the buffer memory of the hybrid main memory, and is used to buffer the data of the disk and the phase change memory. The DRAM buffer can read the data of the disk and the phase change memory, so it needs the data line to be directly connected with the disk and the phase change memory. The DRAM buffer is the only part that can send data directly to the processor, so it's the only one that has data lines connected directly to the processor. When the DRAM buffer is full, part of the page table will be replaced to load new data. If the replaced data is not in the phase-change memory or is dirty data (that is, the data in the DRAM buffer is inconsistent with its source data in the disk or phase-change memory), it needs to be written into the phase-change memory. In order to alleviate the low write speed of the phase change memory and avoid the processor waiting for a long time, a phase change memory write queue is added during the process of writing from the DRAM buffer to the phase change memory. Therefore, the data line written back from the DRAM buffer is not directly connected to the phase change memory, but is first connected to the PCM write queue, and then connected to the phase change memory PCM. The structure of the hybrid main memory is shown in Figure 1.
(二)DRAM缓冲区标签TAG:(2) DRAM buffer label TAG:
DRAM缓冲区为了方便对其中的数据进行管理,给每一项数据添加一个标签TAG,通过TAG可以判断其所标记数据的如下信息:是否有效,是否在相变存储器中,是否被修改过。TAG的数据结构如图2所示,其中每一项用一个比特位来存储。每一项设置的规则如下:In order to facilitate the management of the data in the DRAM buffer, a tag TAG is added to each item of data. Through the TAG, the following information of the marked data can be judged: whether it is valid, whether it is in the phase change memory, and whether it has been modified. The data structure of TAG is shown in Figure 2, where each item is stored with one bit. The rules for each setting are as follows:
1)有效位设置:当数据存入DRAM缓冲区时,其标签TAG中的有效位设置为1;当数据被替换出DRAM缓冲区时,其标签TAG中的有效位设置为0。有效位为1的TAG所对应的数据区不能装载新的数据,有效位为0的TAG所对应的数据区可以装载新的数据,装载新的数据后其TAG的有效位设置为1。1) Valid bit setting: when data is stored in the DRAM buffer, the valid bit in its tag TAG is set to 1; when the data is replaced out of the DRAM buffer, the valid bit in its tag TAG is set to 0. The data area corresponding to the TAG whose effective bit is 1 cannot load new data, and the data area corresponding to the TAG whose effective bit is 0 can load new data, and the effective bit of the TAG is set to 1 after loading the new data.
2)PCM位设置:当数据从磁盘中读入DRAM缓冲区时,其标签TAG中的PCM位设置为0;当数据从相变存储器PCM中读入DRAM缓冲区时,其标签TAG中的PCM位设置为1。2) PCM bit setting: when the data is read from the disk into the DRAM buffer, the PCM bit in the tag TAG is set to 0; when the data is read from the phase change memory PCM into the DRAM buffer, the PCM in the tag TAG bit is set to 1.
3)脏数据位设置:当数据从磁盘或相变存储器中读入DRAM缓冲区时,其标签TAG中的脏数据位设置为0;当数据被处理器修改后,其标签TAG中的脏数据位设置为1。3) Dirty data bit setting: When data is read from disk or phase change memory into the DRAM buffer, the dirty data bit in its tag TAG is set to 0; when the data is modified by the processor, the dirty data in its tag TAG bit is set to 1.
(三)混合主存储器的读写策略:(3) Read and write strategy of mixed main memory:
当处理器需要数据或指令时,首先判断它们是否存在于DRAM缓冲区中,如果存在就将其发送给处理器;如果不存在于DRAM缓冲区中,就继续判断它们是否存在于相变存储器PCM中,如果存在就先将其读入DRAM缓冲区中,然后发送给处理器,同时设置该数据项TAG为110;如果它们不存在于相变存储器中,就从磁盘中将其读入DRAM缓冲区中,然后发送给处理器,同时设置该数据项TAG为100。读策略的具体流程如图3所示。当DRAM缓冲区满时,部分页表将会被替换掉以装载新的数据,在这些页表被替换掉前,首先要判断其是否在相变存储器中和是否是脏数据,如果其不在相变存储器中或是脏数据,则先将其送入PCM写队列中,然后写入相变存储器PCM,否则将该数据项TAG中的有效位设置为0。写策略的具体流程如图4所示。When the processor needs data or instructions, first determine whether they exist in the DRAM buffer, and if they exist, send them to the processor; if they do not exist in the DRAM buffer, continue to determine whether they exist in the phase change memory PCM If it exists, read it into the DRAM buffer first, then send it to the processor, and set the data item TAG to 110; if they do not exist in the phase change memory, read it from the disk into the DRAM buffer area, and then send it to the processor, and set the data item TAG to 100 at the same time. The specific flow of the read strategy is shown in Figure 3. When the DRAM buffer is full, some page tables will be replaced to load new data. Before these page tables are replaced, it is first necessary to determine whether they are in the phase change memory and whether they are dirty data. If there is dirty data in the change memory, it is first sent to the PCM write queue, and then written into the phase change memory PCM, otherwise, the valid bit in the data item TAG is set to 0. The specific process of writing strategy is shown in Figure 4.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010509810 CN101989183A (en) | 2010-10-15 | 2010-10-15 | Method for realizing energy-saving storing of hybrid main storage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010509810 CN101989183A (en) | 2010-10-15 | 2010-10-15 | Method for realizing energy-saving storing of hybrid main storage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101989183A true CN101989183A (en) | 2011-03-23 |
Family
ID=43745741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010509810 Pending CN101989183A (en) | 2010-10-15 | 2010-10-15 | Method for realizing energy-saving storing of hybrid main storage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101989183A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102768571A (en) * | 2012-06-13 | 2012-11-07 | 上海交通大学 | Energy Saving Method of Data Center Based on PCM |
CN103019955A (en) * | 2011-09-28 | 2013-04-03 | 中国科学院上海微系统与信息技术研究所 | Memory management method based on application of PCRAM (phase change random access memory) main memory |
CN103810113A (en) * | 2014-01-28 | 2014-05-21 | 华中科技大学 | Fusion memory system of nonvolatile memory and dynamic random access memory |
CN103810112A (en) * | 2014-01-28 | 2014-05-21 | 华中科技大学 | Nonvolatile memory system and management method thereof |
CN103902012A (en) * | 2012-12-30 | 2014-07-02 | 联想(北京)有限公司 | Method for adjusting frequency for reading accelerated speed values and electronic equipment |
CN103927203A (en) * | 2014-03-26 | 2014-07-16 | 上海新储集成电路有限公司 | Computer system and control method |
CN103946826A (en) * | 2011-09-30 | 2014-07-23 | 英特尔公司 | Apparatus and method for implementing a multi-level memory hierarchy over common memory channels |
CN104182280A (en) * | 2014-07-30 | 2014-12-03 | 山东大学 | Low-energy RM real-time task scheduling method for hybrid main memory embedded system |
CN104360825A (en) * | 2014-11-21 | 2015-02-18 | 浪潮(北京)电子信息产业有限公司 | Hybrid internal memory system and management method thereof |
CN104699424A (en) * | 2015-03-26 | 2015-06-10 | 华中科技大学 | Page hot degree based heterogeneous memory management method |
CN104834606A (en) * | 2015-01-07 | 2015-08-12 | 浪潮(北京)电子信息产业有限公司 | Heterogeneous confusion hierarchical memory device |
CN104834608A (en) * | 2015-05-12 | 2015-08-12 | 华中科技大学 | Cache replacement method under heterogeneous memory environment |
US9342453B2 (en) | 2011-09-30 | 2016-05-17 | Intel Corporation | Memory channel that supports near memory and far memory access |
CN106469020A (en) * | 2015-08-19 | 2017-03-01 | 旺宏电子股份有限公司 | Cache element and control method and application system thereof |
US9600407B2 (en) | 2011-09-30 | 2017-03-21 | Intel Corporation | Generation of far memory access signals based on usage statistic tracking |
CN107704400A (en) * | 2017-10-12 | 2018-02-16 | 郑州云海信息技术有限公司 | A Page Cache Method Oriented to Non-Volatile Storage |
US10241912B2 (en) | 2011-09-30 | 2019-03-26 | Intel Corporation | Apparatus and method for implementing a multi-level memory hierarchy |
CN111177023A (en) * | 2019-12-27 | 2020-05-19 | 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) | Method and device for distributing storage intervals in embedded equipment |
CN111984201A (en) * | 2020-09-01 | 2020-11-24 | 云南财经大学 | Method and system for highly reliable collection of astronomical observation data based on persistent memory |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008171543A (en) * | 2007-01-07 | 2008-07-24 | Internatl Business Mach Corp <Ibm> | Method for operating memory cell assembly, memory controller, memory chip, and computer program |
CN101315811A (en) * | 2008-07-22 | 2008-12-03 | 中国科学院上海微系统与信息技术研究所 | Dynamic Phase Change Memory |
US20090244970A1 (en) * | 2008-03-25 | 2009-10-01 | Rao G R Mohan | Random access memory with cmos-compatible nonvolatile storage element and parallel storage capacitor |
-
2010
- 2010-10-15 CN CN 201010509810 patent/CN101989183A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008171543A (en) * | 2007-01-07 | 2008-07-24 | Internatl Business Mach Corp <Ibm> | Method for operating memory cell assembly, memory controller, memory chip, and computer program |
US20090244970A1 (en) * | 2008-03-25 | 2009-10-01 | Rao G R Mohan | Random access memory with cmos-compatible nonvolatile storage element and parallel storage capacitor |
CN101315811A (en) * | 2008-07-22 | 2008-12-03 | 中国科学院上海微系统与信息技术研究所 | Dynamic Phase Change Memory |
Non-Patent Citations (1)
Title |
---|
《ISCA'09》 20090624 Moinuddin K. Qureshi,et al Scalable High Performance Main Memory System Using Phase-Change Memory Technology 第3部分 1,2 , 2 * |
Cited By (39)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019955B (en) * | 2011-09-28 | 2016-06-08 | 中国科学院上海微系统与信息技术研究所 | The EMS memory management process of PCR-based AM main memory application |
CN103019955A (en) * | 2011-09-28 | 2013-04-03 | 中国科学院上海微系统与信息技术研究所 | Memory management method based on application of PCRAM (phase change random access memory) main memory |
CN107391397B (en) * | 2011-09-30 | 2021-07-27 | 英特尔公司 | Memory channel supporting near memory and far memory access |
US9317429B2 (en) | 2011-09-30 | 2016-04-19 | Intel Corporation | Apparatus and method for implementing a multi-level memory hierarchy over common memory channels |
US10241943B2 (en) | 2011-09-30 | 2019-03-26 | Intel Corporation | Memory channel that supports near memory and far memory access |
CN107391397A (en) * | 2011-09-30 | 2017-11-24 | 英特尔公司 | Support the storage channel of nearly memory and remote memory access |
CN103946826A (en) * | 2011-09-30 | 2014-07-23 | 英特尔公司 | Apparatus and method for implementing a multi-level memory hierarchy over common memory channels |
US10719443B2 (en) | 2011-09-30 | 2020-07-21 | Intel Corporation | Apparatus and method for implementing a multi-level memory hierarchy |
US10691626B2 (en) | 2011-09-30 | 2020-06-23 | Intel Corporation | Memory channel that supports near memory and far memory access |
CN103946826B (en) * | 2011-09-30 | 2019-05-31 | 英特尔公司 | For realizing the device and method of multi-level store level on common storage channel |
EP2761480A4 (en) * | 2011-09-30 | 2015-06-24 | Intel Corp | Apparatus and method for implementing a multi-level memory hierarchy over common memory channels |
US10282322B2 (en) | 2011-09-30 | 2019-05-07 | Intel Corporation | Memory channel that supports near memory and far memory access |
US10282323B2 (en) | 2011-09-30 | 2019-05-07 | Intel Corporation | Memory channel that supports near memory and far memory access |
US9619408B2 (en) | 2011-09-30 | 2017-04-11 | Intel Corporation | Memory channel that supports near memory and far memory access |
US9342453B2 (en) | 2011-09-30 | 2016-05-17 | Intel Corporation | Memory channel that supports near memory and far memory access |
US9600407B2 (en) | 2011-09-30 | 2017-03-21 | Intel Corporation | Generation of far memory access signals based on usage statistic tracking |
US10241912B2 (en) | 2011-09-30 | 2019-03-26 | Intel Corporation | Apparatus and method for implementing a multi-level memory hierarchy |
CN102768571A (en) * | 2012-06-13 | 2012-11-07 | 上海交通大学 | Energy Saving Method of Data Center Based on PCM |
CN103902012B (en) * | 2012-12-30 | 2017-03-29 | 联想(北京)有限公司 | A kind of method and electronic equipment of adjustment acceleration value reading frequency |
CN103902012A (en) * | 2012-12-30 | 2014-07-02 | 联想(北京)有限公司 | Method for adjusting frequency for reading accelerated speed values and electronic equipment |
CN103810112B (en) * | 2014-01-28 | 2016-08-17 | 华中科技大学 | A kind of Nonvolatile memory system and management method thereof |
CN103810113A (en) * | 2014-01-28 | 2014-05-21 | 华中科技大学 | Fusion memory system of nonvolatile memory and dynamic random access memory |
CN103810112A (en) * | 2014-01-28 | 2014-05-21 | 华中科技大学 | Nonvolatile memory system and management method thereof |
CN103927203B (en) * | 2014-03-26 | 2018-06-26 | 上海新储集成电路有限公司 | A kind of computer system and control method |
CN103927203A (en) * | 2014-03-26 | 2014-07-16 | 上海新储集成电路有限公司 | Computer system and control method |
CN104182280A (en) * | 2014-07-30 | 2014-12-03 | 山东大学 | Low-energy RM real-time task scheduling method for hybrid main memory embedded system |
CN104182280B (en) * | 2014-07-30 | 2017-04-12 | 山东大学 | Low-energy RM real-time task scheduling method for hybrid main memory embedded system |
CN104360825A (en) * | 2014-11-21 | 2015-02-18 | 浪潮(北京)电子信息产业有限公司 | Hybrid internal memory system and management method thereof |
CN104360825B (en) * | 2014-11-21 | 2018-02-06 | 浪潮(北京)电子信息产业有限公司 | One kind mixing memory system and its management method |
CN104834606A (en) * | 2015-01-07 | 2015-08-12 | 浪潮(北京)电子信息产业有限公司 | Heterogeneous confusion hierarchical memory device |
CN104699424A (en) * | 2015-03-26 | 2015-06-10 | 华中科技大学 | Page hot degree based heterogeneous memory management method |
CN104699424B (en) * | 2015-03-26 | 2018-06-12 | 华中科技大学 | A kind of isomery EMS memory management process based on page temperature |
CN104834608A (en) * | 2015-05-12 | 2015-08-12 | 华中科技大学 | Cache replacement method under heterogeneous memory environment |
CN104834608B (en) * | 2015-05-12 | 2017-09-29 | 华中科技大学 | A kind of buffer replacing method under isomery memory environment |
CN106469020A (en) * | 2015-08-19 | 2017-03-01 | 旺宏电子股份有限公司 | Cache element and control method and application system thereof |
CN107704400A (en) * | 2017-10-12 | 2018-02-16 | 郑州云海信息技术有限公司 | A Page Cache Method Oriented to Non-Volatile Storage |
CN111177023A (en) * | 2019-12-27 | 2020-05-19 | 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) | Method and device for distributing storage intervals in embedded equipment |
CN111984201A (en) * | 2020-09-01 | 2020-11-24 | 云南财经大学 | Method and system for highly reliable collection of astronomical observation data based on persistent memory |
CN111984201B (en) * | 2020-09-01 | 2023-01-31 | 云南财经大学 | High-reliability acquisition method and system for astronomical observation data based on persistent memory |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101989183A (en) | Method for realizing energy-saving storing of hybrid main storage | |
CN103049397B (en) | A kind of solid state hard disc inner buffer management method based on phase transition storage and system | |
TWI614752B (en) | Power conservation by way of memory channel shutdown | |
CN104011691B (en) | Non-volatile ram dish | |
CN103885728B (en) | A kind of disk buffering system based on solid-state disk | |
CN106257400B (en) | Processing device, computing system and method for processing device to access main memory | |
KR101692417B1 (en) | Multi-level memory with direct access | |
CN103946826B (en) | For realizing the device and method of multi-level store level on common storage channel | |
CN102012791B (en) | Flash based PCIE (peripheral component interface express) board for data storage | |
US20100153646A1 (en) | Memory hierarchy with non-volatile filter and victim caches | |
CN104360963B (en) | A kind of isomery mixing internal memory method and apparatus calculated towards internal memory | |
CN102866957B (en) | Multi-core multi-thread microprocessor-oriented virtual active page buffer method and device | |
CN103019955B (en) | The EMS memory management process of PCR-based AM main memory application | |
US10592419B2 (en) | Memory system | |
CN104360825B (en) | One kind mixing memory system and its management method | |
CN108762671A (en) | Hybrid memory system based on PCM and DRAM and management method thereof | |
CN104899154B (en) | The page management method hosted is mixed based on embedded system | |
Zhong et al. | Energy-efficient in-memory paging for smartphones | |
CN105607862A (en) | Solid state disk capable of combining DRAM (Dynamic Random Access Memory) with MRAM (Magnetic Random Access Memory) and being provided with backup power | |
Quan et al. | Prediction table based management policy for STT-RAM and SRAM hybrid cache | |
CN103885724B (en) | Memory system architecture based on phase transition storage and wear-leveling algorithm thereof | |
CN107766002A (en) | A Virtual Hybrid File System Based on Hybrid Storage Devices | |
KR101351550B1 (en) | Dual Buffer Architecture and Data Management for Non-Volatile based Main Memory | |
CN104834606A (en) | Heterogeneous confusion hierarchical memory device | |
CN203733100U (en) | Memory system structure based on PCM (Phase Change Memory) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110323 |