Monitoring Record Management Method and Device
AssigneeHuawei Technologies Co., Ltd.
InventorChen Wang
Life of this patent
Estimating the term…
Abstract
The present invention provides a monitoring record management technology, which is used to manage a monitoring record stored in a memory, where the monitoring record is used to monitor a chunk in a storage, and by reading at least one monitoring parameter from each monitoring record in the memory, monitoring records between which a monitoring parameter meets a threshold are combined or split. After the monitoring record management technology provided in the present invention is applied, the occupancy of the memory can be reduced or the accuracy of the monitoring record can be improved.
Claims20
A monitoring record management method, wherein multiple monitoring records are stored in a memory, each monitoring record is used to monitor one or more chunks in a storage, and the monitoring record is a set of at least one monitoring parameter, and the method comprises:
- reading at least one monitoring parameter from monitoring records in the memory;
- for the read monitoring parameter, calculating a difference of monitoring parameters of a same type between different monitoring records;
- reading, from the memory, monitoring records between which each monitoring parameter difference meets a corresponding preset threshold, combining the read monitoring records and generating a combined monitoring record, wherein identities of monitored chunks are recorded in the combined monitoring record, and deleting, from the memory, the monitoring records that are combined, wherein a value of at least one monitoring parameter in the combined monitoring record is equal to a value of each monitoring parameter when all monitored chunks are viewed as one chunk;
- and
- writing the combined monitoring record into the memory, wherein the combined monitoring record is used to monitor chunks monitored by each monitoring record before the combination.
A monitoring record splitting method, wherein multiple monitoring records are stored in a memory, and each monitoring record is used to monitor at least one chunk in a storage, each monitoring record is a set of monitoring parameters of a monitored chunk, and the method comprises:
- reading at least one monitoring parameter from each monitoring record in the memory;
- splitting a monitoring record of which each value of the monitoring parameter meets a preset threshold, and generating at least two monitoring records after the splitting, wherein an offset address and a data length of data are carried in each split monitoring record, a sum of values of monitoring parameters in the split monitoring record is equal to a value of a monitoring parameter of a same type in a combined monitoring record;
- and
- writing the split monitoring records into the memory, wherein the split monitoring records are used to monitor data described by the offset address and the data length that are carried in the split monitoring record.
A storage controller, comprising a processor, a communication interface communicating with the processor, and a memory communicating with the processor, wherein
- the communication interface is configured to communicate with a storage;
- the memory is configured to store multiple monitoring records, wherein each monitoring record is used to monitor one chunk in the storage, and one monitoring record is a set of monitoring parameters of one chunk;
- and
- the processor is configured to perform a program, wherein the program is used to:
- read, from monitoring records in the memory, at least one monitoring parameter;
- for the read monitoring parameter, calculate a difference of monitoring parameters of a same type between different monitoring records;
- read, from the memory, monitoring records between which each monitoring parameter difference meets a corresponding preset threshold, combining the read monitoring records and generating a combined monitoring record, wherein identities of monitored chunks are recorded in the combined monitoring record, and deleting, from the memory, the monitoring records that are combined, wherein a value of at least one monitoring parameter in the combined monitoring record is equal to a value of each monitoring parameter when all monitored chunks are viewed as one chunk;
- and
- write the combined monitoring record into the memory, wherein the combined monitoring record is used to monitor chunks monitored by each monitoring record before the combination.
A storage controller, comprising a processor, a communication interface communicating with the processor, and a memory communicating with the processor, wherein
- the communication interface is configured to communicate with a storage;
- the memory is configured to store multiple monitoring records, wherein each monitoring record is used to monitor at least one chunk in the storage, and each monitoring record is a set of monitoring parameters of a monitored chunk;
- and
- the processor is configured to perform a program, wherein the program is used to:
- read at least one monitoring parameter from each monitoring record in the memory;
- split a monitoring record of which each value of the monitoring parameter meets a preset threshold, and generating at least two monitoring records after the split, wherein an offset address and a data length of data are carried in each split monitoring record, a sum of values of monitoring parameters in the split monitoring record is equal to a value of a monitoring parameter of a same type in a combined monitoring record;
- and
- write the split monitoring records into the memory, wherein the split monitoring records are used to monitor data described by the offset address and the data length that are carried in the split monitoring record.
Dependencies are inferred from the claim text.