Data Write Control Apparatus and Method
AssigneeHuawei Technologies Co., Ltd.
InventorsHehe Li, Yongpan Liu, Qinghang Zhao, Rong Luo, Huazhong Yang
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsHehe Li, Yongpan Liu, Qinghang Zhao, Rong Luo, Huazhong Yang
Estimating the term…
A data write control method includes detecting a quantity of dirty blocks in a first memory when a write control apparatus is in write-back mode; separately predicting execution progress of a program run by a processor within a danger time period in the two write modes when the quantity of dirty blocks reaches a first preset threshold; when it is predicted that the execution progress of the program run by the processor within the danger time period in write-through mode is faster than the execution progress of the program run by the processor within the danger time period in write-back mode, switching a current data write mode to the write-through mode; and detecting the quantity of dirty blocks when the write control apparatus is in write-through mode and switching the current data write mode to the write-back mode when the quantity of dirty blocks decreases to a second preset threshold.
A data write control apparatus, comprising:
A data write control method applied in a data write control apparatus, wherein the data write control apparatus comprises a first memory, a second memory, and a processor, wherein the first memory comprises a volatile storage unit, wherein the second memory is a nonvolatile storage unit, wherein a data write mode of the data write control apparatus comprises a write-back mode and a write-through mode, wherein the processor writes received data to the first memory in write-back mode, wherein the processor writes received data to the first memory and the second memory in write-through mode, and wherein the method comprises:
Dependencies are inferred from the claim text.