The invention discloses a method for protecting
CPU Cache data after
AC power failure. The method comprises the steps that a CPLD sends a data protection command to a CPU after receiving
AC power failure information; and the CPU flashes data in a
CPU Cache to a non-volatile storage medium after receiving the data protection instruction, thereby performing a subsequent ADR process after finishing the flashing. According to the method provided by the invention, the data in the
CPU Cache can be effectively protected after the
AC power failure only by adding the process of flashing the data in theCPU Cache to the non-volatile storage medium after the AC power failure on the premise of not changing the read-write performance of the non-volatile storage medium, so that the data in the CPU Cacheis protected from being not lost, the read-write performance of
NVDIMM-N or other non-volatile storage mediums is not influenced, and the
delay is shortened. The invention furthermore discloses a
system for protecting the CPU Cache data after the AC power failure. The
system also has the abovementioned beneficial effects, which are no longer repeated here.