CN102831087A - Data reading-writing processing method and device based on mixing memory - Google Patents

Data reading-writing processing method and device based on mixing memory Download PDF

Info

Publication number
CN102831087A
CN102831087A CN2012102642282A CN201210264228A CN102831087A CN 102831087 A CN102831087 A CN 102831087A CN 2012102642282 A CN2012102642282 A CN 2012102642282A CN 201210264228 A CN201210264228 A CN 201210264228A CN 102831087 A CN102831087 A CN 102831087A
Authority
CN
China
Prior art keywords
data
request
read request
writing
read
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
CN2012102642282A
Other languages
Chinese (zh)
Other versions
CN102831087B (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.)
NATIONAL SUPERCOMPUTING CENTER IN SHENZHEN (SHENZHEN CLOUD COMPUTING CENTER)
Original Assignee
NATIONAL SUPERCOMPUTING CENTER IN SHENZHEN (SHENZHEN CLOUD COMPUTING CENTER)
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 NATIONAL SUPERCOMPUTING CENTER IN SHENZHEN (SHENZHEN CLOUD COMPUTING CENTER) filed Critical NATIONAL SUPERCOMPUTING CENTER IN SHENZHEN (SHENZHEN CLOUD COMPUTING CENTER)
Priority to CN201210264228.2A priority Critical patent/CN102831087B/en
Publication of CN102831087A publication Critical patent/CN102831087A/en
Application granted granted Critical
Publication of CN102831087B publication Critical patent/CN102831087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data reading-writing processing method and a data reading-writing processing device based on a mixing memory. The method comprises the following steps: receiving a reading request or a writing request; storing the data corresponding to the reading request stored in a storage device to a phase change memory PCM (Phase Change Memory) of a cache device, or storing the data corresponding to the writing request stored in the storage device to a dynamic random access memory DRAM (Dynamic Random Access Memory) of the cache device; carrying out reading operation on the data corresponding to the reading request stored in the cache device, or carrying out writing operation on the data corresponding to the writing request stored in the cache device. According to the data reading-writing processing method and the data reading-writing processing device, the high-speed access, high capacity and low cost is achieved, the PCM loss is effectively reduced, and the service life of the whole mixing memory is improved.

Description

