-
公开(公告)号:US20190227935A1
公开(公告)日:2019-07-25
申请号:US16371391
申请日:2019-04-01
Applicant: HUAWEI TECHNOLOGIES CO.,LTD.
Inventor: Hehe LI , Yongpan LIU , Qinghang ZHAO , Rong LUO , Huazhong YANG
IPC: G06F12/0815 , G06F3/06 , G06F12/0862 , G06F12/0804 , G06F12/0897 , G06F11/14
Abstract: In a data write control method, a write control apparatus currently runs a program in a write-back mode in which data are written to a volatile memory. When the apparatus detects that a quantity of dirty blocks in the volatile memory has reached a threshold, it predicts a first amount of execution progress of the program within a prediction time period under an assumption of the apparatus being in a write-through mode in which data are written to the volatile memory and a non-volatile memory. The apparatus also predicts a second amount of execution progress of the program within the prediction time period under an assumption of the apparatus being in the write-back mode. When the predicted first amount of execution progress exceeds the predicted second amount of execution progress, the apparatus switches from the write-back mode to the write-through mode.