Method for improving stability of computer system and computer system

The invention relates to a method for improving the stability of a computer system and a computer system. The method for improving the stability of the computer system comprises the steps of collecting the wrong data generated by a computer system device when the computer system is started up or run; storing the wrong data to a nonvolatile memorizer; when the computer system is restarted up, carrying out a state recovery processing on the device generating the wrong data according to the wrong data; reading the wrong data stored in the nonvolatile memorizer to carry out a recovery processing on the corresponding device in the computer system by recording the wrong data in the nonvolatile memorizer during the running of the computer system and the restarting process, so that the handling failures to the abnormal or predicted to-be-damaged device of the computer system, such as forbidden operation, isolation operation, etc. caused by device state initialization after the computer system is restarted, and the problem casing the stability of the system to be reduced directly are solved, and the stability of the computer system is improved.