Data read-write processing method and device based on mixing memory
Technical field
The present invention relates to technical field of computer data storage, specially refer to data read-write processing method and device based on mixing memory.
Background technology
In the cloud epoch, be that computational resource or storage resources are all focused on long-range data center, except the direct stores service of special intended for end consumers, all the other most of storage resources all can be directly in the face of the server among the data center.Along with the extensive growth and the server of mass data are used extensively and profoundly, a lot of important application such as transacter, weather forecast etc. all receive the restriction of bottom main memory and performance of storage system.Make full use of existing memory technology, improving existing main memory and memory system architecture is vital for improving the entire system performance.Solid state hard disc has multiple advantages, but has also that cost is high, capacity is low, writes characteristics such as limited service life.
Summary of the invention
Fundamental purpose of the present invention is that data read-write processing method and the device based on mixing memory that a kind of cost is low, capacity greatly, effectively improves serviceable life is provided.
The present invention proposes a kind of data read-write processing method based on mixing memory, comprises step:
Receive read request or write request;
The phase transition storage PCM of data storage to the buffer memory equipment that the said read request of storing in the memory device is corresponding, or with the said dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device;
The corresponding data of said read request to storing in the said buffer memory equipment are carried out read operation, or the said corresponding data of request of writing of storing in the said buffer memory equipment are carried out write operation.
Preferably, the step of the phase transition storage PCM of said data storage to buffer memory equipment that the said read request of storing in the memory device is corresponding specifically comprises:
Judge the memory location of data in said memory device that said read request is corresponding;
When the memory location of judging the data that said read request is corresponding was said HDD, the data that said read request is corresponding were taken out from said HDD, and are stored to said DRAM;
When the memory location of judging the data that said read request is corresponding was said SSD, the data that said read request is corresponding were taken out from said SSD, and are stored to said PCM.
Preferably, the said data that read request is corresponding are taken out from said HDD, and the step that is stored to said DRAM also comprises before:
Judge whether said DRAM is filled with;
If then that said read request is corresponding data are taken out from said HDD, and are stored to said PCM;
If not, then carry out the data that said read request is corresponding and take out, and be stored to the step of said DRAM from said HDD.
Preferably, said reception read request or write the step of request after also comprise:
Obtain said read request or write the canned data and the visit information of asking corresponding data;
When writing frequency threshold, the data storage that the said read request of storing in the said memory device is corresponding is to said DRAM greater than preset for the write access frequency of the data that the said read request of in judging said memory device, storing is corresponding;
The said read access frequency of writing the corresponding data of request of in judging said memory device, storing is greater than preset when reading frequency threshold, with the said corresponding data storage of request of writing of storing in the said memory device to said PCM.
Preferably, said reception read request or write the step of request after also comprise:
Judge whether store said read request in the said buffer memory equipment or write the corresponding data of request;
If then carry out the corresponding data of said read request of storing in the said buffer memory equipment carried out read operation, or the said data of writing the request correspondence of storing in the said buffer memory equipment are carried out the step of write operation;
If not; Then carry out the phase transition storage PCM of data storage to the buffer memory equipment that the said read request of storing in the memory device is corresponding, or with the said step of writing the dynamic RAM DRAM of corresponding data storage to the buffer memory equipment of request of storing in the memory device.
The present invention also proposes a kind of reading and writing data treating apparatus based on mixing memory, comprising:
The request receiver module is used to receive read request or writes request;
Memory module; The phase transition storage PCM of data storage to the buffer memory equipment that the said read request that is used for memory device is stored is corresponding, or with the said dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device;
Operational module, the corresponding data of said read request that are used for that said buffer memory equipment is stored carry out read operation or the said corresponding data of request of writing of storing in the said buffer memory equipment are carried out write operation.
Preferably, said memory module specifically comprises:
The position judgment submodule is used for judging the memory location of the corresponding data of said read request at said memory device;
First sub module stored is used for when said position judgment submodule judges that the memory location of the data that said read request is corresponding is said HDD, and the data that said read request is corresponding are taken out from said HDD, and are stored to said DRAM;
Second sub module stored is used for when said position judgment submodule judges that the memory location of the data that said read request is corresponding is said SSD, and the data that said read request is corresponding are taken out from said SSD, and are stored to said PCM.
Preferably, said memory module specifically also comprises:
Be filled with the judgement submodule, be used to judge whether said DRAM is filled with;
Said first sub module stored also is used for, and is filled with when judging that submodule judges that said DRAM is filled with when said, and the data that said read request is corresponding are taken out from said HDD, and are stored to said PCM; When said be filled with judge submodule judge said DRAM less than the time, the data that said read request is corresponding are taken out from said HDD, and are stored to said DRAM.
Preferably, said reading and writing data treating apparatus based on mixing memory also comprises:
The information acquisition module is used to obtain said read request or writes the canned data and the visit information of asking corresponding data;
First comparison module, be used for when the write access frequency of judging the data that said read request that said memory device is stored is corresponding greater than preset when writing frequency threshold, the data storage that the said read request of storing in the said memory device is corresponding is to said DRAM;
Second comparison module, be used for when the said read access frequency of writing the corresponding data of request of judging that said memory device is stored greater than preset when reading frequency threshold, with the said corresponding data storage of request of writing of storing in the said memory device to said PCM.
Preferably, said reading and writing data treating apparatus based on mixing memory also comprises:
Judge module is used for judging whether said buffer memory equipment stores said read request or write the corresponding data of request;
Said operational module also is used for; Judge at said judge module and to store said read request in the said buffer memory equipment or during data that the request of writing is corresponding; The corresponding data of said read request to storing in the said buffer memory equipment are carried out read operation, or the said corresponding data of request of writing of storing in the said buffer memory equipment are carried out write operation;
Said memory module also is used for; Judge at said judge module and not store said read request in the said buffer memory equipment or during data that the request of writing is corresponding; The phase transition storage PCM of data storage to the buffer memory equipment that the said read request of storing in the memory device is corresponding, or with the said dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device.
The present invention combines PCM with DRAM, can realize zero access, because PCM has high density, jumbo advantage; Apply it in the buffer memory equipment; Can effectively improve the buffer memory place capacity, and it possesses good extendability, needing under the situation of dilatation; Need not to change in addition chip, cost effectively reduces.In order effectively to reduce the loss of PCM, with reading frequent data storage in PCM, the frequent data of write operation are stored among the DRAM as far as possible, can effectively improve the serviceable life of whole mixing memory.
Description of drawings
Fig. 1 is the process flow diagram of first embodiment that the present invention is based on the data read-write processing method of mixing memory;
Fig. 2 is the process flow diagram of second embodiment that the present invention is based on the data read-write processing method of mixing memory;
Fig. 3 is the process flow diagram of the 3rd embodiment that the present invention is based on the data read-write processing method of mixing memory;
Fig. 4 is the process flow diagram of the 4th embodiment that the present invention is based on the data read-write processing method of mixing memory;
Fig. 5 is the process flow diagram of the 5th embodiment that the present invention is based on the data read-write processing method of mixing memory;
Fig. 6 is the structural representation of first embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory;
Fig. 7 is the structural representation of second embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory;
Fig. 8 is the structural representation of the 3rd embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory;
Fig. 9 is the structural representation of the 4th embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory;
Figure 10 is the structural representation of the 5th embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory.
The realization of the object of the invention, functional characteristics and advantage will combine embodiment, further specify with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Mixing memory of the present invention comprises memory device and buffer memory equipment.Memory device comprises SSD (solid state disk; Solid state hard disc) and HDD (Hard Disk Drive, hard disk drive), since SSD have fast and read, lowly postpone, write characteristics such as loss; Therefore SSD being used for storage reads frequently to write the few data of number of times; Buffer memory equipment comprises DRAM (Dynamic Random Access Memory, dynamic RAM) and PCM (phase change memory, phase transition storage); The PCM capacity is bigger, and the DRAM capacity is less, because the read rate of PCM and DRAM is more or less the same; But there is the loss problem of writing in PCM; Its limited service life, so PCM is more suitable for storing and reads frequent data, writes frequent data and then mainly is stored in DRAM.The present invention has combined the advantage of each storage chip in the mixing memory, has carried out holistic approach and design at aspects such as the built-in function distribution of mixing memory, the layout that reads and writes data and data migtations, and specific embodiment is following.
As shown in Figure 1, Fig. 1 is the process flow diagram of first embodiment that the present invention is based on the data read-write processing method of mixing memory, and the data read-write processing method based on mixing memory that this embodiment mentions comprises:
Step S111 receives read request;
Step S112, the phase transition storage PCM of data storage to the buffer memory equipment that the read request of storing in the memory device is corresponding;
Because existing, PCM writes the loss problem, for prolonging its serviceable life, with reading frequent data storage in PCM.
Step S113 carries out read operation to the corresponding data of read request of storing in the buffer memory equipment.
Carrying out read request when operation, at first with in the data storage in the memory device to the buffer memory equipment, reading of data from buffer memory equipment again.
Step S121 receives the request of writing;
Step S122 is with the dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device;
In order to reduce the loss of PCM, the data that write operation is frequent are stored among the DRAM as far as possible.
Step S123 carries out write operation to the corresponding data of the request of writing of storing in the buffer memory equipment.
When writing solicit operation,, again data corresponding in the buffer memory equipment are carried out write operation at first with in the data storage in the memory device to the buffer memory equipment.
Present embodiment combines PCM with DRAM, can realize zero access, because PCM has high density, jumbo advantage; Apply it in the buffer memory equipment; Can effectively improve the buffer memory place capacity, and it possesses good extendability, needing under the situation of dilatation; Need not to change in addition chip, cost effectively reduces.In order effectively to reduce the loss of PCM, with reading frequent data storage in PCM, the frequent data of write operation are stored among the DRAM as far as possible, can effectively improve the serviceable life of whole mixing memory.
As shown in Figure 2, Fig. 2 is the process flow diagram of second embodiment that the present invention is based on the data read-write processing method of mixing memory.
Step S211 receives read request;
Step S212 judges the memory location of data in memory device that read request is corresponding;
Step S213, when the memory location of judging the data that read request is corresponding was HDD, the data that read request is corresponding were taken out from HDD, and are stored to DRAM;
Because having fast, SSD reads, hangs down the characteristics that postpone, write loss; Mostly the data of in SSD, storing are the data that read operation is frequent, and the frequent data of write operation are stored among the HDD, simultaneously usually; Because there is the loss problem of writing in PCM; Therefore, for prolonging its serviceable life, the data storage that the write operation of storing among the HDD is frequent is in DRAM.
Step S214, when the memory location of judging the data that read request is corresponding was SSD, the data that read request is corresponding were taken out from SSD, and are stored to PCM;
For prolonging its serviceable life, the data storage that the read operation of storing among the SSD is frequent is to PCM.
Step S215 carries out read operation to the corresponding data of read request of storing in the buffer memory equipment.
Present embodiment is followed data pre-fetching from HDD to DRAM, from the data pre-fetching of the SSD overall principle to PCM, can effectively reduce the loss of PCM, improves the serviceable life of PCM, and then the serviceable life of improving whole mixing memory.
As shown in Figure 3, Fig. 3 is the process flow diagram of the 3rd embodiment that the present invention is based on the data read-write processing method of mixing memory.
Step S311 receives read request;
Step S312 judges the memory location of data in memory device that read request is corresponding;
Step S313 when the memory location of judging the data that read request is corresponding is HDD, judges whether DRAM is filled with; If, execution in step S314 then; If deny, then execution in step S315;
When DRAM is full, the data pre-fetching that should be prefetched to DRAM is in PCM.
Step S314, the data that read request is corresponding are taken out from HDD, and are stored to PCM;
Step S315, the data that read request is corresponding are taken out from HDD, and are stored to DRAM;
Step S316, when the memory location of judging the data that read request is corresponding was SSD, the data that read request is corresponding were taken out from SSD, and are stored to PCM;
Step S317 carries out read operation to the corresponding data of read request of storing in the buffer memory equipment.
Present embodiment is followed data pre-fetching from HDD to DRAM; From the data pre-fetching of SSD the overall principle to PCM; But because the PCM capacity is big, favorable expandability; When DRAM has not had space storage data, then can be with the data pre-fetching that should be prefetched to DRAM in PCM, to realize the high capacity demand of whole mixing memory.
As shown in Figure 4, Fig. 4 is the process flow diagram of the 4th embodiment that the present invention is based on the data read-write processing method of mixing memory.
Step S411 receives read request;
Step S412 obtains the canned data and the visit information of the corresponding data of read request;
The former storage device type that canned data comprises data (for example; 0 expression data are from SSD; 1 expression data are from HDD) and buffer memory device type (for example, 0 expression PCM, 1 expression DRAM); Visit information comprises the visit information situation (for example, the read operation frequency counting of data, write operation frequency counting, hit operating frequency counting, miss operating frequency counting etc.) of data.
Step S413 judges whether the write access frequency of the data of the read request correspondence of storing in the memory device writes frequency threshold greater than presetting; If, execution in step S414 then; If deny, then execution in step S415;
The data corresponding for read request should be written among the PCM, but surpass presetly when writing threshold value when the write operation frequency counting of these data, explain that then these data are the frequent data of write operation, and then the trigger data migration is instructed, with this data storage to DRAM.
Step S414, the data storage that the read request of storing in the memory device is corresponding is to DRAM;
Step S415, the phase transition storage PCM of data storage to the buffer memory equipment that the read request of storing in the memory device is corresponding;
Step S416 carries out read operation to the corresponding data of read request of storing in the buffer memory equipment.
Step S421 receives the request of writing;
Step S422 obtains and writes the canned data and the visit information of asking corresponding data;
Step S423, whether the read access frequency of judging the corresponding data of the request of writing of storing in the memory device is greater than the preset frequency threshold of reading; If, execution in step S424 then; If deny, then execution in step S425;
Should be written among the DRAM for writing the corresponding data of request, but surpass presetly when reading threshold value when the read operation frequency counting of these data, explain that then these data are the frequent data of read operation, then the trigger data migration is instructed, with this data storage to PCM.
Step S424, with the corresponding data storage of the request of writing of storing in the memory device to PCM.
Step S425 is with the dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device;
Step S426 carries out write operation to the corresponding data of the request of writing of storing in the buffer memory equipment.
The data layout of each data and visit situation in the present embodiment dynamic monitoring mixing memory comprise the canned data and the visit information of data, and relevant information is written in the visit information table.When carrying out metadata cache, dynamic canned data and the visit information that from the visit information table, obtains data, when data reading and writing counting surpasses appointment reading and writing threshold value, trigger data migration instruction.Present embodiment is followed the frequent data pre-fetching of write operation to DRAM; The frequent data pre-fetching of read operation is to the principle of PCM; The data that simultaneously also can adjust the position to needs among DRAM and the PCM according to data migtation information are layout again; Reduce the loss of PCM to greatest extent, effectively improve the serviceable life of whole mixing memory.
As shown in Figure 5, Fig. 5 is the process flow diagram of the 5th embodiment that the present invention is based on the data read-write processing method of mixing memory.
Step S511 receives read request;
Step S512 judges whether store the corresponding data of read request in the buffer memory equipment; If deny, then execution in step S513; If, execution in step S514 then;
Step S513, the phase transition storage PCM of data storage to the buffer memory equipment that the read request of storing in the memory device is corresponding;
Step S514 carries out read operation to the corresponding data of read request of storing in the buffer memory equipment.
Present embodiment is when carrying out the read request processing; At first in buffer memory equipment, search corresponding data, for example in DRAM, search earlier, if do not find; Then in PCM, search data; If in buffer memory equipment, there are not the corresponding data of read request, then in memory device, search, and with the data extract that finds to PCM.In addition, for a read operation of every completion, then upgrade the visit information of these data; For example its access type is counted; Increase the number of times of a read operation frequency, and be updated to the visit information table, its cache location is carried out rational deployment with actual conditions according to data; Reduce the loss of PCM to greatest extent, effectively improve the serviceable life of whole mixing memory.
Step S521 receives the request of writing;
Step S522 judges whether store the corresponding data of the request write in the buffer memory equipment; If deny, then execution in step S523; If, execution in step S524 then;
Step S523 is with the dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device;
Step S524 carries out write operation to the corresponding data of the request of writing of storing in the buffer memory equipment.
Present embodiment is when writing Request Processing; At first in buffer memory equipment, search corresponding data, for example in DRAM, search earlier, if do not find; Then in PCM, search data; If in buffer memory equipment, write the corresponding data of request, then in memory device, search, and with the data extract that finds to DRAM.In addition, for a read operation of every completion, then upgrade the visit information of these data; For example its access type is counted; Increase the number of times of a write operation frequency, and be updated to the visit information table, its cache location is carried out rational deployment with actual conditions according to data; Reduce the loss of PCM to greatest extent, effectively improve the serviceable life of whole mixing memory.
As shown in Figure 6, Fig. 6 is the structural representation of first embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory, and the reading and writing data treating apparatus based on mixing memory that this embodiment mentions comprises:
Request receiver module 10 is used to receive read request or writes request;
Memory module 20, the phase transition storage PCM of data storage to the buffer memory equipment that the read request that is used for memory device is stored is corresponding, or with the dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device;
Operational module 30, the corresponding data of read request that are used for that buffer memory equipment is stored carry out read operation or the corresponding data of the request of writing of storing in the buffer memory equipment are carried out write operation.
In the present embodiment, write the loss problem because PCM exists, for prolonging its serviceable life, with reading frequent data storage in PCM, the data that write operation is frequent are stored among the DRAM as far as possible.Memory module 20 is when carrying out the read request operation, at first with in the data storage in the memory device to the buffer memory equipment, again by operational module 30 reading of data from buffer memory equipment; When writing solicit operation,, carry out write operation by data corresponding in 30 pairs of buffer memory equipment of operational module at first with in the data storage in the memory device to the buffer memory equipment.Present embodiment combines PCM with DRAM, can realize zero access, because PCM has high density, jumbo advantage; Apply it in the buffer memory equipment; Can effectively improve the buffer memory place capacity, and it possesses good extendability, needing under the situation of dilatation; Need not to change in addition chip, cost effectively reduces.In order effectively to reduce the loss of PCM, with reading frequent data storage in PCM, the frequent data of write operation are stored among the DRAM as far as possible, can effectively improve the serviceable life of whole mixing memory.
As shown in Figure 7, Fig. 7 is the structural representation of second embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory.
Memory module 20 specifically comprises:
Position judgment submodule 21 is used for judging the memory location of the corresponding data of read request at memory device;
First sub module stored 22 is used for when position judgment submodule 21 judges that the memory location of the data that read request is corresponding is HDD, and the data that read request is corresponding are taken out from HDD, and are stored to DRAM;
Second sub module stored 23 is used for when position judgment submodule 21 judges that the memory location of the data that read request is corresponding is SSD, and the data that read request is corresponding are taken out from SSD, and are stored to PCM.
In the present embodiment, read owing to SSD has fast, hang down delay, write loss, mostly the data of in SSD, storing are the data that read operation is frequent; The frequent data of write operation are stored among the HDD usually, simultaneously, because there is the loss problem of writing in PCM; Therefore; For prolonging its serviceable life, first sub module stored 22 data storage that the write operation of storing among the HDD is frequent is in DRAM, and second sub module stored 23 data storage that the read operation of storing among the SSD is frequent is to PCM.Present embodiment is followed data pre-fetching from HDD to DRAM, from the data pre-fetching of the SSD overall principle to PCM, can effectively reduce the loss of PCM, improves the serviceable life of PCM, and then the serviceable life of improving whole mixing memory.
As shown in Figure 8, Fig. 8 is the structural representation of the 3rd embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory.
Memory module 20 specifically also comprises:
Be filled with and judge submodule 24, be used to judge whether DRAM is filled with;
First sub module stored 22 also is used for, and when being filled with when judging that submodule 24 judges that DRAM are filled with, the data that read request is corresponding are taken out from HDD, and are stored to PCM; When be filled with judge submodule 24 judge DRAM less than the time, the data that read request is corresponding are taken out from HDD, and are stored to DRAM.
Present embodiment is followed data pre-fetching from HDD to DRAM; From the data pre-fetching of SSD the overall principle to PCM; But because the PCM capacity is big, favorable expandability; When DRAM had not had space storage data, then first sub module stored 22 can be with the data pre-fetching that should be prefetched to DRAM in PCM, to realize the high capacity demand of whole mixing memory.
As shown in Figure 9, Fig. 9 is the structural representation of the 4th embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory.
Reading and writing data treating apparatus based on mixing memory also comprises:
Information acquisition module 40 is used to obtain read request or writes the canned data and the visit information of asking corresponding data;
First comparison module 51, be used for when the write access frequency of judging the data that read request that memory device is stored is corresponding greater than preset when writing frequency threshold, the data storage that the read request of storing in the memory device is corresponding is to DRAM;
Second comparison module 52, be used for when the read access frequency of judging the corresponding data of the request of writing that memory device is stored greater than preset when reading frequency threshold, with the corresponding data storage of the request of writing of storing in the memory device to PCM
In the present embodiment; Canned data comprises the former storage device type (for example, 0 expression data are from SSD, and 1 expression data are from HDD) of data and the buffer memory device type (for example; 0 expression PCM; 1 expression DRAM), visit information comprises the visit information situation (for example, the read operation frequency counting of data, write operation frequency counting, hit operating frequency counting, miss operating frequency counting etc.) of data.The data corresponding for read request should be written among the PCM; To judge that the write operation frequency counting of these data surpasses preset when writing threshold value but when first comparison module 51; Explain that then these data are the frequent data of write operation; Then trigger data migration instruction, first comparison module 51 with this data storage to DRAM.Simultaneously; Should be written among the DRAM for writing the corresponding data of request; To judge that the read operation frequency counting of these data surpasses preset when reading threshold value but when second comparison module 52; Explain that then these data are the frequent data of read operation, then trigger data migration instruction, second comparison module 52 with this data storage to PCM.In addition, the data layout and the visit situation of data in the present embodiment dynamic monitoring mixing memory comprise the canned data and the visit information of data, and relevant information is written in the visit information table.When carrying out metadata cache, dynamic canned data and the visit information that from the visit information table, obtains data, when data reading and writing counting surpassed appointment reading and writing threshold value, the trigger data filtrator sent the data migtation instruction.Present embodiment is followed the frequent data pre-fetching of write operation to DRAM; The frequent data pre-fetching of read operation is to the principle of PCM; The data that simultaneously also can adjust the position to needs among DRAM and the PCM according to data migtation information are layout again; Reduce the loss of PCM to greatest extent, effectively improve the serviceable life of whole mixing memory.
Shown in figure 10, Figure 10 is the structural representation of the 5th embodiment that the present invention is based on the reading and writing data treating apparatus of mixing memory.
Reading and writing data treating apparatus based on mixing memory also comprises:
Judge module 60 is used for judging whether buffer memory equipment stores read request or write the corresponding data of request;
Operational module 30 also is used for; When in judge module judgement buffer memory equipment, storing read request or writing the data of request correspondence; The corresponding data of read request to storing in the buffer memory equipment are carried out read operation, or the corresponding data of the request of writing of storing in the buffer memory equipment are carried out write operation;
Memory module 20 also is used for; When in judge module judgement buffer memory equipment, not storing read request or writing the data of request correspondence; The phase transition storage PCM of data storage to the buffer memory equipment that the read request of storing in the memory device is corresponding, or with the dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device.
Present embodiment is when carrying out read request or writing Request Processing; At first in buffer memory equipment, search corresponding data, for example in DRAM, search earlier, if do not find; Then in PCM, search data; If in buffer memory equipment, there are not corresponding data, then in memory device, search, and with the data extract that finds to buffer memory equipment.In addition, for a read operation of every completion or write operation, then upgrade the visit information of these data; For example its access type is counted; Increase the number of times of single job frequency, and be updated to the visit information table, its cache location is carried out rational deployment with actual conditions according to data; Reduce the loss of PCM to greatest extent, effectively improve the serviceable life of whole mixing memory.
More than be merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. the data read-write processing method based on mixing memory is characterized in that, comprises step:
Receive read request or write request;
The phase transition storage PCM of data storage to the buffer memory equipment that the said read request of storing in the memory device is corresponding, or with the said dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device;
The corresponding data of said read request to storing in the said buffer memory equipment are carried out read operation, or the said corresponding data of request of writing of storing in the said buffer memory equipment are carried out write operation.
2. the data read-write processing method based on mixing memory according to claim 1 is characterized in that, the step of the phase transition storage PCM of said data storage to buffer memory equipment that the said read request of storing in the memory device is corresponding specifically comprises:
Judge the memory location of data in said memory device that said read request is corresponding;
When the memory location of judging the data that said read request is corresponding was said HDD, the data that said read request is corresponding were taken out from said HDD, and are stored to said DRAM;
When the memory location of judging the data that said read request is corresponding was said SSD, the data that said read request is corresponding were taken out from said SSD, and are stored to said PCM.
3. the data read-write processing method based on mixing memory according to claim 2 is characterized in that, the said data that read request is corresponding are taken out from said HDD, and the step that is stored to said DRAM also comprises before:
Judge whether said DRAM is filled with;
If then that said read request is corresponding data are taken out from said HDD, and are stored to said PCM;
If not, then carry out the data that said read request is corresponding and take out, and be stored to the step of said DRAM from said HDD.
4. according to each described data read-write processing method of claim 1 to 3, it is characterized in that based on mixing memory, said reception read request or write the step of request after also comprise:
Obtain said read request or write the canned data and the visit information of asking corresponding data;
When writing frequency threshold, the data storage that the said read request of storing in the said memory device is corresponding is to said DRAM greater than preset for the write access frequency of the data that the said read request of in judging said memory device, storing is corresponding;
The said read access frequency of writing the corresponding data of request of in judging said memory device, storing is greater than preset when reading frequency threshold, with the said corresponding data storage of request of writing of storing in the said memory device to said PCM.
5. the data read-write processing method based on mixing memory according to claim 4 is characterized in that, said reception read request or write the step of request after also comprise:
Judge whether store said read request in the said buffer memory equipment or write the corresponding data of request;
If then carry out the corresponding data of said read request of storing in the said buffer memory equipment carried out read operation, or the said data of writing the request correspondence of storing in the said buffer memory equipment are carried out the step of write operation;
If not; Then carry out the phase transition storage PCM of data storage to the buffer memory equipment that the said read request of storing in the memory device is corresponding, or with the said step of writing the dynamic RAM DRAM of corresponding data storage to the buffer memory equipment of request of storing in the memory device.
6. the reading and writing data treating apparatus based on mixing memory is characterized in that, comprising:
The request receiver module is used to receive read request or writes request;
Memory module; The phase transition storage PCM of data storage to the buffer memory equipment that the said read request that is used for memory device is stored is corresponding, or with the said dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device;
Operational module, the corresponding data of said read request that are used for that said buffer memory equipment is stored carry out read operation or the said corresponding data of request of writing of storing in the said buffer memory equipment are carried out write operation.
7. the reading and writing data treating apparatus based on mixing memory according to claim 6 is characterized in that said memory module specifically comprises:
The position judgment submodule is used for judging the memory location of the corresponding data of said read request at said memory device;
First sub module stored is used for when said position judgment submodule judges that the memory location of the data that said read request is corresponding is said HDD, and the data that said read request is corresponding are taken out from said HDD, and are stored to said DRAM;
Second sub module stored is used for when said position judgment submodule judges that the memory location of the data that said read request is corresponding is said SSD, and the data that said read request is corresponding are taken out from said SSD, and are stored to said PCM.
8. the reading and writing data treating apparatus based on mixing memory according to claim 7 is characterized in that said memory module specifically also comprises:
Be filled with the judgement submodule, be used to judge whether said DRAM is filled with;
Said first sub module stored also is used for, and is filled with when judging that submodule judges that said DRAM is filled with when said, and the data that said read request is corresponding are taken out from said HDD, and are stored to said PCM; When said be filled with judge submodule judge said DRAM less than the time, the data that said read request is corresponding are taken out from said HDD, and are stored to said DRAM.
9. according to each described reading and writing data treating apparatus of claim 6 to 8, it is characterized in that, also comprise based on mixing memory:
The information acquisition module is used to obtain said read request or writes the canned data and the visit information of asking corresponding data;
First comparison module, be used for when the write access frequency of judging the data that said read request that said memory device is stored is corresponding greater than preset when writing frequency threshold, the data storage that the said read request of storing in the said memory device is corresponding is to said DRAM;
Second comparison module, be used for when the said read access frequency of writing the corresponding data of request of judging that said memory device is stored greater than preset when reading frequency threshold, with the said corresponding data storage of request of writing of storing in the said memory device to said PCM.
10. the reading and writing data treating apparatus based on mixing memory according to claim 9 is characterized in that, also comprises:
Judge module is used for judging whether said buffer memory equipment stores said read request or write the corresponding data of request;
Said operational module also is used for; Judge at said judge module and to store said read request in the said buffer memory equipment or during data that the request of writing is corresponding; The corresponding data of said read request to storing in the said buffer memory equipment are carried out read operation, or the said corresponding data of request of writing of storing in the said buffer memory equipment are carried out write operation;
Said memory module also is used for; Judge at said judge module and not store said read request in the said buffer memory equipment or during data that the request of writing is corresponding; The phase transition storage PCM of data storage to the buffer memory equipment that the said read request of storing in the memory device is corresponding, or with the said dynamic RAM DRAM that writes corresponding data storage to the buffer memory equipment of request that stores in the memory device.
CN201210264228.2A 2012-07-27 2012-07-27 Data read-write processing method based on mixing memory and device Active CN102831087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210264228.2A CN102831087B (en) 2012-07-27 2012-07-27 Data read-write processing method based on mixing memory and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210264228.2A CN102831087B (en) 2012-07-27 2012-07-27 Data read-write processing method based on mixing memory and device

Publications (2)

Publication Number Publication Date
CN102831087A true CN102831087A (en) 2012-12-19
CN102831087B CN102831087B (en) 2016-05-11

Family

ID=47334232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210264228.2A Active CN102831087B (en) 2012-07-27 2012-07-27 Data read-write processing method based on mixing memory and device

Country Status (1)

Country Link
CN (1) CN102831087B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455283A (en) * 2013-08-19 2013-12-18 华中科技大学 Hybrid storage system
CN103810113A (en) * 2014-01-28 2014-05-21 华中科技大学 Fusion memory system of nonvolatile memory and dynamic random access memory
CN103927203A (en) * 2014-03-26 2014-07-16 上海新储集成电路有限公司 Computer system and control method
CN104714753A (en) * 2013-12-12 2015-06-17 中兴通讯股份有限公司 Data access and storage method and device
CN104834606A (en) * 2015-01-07 2015-08-12 浪潮(北京)电子信息产业有限公司 Heterogeneous confusion hierarchical memory device
WO2015169245A1 (en) * 2014-05-09 2015-11-12 华为技术有限公司 Data caching method, cache and computer system
CN105739921A (en) * 2016-01-26 2016-07-06 上海新储集成电路有限公司 Cache structure and method of hybrid hard drive
CN105808455A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Memory access method, storage-class memory and computer system
CN106569732A (en) * 2015-10-12 2017-04-19 中兴通讯股份有限公司 Data migration method and device
CN106909323A (en) * 2017-03-02 2017-06-30 山东大学 The caching of page method of framework is hosted suitable for DRAM/PRAM mixing and mixing hosts architecture system
CN107153511A (en) * 2016-03-03 2017-09-12 三星电子株式会社 Memory node, mixing memory controller and the method for controlling mixing memory group
CN108920098A (en) * 2018-06-20 2018-11-30 郑州云海信息技术有限公司 A kind of storage management system collects method, system and the equipment of information
CN109741777A (en) * 2018-12-28 2019-05-10 上海新储集成电路有限公司 A kind of memory for improving speed and keeping data time
CN110727405A (en) * 2019-10-10 2020-01-24 广州华多网络科技有限公司 Data processing method and device, electronic equipment and computer readable medium
CN114038491A (en) * 2021-10-14 2022-02-11 西安紫光国芯半导体有限公司 3D dynamic storage device, data reading method, data writing method and memory equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364474A (en) * 2011-11-17 2012-02-29 中国科学院计算技术研究所 Metadata storage system for cluster file system and metadata management method
US20120117304A1 (en) * 2010-11-05 2012-05-10 Microsoft Corporation Managing memory with limited write cycles in heterogeneous memory systems
CN102508787A (en) * 2011-11-29 2012-06-20 清华大学 System and method for memory allocation of composite memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117304A1 (en) * 2010-11-05 2012-05-10 Microsoft Corporation Managing memory with limited write cycles in heterogeneous memory systems
CN102364474A (en) * 2011-11-17 2012-02-29 中国科学院计算技术研究所 Metadata storage system for cluster file system and metadata management method
CN102508787A (en) * 2011-11-29 2012-06-20 清华大学 System and method for memory allocation of composite memory

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
廖学良,白石,朱龙云: "一种自适应数据布局的混合硬盘结构", 《中国科技论文》 *

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455283B (en) * 2013-08-19 2016-01-20 华中科技大学 A kind of mixing storage system
CN103455283A (en) * 2013-08-19 2013-12-18 华中科技大学 Hybrid storage system
CN104714753A (en) * 2013-12-12 2015-06-17 中兴通讯股份有限公司 Data access and storage method and device
CN103810113A (en) * 2014-01-28 2014-05-21 华中科技大学 Fusion memory system of nonvolatile memory and dynamic random access memory
CN103927203A (en) * 2014-03-26 2014-07-16 上海新储集成电路有限公司 Computer system and control method
CN103927203B (en) * 2014-03-26 2018-06-26 上海新储集成电路有限公司 A kind of computer system and control method
US10241919B2 (en) 2014-05-09 2019-03-26 Huawei Technologies Co., Ltd. Data caching method and computer system
WO2015169245A1 (en) * 2014-05-09 2015-11-12 华为技术有限公司 Data caching method, cache and computer system
CN105808455A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Memory access method, storage-class memory and computer system
US10223273B2 (en) 2014-12-31 2019-03-05 Huawei Technologies Co., Ltd. Memory access method, storage-class memory, and computer system
CN105808455B (en) * 2014-12-31 2020-04-28 华为技术有限公司 Memory access method, storage-class memory and computer system
CN104834606A (en) * 2015-01-07 2015-08-12 浪潮(北京)电子信息产业有限公司 Heterogeneous confusion hierarchical memory device
CN106569732A (en) * 2015-10-12 2017-04-19 中兴通讯股份有限公司 Data migration method and device
CN106569732B (en) * 2015-10-12 2021-04-20 中兴通讯股份有限公司 Data migration method and device
CN105739921A (en) * 2016-01-26 2016-07-06 上海新储集成电路有限公司 Cache structure and method of hybrid hard drive
CN107153511A (en) * 2016-03-03 2017-09-12 三星电子株式会社 Memory node, mixing memory controller and the method for controlling mixing memory group
CN106909323B (en) * 2017-03-02 2020-03-10 山东大学 Page caching method suitable for DRAM/PRAM mixed main memory architecture and mixed main memory architecture system
CN106909323A (en) * 2017-03-02 2017-06-30 山东大学 The caching of page method of framework is hosted suitable for DRAM/PRAM mixing and mixing hosts architecture system
CN108920098A (en) * 2018-06-20 2018-11-30 郑州云海信息技术有限公司 A kind of storage management system collects method, system and the equipment of information
CN109741777A (en) * 2018-12-28 2019-05-10 上海新储集成电路有限公司 A kind of memory for improving speed and keeping data time
CN110727405A (en) * 2019-10-10 2020-01-24 广州华多网络科技有限公司 Data processing method and device, electronic equipment and computer readable medium
CN114038491A (en) * 2021-10-14 2022-02-11 西安紫光国芯半导体有限公司 3D dynamic storage device, data reading method, data writing method and memory equipment

