Movatterモバイル変換


[0]ホーム

URL:


CN102999441A - Fine granularity memory access method - Google Patents

Fine granularity memory access method
Download PDF

Info

Publication number
CN102999441A
CN102999441ACN2012104605127ACN201210460512ACN102999441ACN 102999441 ACN102999441 ACN 102999441ACN 2012104605127 ACN2012104605127 ACN 2012104605127ACN 201210460512 ACN201210460512 ACN 201210460512ACN 102999441 ACN102999441 ACN 102999441A
Authority
CN
China
Prior art keywords
memory
data
bit
bitmap
fine granularity
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.)
Granted
Application number
CN2012104605127A
Other languages
Chinese (zh)
Other versions
CN102999441B (en
Inventor
汪东升
高鹏
王海霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua UniversityfiledCriticalTsinghua University
Priority to CN201210460512.7ApriorityCriticalpatent/CN102999441B/en
Publication of CN102999441ApublicationCriticalpatent/CN102999441A/en
Application grantedgrantedCritical
Publication of CN102999441BpublicationCriticalpatent/CN102999441B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明涉及计算机系统结构技术领域,公开了一种细粒度内存访问的方法。本发明通过在字节这一级别标识被修改的数据和零值数据来避免无效传输,因此降低了高速缓存数据区到内存的带宽占用,降低了额外写入的开销;另外,对于写损耗的存储器件,该方法可以减少其平均写入次数,延长其寿命,同时降低功耗。

Figure 201210460512

The invention relates to the technical field of computer system structure and discloses a fine-grained memory access method. The present invention avoids invalid transmission by identifying modified data and zero-value data at the byte level, thereby reducing the bandwidth occupation from the cache data area to the memory, and reducing the overhead of additional writing; in addition, for the loss of writing For a storage device, the method can reduce its average write times, prolong its life, and reduce power consumption at the same time.

Figure 201210460512

Description

A kind of method of fine granularity internal storage access
Technical field
The present invention relates to the Computer Systems Organization technical field, particularly relate to a kind of method of fine granularity internal storage access.
Background technology
The performance boost speed of calculator memory lags far behind the speed that processor performance promotes.With respect to processor, internal storage access postpones with 5 times speed increment in per ten years, and this system architecture unbalance formed and hindered " the storage wall " that processor performance promotes, thereby so that memory system becomes one of performance bottleneck of whole computer system.In order to address this problem, a lot of new memory techniques are suggested, and the fine granularity internal storage access is exactly one of them.The fine granularity internal storage access can accurately be controlled every a slice storage chip, can also avoid extra read-write, saves bandwidth.
Present fine granularity memory Accessing Mechanism concentrates on the DRAM(dynamic RAM) in the realization, purpose be for better under the polycaryon processor environment excavated space locality improve the efficient of internal storage access, effect is all undesirable.And having the device of the loss write for NAND-FLASH, phase transition internal memory etc., existing memory pool access method all can not reduce its loss.
Summary of the invention
The technical matters that (one) will solve
The technical matters that the present invention at first will solve is: how to avoid the invalid transmission in the internal storage access process.
(2) technical scheme
In order to solve the problems of the technologies described above, the invention provides a kind of method of fine granularity internal storage access, may further comprise the steps:
S1, define the dirty bitmap of fine granularity high-speed cache in the following manner: the content that the dirty bitmap of described fine granularity high-speed cache uses one or more 8 bit memory cell in the delegation in the one or more bits sign cached datas district whether initial value when reading in is different; Described cached data district is the data field of not writing loss or having the memory device of the loss write;
S2, define the null value bitmap in the following manner: described null value bitmap uses whether the data in one or more 8 bit memory cell in one or more bits sign internal memories are zero;
S3, define memory line in the following manner: in internal memory, a plurality of volatile or non-volatile memory chips increase the data that can store on each address by sharing read/write address, the storage space that each read/write address is corresponding is a memory line, and described memory line is made of the storage chip of 8 or more 1 byte bit wides; Described internal memory is to have the described internal memory of not writing loss or having the memory device of the loss write;
S4, utilize the dirty bitmap of described fine granularity high-speed cache to realize the read-write in cached data district;
S5, utilize described null value bitmap and memory line to realize the read-write of internal memory.
Preferably, step S4 is specially:
When the data line in described cached data district was read into, the bit in the initial dirty bitmap of fine granularity high-speed cache was considered as full 0 or complete 1;
When the data line in described cached data district is updated, according to byte newer data and legacy data, according to the two identical content of revising in the dirty bitmap of described fine granularity high-speed cache whether;
When the data line in described cached data district is replaced out, if the data in the sign of the bit in the dirty bitmap of described fine granularity high-speed cache cached data district do not change, then abandon the data that are replaced out, otherwise according to the bit in the dirty bitmap of described fine granularity high-speed cache, with the content write memory that has in the described cached data district in the byte of modification.
Preferably, step S5 is specially:
According to bit and the address in the dirty bitmap of described fine granularity high-speed cache, the row that is replaced out in the described cached data district is sent to the capable storage chip of correspondence memory in the internal memory;
When internal memory is read, according to corresponding bit in the null value bitmap, only send non-vanishing data, for the data that do not send, fill zero in the destination;
When data are written to internal memory, generate corresponding to the bit in the null value bitmap according to the data of write memory, and use the bit that generates to upgrade the null value bitmap.
Preferably, the size of the dirty bitmap of described fine granularity high-speed cache is 1/8 of cached data district size.
Preferably, the size of described null value bitmap is 1/8 of described memory size.
Preferably, described internal memory behavior 64 bits or more high-bit width.
(3) beneficial effect
Technique scheme has following advantage: avoid invalid transmission by the data and the null value data that are modified in this rank sign of byte, therefore reduced the bandwidth occupancy of cached data district to internal memory, reduced the expense that additionally writes; In addition, for the memory device of writing loss, the method can reduce it and on average write indegree, prolongs its life-span, reduces simultaneously power consumption.
Description of drawings
Fig. 1 is method flow diagram of the present invention;
Fig. 2 is the schematic diagram of the fine granularity internal storage access framework that defines in the method for the present invention;
Fig. 3 is the dirty bitmap schematic diagram of fine granularity high-speed cache of definition;
Fig. 4 is the schematic diagram of the null value bitmap of definition;
Fig. 5 is the process of writing of fine granularity internal storage access framework;
Fig. 6 is the read procedure of Fig. 5 fine granularity internal storage access framework.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for explanation the present invention, but are not used for limiting the scope of the invention.
As shown in Figure 1 and Figure 2, the invention provides a kind of method of fine granularity internal storage access, may further comprise the steps:
S1, define the dirty bitmap of fine granularity high-speed cache in the following manner: the content that the dirty bitmap of described fine granularity high-speed cache uses one or more 8 bit memory cell in the delegation in the one or more bits sign cached datas district whether initial value when reading in is different, that is to say the value that was written into from original different; Described cached data district is the data field of memory device (also can be the memory device of not writing loss) with the loss write; As shown in Figure 3.Among Fig. 3,8 Bit datas in each bit identification cached data district of the dirty bitmap of fine granularity high-speed cache.
S2, define the null value bitmap in the following manner: described null value bitmap uses whether the data in one or more 8 bit memory cell in one or more bits sign internal memories are zero; As shown in Figure 4.Among Fig. 4,8 bit memory cell in each sign memory line.
S3, define memory line in the following manner: in internal memory, a plurality of volatile or non-volatile memory chips increase the data that can store on each address by sharing read/write address, the storage space that each read/write address is corresponding is a memory line, be 64 bit bit wides, described memory line is made of the storage chip of 8 or more 8 bit bit wides, and off bit figure is stored in the extra storage chip; Described internal memory is to have the described internal memory of writing the memory device (also can be the memory device of not writing loss) of loss;
S4, utilize the dirty bitmap of described fine granularity high-speed cache to realize the read-write in cached data district; Step S4 is the read-write rule in cached data district.
S5, utilize described null value bitmap and memory line to realize the read-write of internal memory.Step S5 has described the rule of memory read-write.The data that the cached data district replaces out are one of sources of internal storage data.Simultaneously, internal storage data also is the source of cached data.
Such as Fig. 5, shown in Figure 6, step S4 is specially:
When the data line in described cached data district was read into, the bit in the initial dirty bitmap of fine granularity high-speed cache was considered as full 0 or complete 1;
When the data line in described cached data district is updated, according to byte newer data and legacy data, according to the two identical content of revising in the dirty bitmap of described fine granularity high-speed cache whether;
When the data line in described cached data district is replaced out, if the data in the sign of the bit in the dirty bitmap of described fine granularity high-speed cache cached data district do not change, then abandon the data that are replaced out, otherwise according to the bit in the dirty bitmap of described fine granularity high-speed cache, with the content write memory that has in the described cached data district in the byte of modification.
Such as Fig. 5, shown in Figure 6, step S5 is specially:
In Memory Controller Hub, according to bit and the address in the dirty bitmap of described fine granularity high-speed cache, the row that is replaced out in the described cached data district is sent to the capable storage chip of correspondence memory in the internal memory;
When data are read into internal memory from disk, according to the value of each byte, the null value bitmap is carried out assignment.When this byte was 0, bit corresponding in the null value bitmap was assigned 0 or 1.When this byte was not 0, assignment was its opposite number.
When high-speed cache need to read in data line from internal memory, Memory Controller Hub only sent non-vanishing data according to corresponding bit in the null value bitmap, after high-speed cache receives data, automatic filling 0 Value Data for the data that do not send, fills zero in the destination.
When data are written to internal memory, generate corresponding to the bit in the null value bitmap according to the data of write memory, and use the bit that generates to upgrade the null value bitmap.
Preferably, the size of the dirty bitmap of described fine granularity high-speed cache is 1/8 of cached data district size.
Preferably, the size of described null value bitmap is 1/8 of described memory size.
Preferably, described internal memory behavior 64 bits or more high-bit width.
As can be seen from the above embodiments, the present invention avoids invalid transmission by the data and the null value data that are modified in this rank of byte sign, has therefore reduced the cached data district to the taking of memory bandwidth, and has reduced the expense that additionally writes; In addition, for the memory device of writing loss, the method can reduce it and on average write indegree, prolongs its life-span, reduces simultaneously power consumption.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the technology of the present invention principle; can also make some improvement and replacement, these improvement and replacement also should be considered as protection scope of the present invention.

Claims (6)

1. the method for a fine granularity internal storage access is characterized in that, may further comprise the steps:
S1, define the dirty bitmap of fine granularity high-speed cache in the following manner: the content that the dirty bitmap of described fine granularity high-speed cache uses one or more 8 bit memory cell in the delegation in the one or more bits sign cached datas district whether initial value when reading in is different; Described cached data district is the data field of not writing loss or having the memory device of the loss write;
S2, define the null value bitmap in the following manner: described null value bitmap uses whether the data in one or more 8 bit memory cell in one or more bits sign internal memories are zero;
S3, define memory line in the following manner: in internal memory, a plurality of volatile or non-volatile memory chips increase the data that can store on each address by sharing read/write address, the storage space that each read/write address is corresponding is a memory line, and described memory line is made of the storage chip of 8 or more 1 byte bit wides; Described internal memory is to have the described internal memory of not writing loss or having the memory device of the loss write;
S4, utilize the dirty bitmap of described fine granularity high-speed cache to realize the read-write in cached data district;
S5, utilize described null value bitmap and memory line to realize the read-write of internal memory.
2. the method for claim 1 is characterized in that, step S4 is specially:
When the data line in described cached data district was read into, the bit in the initial dirty bitmap of fine granularity high-speed cache was considered as full 0 or complete 1;
When the data line in described cached data district is updated, according to byte newer data and legacy data, according to the two identical content of revising in the dirty bitmap of described fine granularity high-speed cache whether;
When the data line in described cached data district is replaced out, if the data in the sign of the bit in the dirty bitmap of described fine granularity high-speed cache cached data district do not change, then abandon the data that are replaced out, otherwise according to the bit in the dirty bitmap of described fine granularity high-speed cache, with the content write memory that has in the described cached data district in the byte of modification.
3. the method for claim 1 is characterized in that, step S5 is specially:
According to bit and the address in the dirty bitmap of described fine granularity high-speed cache, the row that is replaced out in the described cached data district is sent to the capable storage chip of correspondence memory in the internal memory;
When internal memory is read, according to corresponding bit in the null value bitmap, only send non-vanishing data, for the data that do not send, fill zero in the destination;
When data are written to internal memory, generate corresponding to the bit in the null value bitmap according to the data of write memory, and use the bit that generates to upgrade the null value bitmap.
4. the method for claim 1 is characterized in that, the size of the dirty bitmap of described fine granularity high-speed cache is 1/8 of cached data district size.
5. the method for claim 1 is characterized in that, the size of described null value bitmap is 1/8 of described memory size.
6. such as each described method in the claim 1 ~ 5, it is characterized in that described internal memory behavior 64 bits or high-bit width more.
CN201210460512.7A2012-11-152012-11-15Fine granularity memory access methodActiveCN102999441B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210460512.7ACN102999441B (en)2012-11-152012-11-15Fine granularity memory access method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210460512.7ACN102999441B (en)2012-11-152012-11-15Fine granularity memory access method

Publications (2)

Publication NumberPublication Date
CN102999441Atrue CN102999441A (en)2013-03-27
CN102999441B CN102999441B (en)2015-06-17

Family

ID=47928031

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210460512.7AActiveCN102999441B (en)2012-11-152012-11-15Fine granularity memory access method

Country Status (1)

CountryLink
CN (1)CN102999441B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2014206220A1 (en)*2013-06-292014-12-31华为技术有限公司Data writing method and memory system
WO2015055020A1 (en)*2013-10-182015-04-23华为技术有限公司Method and apparatus for writing data
CN105701040A (en)*2014-11-282016-06-22杭州华为数字技术有限公司Method and device for activating memory
CN106126443A (en)*2016-06-232016-11-16清华大学 Cache replacement method and device for distinguishing dirty degree
CN110347338A (en)*2019-06-182019-10-18重庆大学Mix internal storage data exchange and processing method, system and readable storage medium storing program for executing
CN112068775A (en)*2020-09-032020-12-11南昌航空大学Optimization method for improving PCM (pulse code modulation) writing performance
CN112749134A (en)*2019-10-302021-05-04伊姆西Ip控股有限责任公司Method, apparatus, and computer-readable storage medium for bitmap conversion

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2010132655A2 (en)*2009-05-152010-11-18Oracle America, Inc.Cache coherent support for flash in a memory hierarchy
CN102023845A (en)*2010-12-172011-04-20曙光信息产业(北京)有限公司Cache concurrent access management method based on state machine
CN102135941A (en)*2010-08-262011-07-27华为技术有限公司Method and device for writing data from cache to memory
CN102253901A (en)*2011-07-132011-11-23清华大学Read/write distinguished data storage replacing method based on phase change memory
CN102436410A (en)*2011-12-122012-05-02华中科技大学On-line storage method of virtual machine check point

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2010132655A2 (en)*2009-05-152010-11-18Oracle America, Inc.Cache coherent support for flash in a memory hierarchy
CN102135941A (en)*2010-08-262011-07-27华为技术有限公司Method and device for writing data from cache to memory
CN102023845A (en)*2010-12-172011-04-20曙光信息产业(北京)有限公司Cache concurrent access management method based on state machine
CN102253901A (en)*2011-07-132011-11-23清华大学Read/write distinguished data storage replacing method based on phase change memory
CN102436410A (en)*2011-12-122012-05-02华中科技大学On-line storage method of virtual machine check point

Cited By (16)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104252420A (en)*2013-06-292014-12-31华为技术有限公司Data writing method and memory system
WO2014206220A1 (en)*2013-06-292014-12-31华为技术有限公司Data writing method and memory system
AU2014301874B2 (en)*2013-06-292017-05-04Huawei Technologies Co., Ltd.Data writing method and memory system
RU2621611C1 (en)*2013-06-292017-06-06Хуавэй Текнолоджиз Ко., Лтд.Method of data recording and memory system
CN104252420B (en)*2013-06-292017-08-29华为技术有限公司 Data writing method and memory system
WO2015055020A1 (en)*2013-10-182015-04-23华为技术有限公司Method and apparatus for writing data
CN105701040B (en)*2014-11-282018-12-07杭州华为数字技术有限公司A kind of method and device of enabled memory
CN105701040A (en)*2014-11-282016-06-22杭州华为数字技术有限公司Method and device for activating memory
US10127955B2 (en)2014-11-282018-11-13Huawei Technologies Co., Ltd.Memory activation method and apparatus, and memory controller
CN106126443A (en)*2016-06-232016-11-16清华大学 Cache replacement method and device for distinguishing dirty degree
CN106126443B (en)*2016-06-232019-03-01清华大学Distinguish the cache replacement method and device of dirty degree
CN110347338A (en)*2019-06-182019-10-18重庆大学Mix internal storage data exchange and processing method, system and readable storage medium storing program for executing
CN110347338B (en)*2019-06-182021-04-02重庆大学Hybrid memory data exchange processing method, system and readable storage medium
CN112749134A (en)*2019-10-302021-05-04伊姆西Ip控股有限责任公司Method, apparatus, and computer-readable storage medium for bitmap conversion
CN112749134B (en)*2019-10-302024-05-17伊姆西Ip控股有限责任公司Method, apparatus, and computer-readable storage medium for bitmap conversion
CN112068775A (en)*2020-09-032020-12-11南昌航空大学Optimization method for improving PCM (pulse code modulation) writing performance

Also Published As

Publication numberPublication date
CN102999441B (en)2015-06-17

Similar Documents

PublicationPublication DateTitle
US10915475B2 (en)Methods and apparatus for variable size logical page management based on hot and cold data
CN104750618B (en)Data storage device and flash memory control method
US9940261B2 (en)Zoning of logical to physical data address translation tables with parallelized log list replay
CN104461964B (en)A kind of storage device
US8954656B2 (en)Method and system for reducing mapping table size in a storage device
US12086467B2 (en)Read performance of memory devices
CN102999441A (en)Fine granularity memory access method
US20150120988A1 (en)Method of Accessing Data in Multi-Layer Cell Memory and Multi-Layer Cell Storage Device Using the Same
CN109416666A (en) Cache with compressed data and tags
US20120159040A1 (en)Auxiliary Interface for Non-Volatile Memory System
WO2016107442A1 (en)Method for writing data to solid state drive and solid state drive
CN103942159A (en)Data read-write method and device based on mixed storage device
KR20100104903A (en)Appratus and method for managing dram buffer
CN106354658B (en)A method of it reducing mapping table memory source in mixed-use developments algorithm and occupies
TWI692688B (en)Flash memory controller and associated electronic device
CN102306124A (en)Method for implementing hardware driver layer of Nand Flash chip
CN103838676A (en)Data storage system, data storage method and PCM bridge
CN105278875A (en)Hybrid heterogeneous NAND solid state device
US8423707B2 (en)Data access method for flash memory and storage system and controller using the same
CN107861884B (en)Method for improving cross-page memory address mapping efficiency in NAND flash memory
US10170179B2 (en)Data storage device and operating method for data storage device
CN102520885B (en)Data management system for hybrid hard disk
CN106021159A (en)Logical block address-to-physical block address mapping method for high-capacity solid-state disk
CN105205008A (en)Method for reducing memory resources occupied by log block mapping table in hybrid mapping algorithm
US9727453B2 (en)Multi-level table deltas

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp