CN100492323C - Method and apparatus for protecting caching content and caching controller thereof - Google Patents
Method and apparatus for protecting caching content and caching controller thereof Download PDFInfo
- Publication number
- CN100492323C CN100492323C CNB2007101215725A CN200710121572A CN100492323C CN 100492323 C CN100492323 C CN 100492323C CN B2007101215725 A CNB2007101215725 A CN B2007101215725A CN 200710121572 A CN200710121572 A CN 200710121572A CN 100492323 C CN100492323 C CN 100492323C
- Authority
- CN
- China
- Prior art keywords
- data
- backup
- subregion
- partition
- data partition
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses a Cache controller, and a device and a method for protecting the content needing buffering the storage. In the present invention, the Cache can be divided into a data subarea and a backup subarea; the data needing buffering the storage is stored in the data subarea; the backup information of the data stored in the data subarea is saved to the backup subarea; when the data in the data subarea cannot be read, the data can be obtained according to the backup information in the backup subarea. The Cache controller of the present invention includes a data storage processing unit and a data reading processing unit. The device of the present invention includes the Cache and the Cache controller. The present invention improves the reliability that using the Cache to store data, and improves the business service quality.
Description
Technical field
The present invention relates to caching technology, particularly relate to method and apparatus and cache controller that buffer memory (Cache) content is protected.
Background technology
Along with the high speed development of infotech, the network storage control system of operational data storage has appearred providing at present.Fig. 1 is the structural representation of network storage control system.Referring to Fig. 1, mainly comprise the host-processor of disk array and execution read-write operation in the network storage control system.In addition, because the frequency of operation of host-processor is much larger than the frequency of operation of disk array, therefore, in order to improve the efficient of reading and writing data, also comprise cache controller and the Cache of frequency of operation between host-processor and disk array in the network storage control system.
In network storage control system, the One's name is legion of disk array.In order to guarantee reading and writing data of different disk array confusion can not take place; at present; usually can divide the storage space of Cache; make each disk array that corresponding Cache space all be arranged; like this; in the Cache space that all is buffered in this disk array correspondence that reads and writes data of a disk array, what guaranteed that the different disk array reads and writes data carries out smoothly.
Yet; at present; with after metadata cache is in Cache; can not carry out any protection to the content of preserving among the Cache handles; like this, when faults such as a part of Cache space among the Cache is damaged, the content in this portion C ache space then can't be read; thereby reduced the reliability of utilizing Cache storage data, reduced QoS.
Summary of the invention
In view of this; one object of the present invention is to provide a kind of method that cache contents is protected; another purpose of the present invention is to provide a kind of cache controller; a further object of the present invention is to provide a kind of buffer memory; another object of the present invention is to provide a kind of device that cache contents is protected, so that the data of preserving among the Cache are protected.
In order to achieve the above object, technical scheme of the present invention is achieved in that
A kind of method that cache contents is protected, wherein buffer memory Cache is divided at least one data partition and at least one backup subregion, and this method comprises:
Need data in buffer be saved in the data partition;
The backup information of the data of storing in the data partition is saved in the backup subregion;
After the data in the data partition can't read, obtain this data according to the backup information in the backup subregion,
Wherein, Cache being divided into data partition comprises with the backup subregion:
Process A, according to the quantity of the shared veneer of Cache, each veneer is divided into the data partition of one or more physical significances and the backup subregion of one or more physical significances; And/or,
Process B, for each shared veneer of Cache, the complete storage space of this veneer is divided into the data partition of one or more logical meanings and the backup subregion of one or more logical meanings.
A kind of cache controller comprises:
Data storage processing unit is used for the need data in buffer is saved in data partition, and the backup information of the data of storing in the data partition is saved in the backup subregion;
Data reading processing unit is used for from the data partition reading of data, after the data in the data partition can't read, obtains this data according to the backup information in the backup subregion;
The subregion division unit is used for buffer memory Cache is divided at least one data partition and at least one backup subregion,
Wherein, the implementation structure of subregion division unit comprises:
Structure one, described subregion division unit comprise:
Veneer quantity is determined subelement, is used for the quantity of the shared veneer of definite Cache;
Divide and carry out subelement, be used for determining the determined quantity of subelement, each veneer is divided into the data partition of one or more physical significances and the backup subregion of one or more physical significances according to veneer quantity; And/or,
Structure two, described subregion division unit comprise:
Subelement is determined in the veneer space, is used for the storage space of each shared veneer of definite Cache;
Divide and carry out subelement, be used for determining the storage space of determined each veneer of subelement, the complete storage space of each veneer is divided into the data partition of one or more logical meanings and the backup subregion of one or more logical meanings according to the veneer space.
A kind of device that cache contents is protected comprises Cache and cache controller of the present invention.
This shows, in the present invention, because Cache is divided into data partition and backup subregion, therefore can utilize data partition among the Cache to realize the storage of data, utilize backup subregion among the Cache to realize backup simultaneously to data, like this, when faults such as the Cache space of a certain data partition among the Cache is damaged, though the content in the Cache space of this data partition can't be read, but, can utilize the backup subregion to obtain this data, therefore, improve the reliability of utilizing Cache storage data, improved QoS.
Description of drawings
Fig. 1 is the structural representation of network storage control system.
Fig. 2 is the process flow diagram that realization is protected cache contents in one embodiment of the invention.
Fig. 3 is a kind of implementation synoptic diagram of the backup subregion of the data partition of physical significance in one embodiment of the invention and physical significance.
Fig. 4 is a kind of implementation synoptic diagram of the backup subregion of the data partition of logical meaning in one embodiment of the invention and logical meaning.
Fig. 5 is the another kind of implementation synoptic diagram of the backup subregion of the data partition of physical significance in one embodiment of the invention and physical significance.
Fig. 6 is the another kind of implementation synoptic diagram of the backup subregion of the data partition of logical meaning in one embodiment of the invention and logical meaning.
Fig. 7 is the inner structure synoptic diagram of cache controller in a preferred embodiment of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with drawings and the specific embodiments.
The present invention proposes a kind of method that cache contents is protected.This method comprises: Cache is divided into data partition and backup subregion; Need data in buffer be saved in the data partition; The backup information of the data of storing in the data partition is saved in the backup subregion; After the data in the data partition can't read, obtain this data according to the backup information in the backup subregion.
In the present invention, the mode of dividing data subregion and backup subregion can have multiple, such as being that granularity is divided each subregion with the veneer, and/or be that granularity is divided each subregion etc. with the Cache space of setting size in the veneer, describe specific implementation process of the present invention with next in detail with a specific embodiment.
Fig. 2 is the process flow diagram that realization is protected cache contents in one embodiment of the invention.Referring to Fig. 2, this process specifically may further comprise the steps:
Step 201:, each veneer is divided into the data partition of one or more physical significances and the backup subregion of one or more physical significances according to the quantity of the shared veneer of Cache.
In the business realizing of reality, the fault such as may be damaged of a veneer in shared each veneer of Cache, all data that cause storing in this veneer can't be read.At this kind situation; in order to protect to all data of storing in each veneer; after making that data in the veneer can't be read; can from other veneers, obtain this data; in this step 201, go out the data partition of physical significance and the backup subregion of physical significance from the angular divisions of veneer.
Step 202:, the complete storage space of this veneer is divided into the data partition of one or more logical meanings and the backup subregion of one or more logical meanings for each shared veneer of Cache.
In the business realizing of reality, a part of Cache space in shared any one veneer of Cache fault such as may be damaged, the data that cause storing in this portion C ache space can't be read, and other partial C ache space is normal in this veneer, can reading of data.At this kind situation; in order to protect to each the portion C ache space in each veneer; after making that the data in a part of Cache space can't be read in the veneer; can from this veneer, obtain this data in other partial C ache space; in this step 202, can go out the data partition of logical meaning and the backup subregion of logical meaning from the angular divisions in veneer Cache space.
Step 203: the corresponding backup subregion of a data subregion is set.
Here, if divided the data partition of physical significance and the backup subregion of physical significance, so, in this step, it is the backup subregion that the corresponding physical significance of data partition of a physical significance is set, that is to say, corresponding one by one between the backup subregion of the data partition of physical significance and physical significance.Such as, referring to Fig. 3, the shared veneer of Cache is that veneer 1, veneer 2.... are up to veneer 6, so, processing by above-mentioned steps 201 and this step 203, then veneer 1, veneer 2 and veneer 3 wherein can be set to the data partition of a physical significance respectively, and, veneer 4, veneer 5 and veneer 6 are set to correspond respectively to the backup subregion of the physical significance of veneer 1, veneer 2 and veneer 3.
Equally, if divided the data partition of logical meaning and the backup subregion of logical meaning, so, in this step, it is the backup subregion that the corresponding logical meaning of data partition of a logical meaning is set, that is to say, corresponding one by one between the backup subregion of the data partition of logical meaning and logical meaning.Such as, referring to Fig. 4, the complete Cache space of the veneer that Cache is shared is 6KB, so, processing by above-mentioned steps 202 and this step 203, the storage unit that then the 6KB storage space of this veneer can be divided into 6 sizes be 1KB, wherein storage unit 1,2 and 3 Cache space are set to the data partition 1,2 and 3 of logical meaning respectively, and storage unit 4,5 and 6 Cache space are set to correspond respectively to the data partition 1,2 of logical meaning and the backup subregion of 3 logical meaning.
Need to prove that above-mentioned steps 201 is to the processing of step 203, can be after cache controller and Cache start, and is carried out by cache controller, i.e. the processing procedure that can be divided and be provided with to the step 203 by cache controller execution in step 201.Perhaps, also can before cache controller and Cache start, carry out in advance by office terminal or other equipment, promptly can by office terminal or other equipment execution in step 201 to the step 203 division and the processing procedure of setting.
Step 204: the data that needs are cached among the Cache are saved in each data partition.
Here, in the time will needing data in buffer to write shared each veneer of Cache, if divided the data partition and the backup subregion of physical significance, so, in this step, only will need data in buffer to be saved in the veneer as the data partition of physical significance.Such as, referring to Fig. 3, in this step, only will need data in buffer to be saved in veneer 1, veneer 2 and the veneer 3.
And, in the time will needing data in buffer to write shared any one veneer of Cache, if divided the data partition and the backup subregion of logical meaning, so, in this step, only will need data in buffer to be saved in the Cache space of the data partition of counterlogic meaning.Such as, referring to Fig. 4, in this step, the data that only needs are cached to veneer are saved in the storage unit 1,2 of this veneer and 3 Cache space.
Step 205: be saved in after the data of storing in the data partition are duplicated in the backup subregion.
Here, because the corresponding backup subregion of a data subregion is set in step 203, that is to say, the data partition of each storage data all has proprietary backup subregion, therefore, when carrying out the back-up processing of this step, can duplicate the data of storing in each data partition, the data of duplicating are saved in the backup subregion of this data partition correspondence as backup information.
Particularly, if divided the data partition and the backup subregion of physical significance, so, in this step, the data of storing in the data partition with physical significance are duplicated, and the data of duplicating are saved in the backup subregion of data partition corresponding physical meaning of this physical significance.Such as, referring to Fig. 3, data are saved in as in the veneer 1 of the data partition of physical significance the time, can duplicate these data, and the data of duplicating are saved in the veneer 4 as the backup subregion of physical significance of veneer 1 correspondence.
And if divided the data partition and the backup subregion of logical meaning, so, in this step, also the data of storing in the data partition with logical meaning are saved in the backup subregion of corresponding logical meaning.Such as, referring to Fig. 4, data are saved in veneer as the Cache space of the storage unit 1 of the data partition of logical meaning the time, can duplicate these data, the data of duplicating are saved in the Cache space of the storage unit 4 of corresponding backup subregion as logical meaning.
Step 206: after the data in the data partition can't read, directly from the backup subregion, obtain this data.
Here, if the data partition as physical significance is after reasons such as a veneer breaks down cause data to read, then can be that another veneer obtains data according to the backup subregion of its corresponding physical meaning.Such as, referring to Fig. 3, the data in the data partition of a physical significance such as the veneer 1 can't read, because the data backup in the veneer 1 is in the veneer 4 at the backup subregion of physical significance, therefore, can directly obtain data from veneer 4.
If one as the data partition of logical meaning promptly in veneer a storage unit of a part of Cache space correspondence break down etc. after reason causes this portion C ache spatial data to read, then can be that the Cache space of another storage unit obtains data according to the backup subregion of its corresponding logical meaning.Such as, referring to Fig. 4, because the data backup in the veneer in the Cache space of the data partition of logical meaning such as storage unit 1 is in the Cache space of storage unit 4 at the backup subregion of logical meaning, therefore, when can't after the Cache space reading of data of the storage unit 1 of veneer, then can from the Cache space of storage unit 4, directly obtaining these data.
Need to prove, in above-mentioned steps 203, step 205 and step 206, be that the corresponding backup subregion of a data subregion is set, that is to say, each data partition all has proprietary backup subregion, and, the mode that adopts direct copy data to store the backup subregion into and directly from the backup subregion, read.
The process of above-mentioned steps 203, step 205 and step 206 also can replace with utilizes the implementation procedure of setting function algorithm.Specifically,
The step 203 of substitute mode comprises: in order to save veneer quantity or the veneer Cache space that the backup section post takies, a plurality of data partitions can be set belong to a data partition group, and the corresponding backup subregion of a data partition group is set.
If divided the data partition and the backup subregion of physical significance, so, referring to Fig. 5, such as the shared veneer of Cache is veneer 1, veneer 2.... is up to veneer 6, then can being provided with wherein, two data partition veneer 1 and veneers 2 as physical significance belong to a data partition group 1, backup subregion-the veneer 3 of data partition group 1 correspondence as physical significance is set, and, setting wherein other two data partition veneer 4 and veneers 5 as physical significance belongs to a data partition group 2, and the backup subregion-veneer 6 of data partition group 2 correspondences as physical significance is set.
If divided the data partition and the backup subregion of logical meaning, so, referring to Fig. 6, complete Cache space such as a shared veneer of Cache is 6KB, the storage unit that the 6KB storage space of this veneer can be divided into 6 sizes be 1KB, be provided with wherein two and belong to a data partition group 11 as the data partition of logical meaning such as the Cache space of storage unit 1 and 2, data partition group 11 correspondences are set as the backup subregion of logical meaning such as the Cache space of storage unit 3, be provided with wherein in addition two and belong to a data partition group 12, the Cache space of data partition group 12 correspondences as the backup subregion-storage unit 6 of logical meaning is set as the data partition of logical meaning such as the Cache space of storage unit 4 and 5.
The step 205 of substitute mode comprises: the data of all data partitions storage in the data partition group are set the algorithm process of function, the data after handling are saved in the backup subregion of this data partition group correspondence as backup information.
If divided the data partition and the backup subregion of physical significance, so, referring to Fig. 5, such as, be that veneer 1 and veneer 2 belong to data partition group 1 as the data partition of physical significance, the backup subregion of its corresponding physical meaning is a veneer 3, therefore, can set the algorithm process of function, the data after handling are saved in the veneer 3 data of storage in veneer 1 and the veneer 2, corresponding funtcional relationship expression formula is: veneer 3 data=g (veneer 1 data, veneer 2 data).
If divided the data partition and the backup subregion of logical meaning, so, referring to Fig. 6, such as, in a veneer, as the data partition of logical meaning is that the Cache space of storage unit 1 and storage unit 2 belongs to data partition group 11, the backup subregion of the logical meaning that it is corresponding is the Cache space of storage unit 3, therefore, the data of storing in can the Cache space to storage unit 1 and storage unit 2 are set the algorithm process of function, data after handling are saved in the Cache space of storage unit 3, and corresponding funtcional relationship expression formula is: storage unit 3 data=F (storage unit 1 data, storage unit 2 data).
In the step 205 of substitute mode, the algorithm of employed setting function can be set according to actual business requirement, such as, can be parity arithmetic, XOR algorithm etc., and, can be different to the function algorithm that different data partition groups is set, such as, the function algorithm g that uses when data partition group 1 is carried out back-up processing is XOR, the function algorithm F that uses when data partition group 11 is carried out back-up processing is parity checking etc.
The step 206 of substitute mode comprises: when can't be after a data subregion reading of data, determine the data partition group under can't the data partition of reading of data, utilize in the determined data partition group data and described setting function in other data partitions except that can't the data partition of reading of data, obtain the data of storing in can't the data partition of reading of data.
If divided the data partition and the backup subregion of physical significance, so, referring to Fig. 5, such as, breaking down etc. as the data partition veneer 1 of physical significance causes all data in the veneer 1 to be read, and so, utilizes the data of storage in the veneer 2 and the algorithm of employed setting function, obtain the data of storage in the veneer 1, that is, according to veneer 3 data=g (veneer 1 data, veneer 2 data), can obtain veneer 1 data=g
-1(veneer 3 data, veneer 2 data).
If divided the data partition and the backup subregion of logical meaning, so, referring to Fig. 6, such as, in a veneer, break down etc. as the data partition of logical meaning such as the Cache space of storage unit 1 and to cause the data in this space to be read, so, then can utilize in the storage unit 2 data of storage and the algorithm of employed setting function, obtain the data of storing in the Cache space of storage unit 1, promptly, according to storage unit 3 data=F (storage unit 1 data, storage unit 2 data), can obtain storage unit 1 data=F
-1(storage unit 3 data, storage unit 2 data).
In addition, the invention allows for a kind of cache controller.The Cache that this cache controller connects is divided at least one data partition and at least one backup subregion, and this cache controller comprises:
Data storage processing unit is used for the need data in buffer is saved in data partition, and the backup information of the data of storing in the data partition is saved in the backup subregion;
Data reading processing unit is used for from the data partition reading of data, after the data in the data partition can't read, obtains this data according to the backup information in the backup subregion.
In a preferred embodiment of the present invention, can divide the data partition among the Cache and back up subregion by cache controller, at this moment, referring to Fig. 7, cache controller further comprises the subregion division unit, is used for Cache is divided into data partition and backup subregion.
In order to protect to all data of storing in each veneer, after making that data in the veneer can't be read, can obtain this data from other veneers, described subregion division unit comprises: veneer quantity is determined subelement, is used for the quantity of the shared veneer of definite Cache;
Divide and carry out subelement, be used for determining the determined quantity of subelement, each veneer is divided into the data partition of one or more physical significances and the backup subregion of one or more physical significances according to veneer quantity.
For can be when the data in the veneer be protected, can also protect the portion C ache space in the veneer, subelement is carried out in described division, for each shared veneer of Cache, further the complete storage space with this veneer is divided into the data partition of one or more logical meanings and the backup subregion of one or more logical meanings;
At this moment, described data storage processing unit comprises that Physical Extents is handled subelement and logical partition is handled subelement, wherein,
Physical Extents is handled subelement, and the backup information that is used for data that the data partition of physical significance is stored is saved in the backup subregion of physical significance;
Logical partition is handled subelement, and the backup information that is used for data that the data partition of logical meaning is stored is saved in the backup subregion of logical meaning;
And at this moment, described data reading processing unit comprises:
The fault subregion is determined subelement, be used for determining can't reading of data subregion, when determine can't reading of data subregion when being the data partition of physical significance, notice is read in Physical Extents backup to be sent to and to read the execution subelement, when determine can't reading of data subregion when being the data partition of logical meaning, notice is read in the logical partition backup is sent to and reads the execution subelement;
Read the execution subelement, be used for receiving after Physical Extents backup reads notice, obtain data according to the backup information in the backup subregion of physical significance,, obtain data according to the backup information in the backup subregion of logical meaning receiving after logical partition backup reads notice.
In order to protect the each several part Cache space in the veneer, described subregion division unit comprises:
Subelement is determined in the veneer space, is used for the storage space of each shared veneer of definite Cache;
Divide and carry out subelement, be used for determining the storage space of determined each veneer of subelement, the complete storage space of each veneer is divided into the data partition of one or more logical meanings and the backup subregion of one or more logical meanings according to the veneer space.
Described data storage processing unit comprises backup setting subelement and backup execution subelement, wherein,
The backup setting subelement is used to be provided with the corresponding backup subregion of a data subregion;
Subelement is carried out in backup, is used for the data that each data partition is stored are duplicated, and is saved in the data of duplicating in the backup subregion of this data partition correspondence as backup information;
After the data of described data reading processing unit in the specified data subregion can't read, from the backup subregion of data partition correspondence that can't reading of data, directly obtain data.
Described data storage processing unit can also comprise backup setting subelement and backup execution subelement, wherein,
The backup setting subelement is used to be provided with a plurality of data partitions and belongs to a data partition group, and the corresponding backup subregion of a data partition group is set;
Subelement is carried out in backup, is used for the data of all data partition storages of a data partition group are set the algorithm process of function, the data after handling is saved in the backup subregion of this data partition group correspondence as backup information;
Described data reading processing unit comprises:
Partition group is determined subelement, is used for determining the data partition group under can't the data partition of reading of data;
Read the execution subelement, be used for utilizing data and described setting function in determined data partition group other data partitions except that can't the data partition of reading of data, obtain the data of storing in can't the data partition of reading of data.
In addition, the invention allows for a kind of device that cache contents is protected.This device comprises Cache and cache controller provided by the invention.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1, a kind of method that cache contents is protected is characterized in that, wherein buffer memory Cache is divided at least one data partition and at least one backup subregion, and this method comprises:
Need data in buffer be saved in the data partition;
The backup information of the data of storing in the data partition is saved in the backup subregion;
After the data in the data partition can't read, obtain this data according to the backup information in the backup subregion,
Wherein, Cache being divided into data partition comprises with the backup subregion:
Process A, according to the quantity of the shared veneer of Cache, each veneer is divided into the data partition of one or more physical significances and the backup subregion of one or more physical significances;
And/or,
Process B, for each shared veneer of Cache, the complete storage space of this veneer is divided into the data partition of one or more logical meanings and the backup subregion of one or more logical meanings.
2, method according to claim 1 is characterized in that, when Cache being divided into data partition and backup subregion when comprising described process A and described process B,
When the backup information of carrying out described data of storing in data partition is saved in the backup subregion, the backup information that is the data of storing in the data partition with physical significance is saved in the backup subregion of physical significance, and the backup information of the data of storing in the data partition with logical meaning is saved in the backup subregion of logical meaning;
Carry out described when obtaining these data according to the backup information in the backup subregion, if data partition that can't reading of data is the data partition of physical significance, then obtain this data according to the backup information in the backup subregion of physical significance, if data partition that can't reading of data is the data partition of logical meaning, then obtain this data according to the backup information in the backup subregion of logical meaning.
According to any described method in the claim 1 to 2, it is characterized in that 3, the step that described backup information with the data of storing in the data partition is saved in the backup subregion comprises: the corresponding backup subregion of a data subregion is set; The data of storing in each data partition are duplicated, be saved in the data of duplicating in the backup subregion of this data partition correspondence as backup information;
The described step of obtaining these data according to the backup information of backup in the subregion comprises: from the backup subregion of data partition correspondence that can't reading of data, directly obtain data.
4, according to any described method in the claim 1 to 2, it is characterized in that, the step that described backup information with the data of storing in the data partition is saved in the backup subregion comprises: a plurality of data partitions are set belong to a data partition group, and the corresponding backup subregion of a data partition group is set; The data of all data partitions storage in the data partition group are set the algorithm process of function, the data after handling are saved in the backup subregion of this data partition group correspondence as backup information;
The described step of obtaining these data according to the backup information of backup in the subregion comprises: determine the data partition group under can't the data partition of reading of data, utilize in the determined data partition group data and described setting function in other data partitions except that can't the data partition of reading of data, obtain the data of storing in can't the data partition of reading of data.
5, a kind of cache controller is characterized in that, comprising:
Data storage processing unit is used for the need data in buffer is saved in data partition, and the backup information of the data of storing in the data partition is saved in the backup subregion;
Data reading processing unit is used for from the data partition reading of data, after the data in the data partition can't read, obtains this data according to the backup information in the backup subregion;
The subregion division unit is used for buffer memory Cache is divided at least one data partition and at least one backup subregion,
Wherein, the implementation structure of subregion division unit comprises:
Structure one, described subregion division unit comprise:
Veneer quantity is determined subelement, is used for the quantity of the shared veneer of definite Cache;
Divide and carry out subelement, be used for determining the determined quantity of subelement, each veneer is divided into the data partition of one or more physical significances and the backup subregion of one or more physical significances according to veneer quantity;
And/or,
Structure two, described subregion division unit comprise:
Subelement is determined in the veneer space, is used for the storage space of each shared veneer of definite Cache;
Divide and carry out subelement, be used for determining the storage space of determined each veneer of subelement, the complete storage space of each veneer is divided into the data partition of one or more logical meanings and the backup subregion of one or more logical meanings according to the veneer space.
6, cache controller according to claim 5 is characterized in that, when comprising structure one and structure two in the described subregion division unit;
Described data storage processing unit comprises that Physical Extents is handled subelement and logical partition is handled subelement, wherein,
Physical Extents is handled subelement, and the backup information that is used for data that the data partition of physical significance is stored is saved in the backup subregion of physical significance;
Logical partition is handled subelement, and the backup information that is used for data that the data partition of logical meaning is stored is saved in the backup subregion of logical meaning;
Described data reading processing unit comprises:
The fault subregion is determined subelement, be used for determining can't reading of data subregion, when determine can't reading of data subregion when being the data partition of physical significance, notice is read in Physical Extents backup to be sent to and to read the execution subelement, when determine can't reading of data subregion when being the data partition of logical meaning, notice is read in the logical partition backup is sent to and reads the execution subelement;
Read the execution subelement, be used for receiving after Physical Extents backup reads notice, obtain data according to the backup information in the backup subregion of physical significance,, obtain data according to the backup information in the backup subregion of logical meaning receiving after logical partition backup reads notice.
According to any described cache controller in the claim 5 to 6, it is characterized in that 7, described data storage processing unit comprises backup setting subelement and backup execution subelement, wherein,
The backup setting subelement is used to be provided with the corresponding backup subregion of a data subregion;
Subelement is carried out in backup, is used for the data that each data partition is stored are duplicated, and is saved in the data of duplicating in the backup subregion of this data partition correspondence as backup information;
After the data of described data reading processing unit in the specified data subregion can't read, from the backup subregion of data partition correspondence that can't reading of data, directly obtain data.
According to any described cache controller in the claim 5 to 6, it is characterized in that 8, described data storage processing unit comprises backup setting subelement and backup execution subelement, wherein,
The backup setting subelement is used to be provided with a plurality of data partitions and belongs to a data partition group, and the corresponding backup subregion of a data partition group is set;
Subelement is carried out in backup, is used for the data of all data partition storages of a data partition group are set the algorithm process of function, the data after handling is saved in the backup subregion of this data partition group correspondence as backup information;
Described data reading processing unit comprises:
Partition group is determined subelement, is used for determining the data partition group under can't the data partition of reading of data;
Read the execution subelement, be used for utilizing data and described setting function in determined data partition group other data partitions except that can't the data partition of reading of data, obtain the data of storing in can't the data partition of reading of data.
9, a kind of device that cache contents is protected is characterized in that, comprises buffer memory Cache and as any described cache controller in the claim 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101215725A CN100492323C (en) | 2007-09-10 | 2007-09-10 | Method and apparatus for protecting caching content and caching controller thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101215725A CN100492323C (en) | 2007-09-10 | 2007-09-10 | Method and apparatus for protecting caching content and caching controller thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101118519A CN101118519A (en) | 2008-02-06 |
CN100492323C true CN100492323C (en) | 2009-05-27 |
Family
ID=39054645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101215725A Expired - Fee Related CN100492323C (en) | 2007-09-10 | 2007-09-10 | Method and apparatus for protecting caching content and caching controller thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100492323C (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101788960A (en) * | 2010-03-12 | 2010-07-28 | 浪潮电子信息产业股份有限公司 | Method for protecting store buffer data |
CN104699574B (en) * | 2013-12-09 | 2018-04-20 | 华为技术有限公司 | A kind of method, apparatus and system for establishing processor Cache checkpoints |
US9612970B2 (en) * | 2014-07-17 | 2017-04-04 | Qualcomm Incorporated | Method and apparatus for flexible cache partitioning by sets and ways into component caches |
CN104317736B (en) * | 2014-09-28 | 2017-09-01 | 曙光信息产业股份有限公司 | A kind of distributed file system multi-level buffer implementation method |
WO2016095233A1 (en) * | 2014-12-19 | 2016-06-23 | 北京麓柏科技有限公司 | Method and apparatus for realizing non-volatile cache |
-
2007
- 2007-09-10 CN CNB2007101215725A patent/CN100492323C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101118519A (en) | 2008-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3519969B1 (en) | Physical media aware spacially coupled journaling and replay | |
US10127166B2 (en) | Data storage controller with multiple pipelines | |
US8065472B2 (en) | System and method for improving data integrity and memory performance using non-volatile media | |
TWI506431B (en) | Virtual memory device (vmd) application/driver with dual-level interception for data-type splitting, meta-page grouping, and diversion of temp files to ramdisks for enhanced flash endurance | |
US7925925B2 (en) | Delta checkpoints for a non-volatile memory indirection table | |
US10275310B2 (en) | Updating exclusive-or parity data | |
KR101678868B1 (en) | Apparatus for flash address translation apparatus and method thereof | |
US8214581B2 (en) | System and method for cache synchronization | |
KR950020058A (en) | A method of storing user data and redundant data in a physical storage device, and a data processing system for queuing a command for a parity drive and a method thereof | |
CN109416666A (en) | Caching with compressed data and label | |
JP5160448B2 (en) | Method and apparatus for recording high speed input data in a matrix of memory devices | |
CN101782875B (en) | Storage unit and data storage method | |
CN101645043B (en) | Methods for reading and writing data and memory device | |
CN101482838A (en) | Data write-in method and apparatus based on copy-on-write | |
US10754555B2 (en) | Low overhead mapping for highly sequential data | |
CN105117351A (en) | Method and apparatus for writing data into cache | |
CN100492323C (en) | Method and apparatus for protecting caching content and caching controller thereof | |
CN106959907A (en) | A kind of cloud platform fragmentation data backup and reduction system | |
US20170277451A1 (en) | Method to limit impact of partial media failure of disk drive and detect/report the loss of data for objects due to partial failure of media | |
US11640253B2 (en) | Method to use flat relink table in HMB | |
CN106844229A (en) | The method for organizing of solid state hard disc firmware mapping table, system and device | |
CN104572374B (en) | Processing method, device and the storage device of storage | |
US11340826B2 (en) | Systems and methods for strong write consistency when replicating data | |
US9798470B2 (en) | Memory system for storing and processing translation information | |
CN104731526B (en) | The method and device that a kind of discontented band is write |
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 | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |
|
CP03 | Change of name, title or address | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090527 Termination date: 20200910 |
|
CF01 | Termination of patent right due to non-payment of annual fee |