Also Published As

Publication number Publication date
CN102831087B (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN102831087A (en) Data reading-writing processing method and device based on mixing memory
CN102831088A (en) Data migration method and device based on mixing memory
US11586441B2 (en) Method and apparatus for virtualizing the micro-op cache
CN102662868B (en) For the treatment of dynamic group associative cache device and the access method thereof of device
CN102819497B (en) A kind of memory allocation method, Apparatus and system
CN104809179B (en) The device and method for accessing Hash table
EP2397946A1 (en) Storage system using a rapid storage device as a cache
KR101121592B1 (en) Processing apparatus with burst read write operations
CN105677580A (en) Method and device for accessing cache
CN104995608A (en) Method, apparatus and program product to save and restore system memory management unit (mmu) contexts
US20150143045A1 (en) Cache control apparatus and method
CN102859504B (en) Copy the method and system of data and obtain the method for data trnascription
CN103942159A (en) Data read-write method and device based on mixed storage device
CN105897859B (en) Storage system
CN105446665A (en) Computer storage acceleration system and optimization method thereof
KR101893966B1 (en) Memory management method and device, and memory controller
CN103744611A (en) Computer system based on solid state disc as cache and cache accelerating method
KR20160060550A (en) Page cache device and method for efficient mapping
JP2015505623A (en) Computer-implemented process, computer program product, and apparatus for managing a staging area
CN103076992A (en) Memory data buffering method and device
CN102063386B (en) Cache management method of single-carrier multi-target cache system
CN109918380A (en) Data processing method, device, storage medium and electronic equipment
CN109219804A (en) Nonvolatile memory access method, device and system
US20100005265A1 (en) Method for isolating objects in memory region
CN109478164B (en) System and method for storing cache location information for cache entry transfer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant