CN105550129A - Power failure protection system and method based on NVDIMM (Non-Volatile Dual In-line Memory Module) - Google Patents

Power failure protection system and method based on NVDIMM (Non-Volatile Dual In-line Memory Module) Download PDF

Info

Publication number
CN105550129A
CN105550129A CN201510896515.9A CN201510896515A CN105550129A CN 105550129 A CN105550129 A CN 105550129A CN 201510896515 A CN201510896515 A CN 201510896515A CN 105550129 A CN105550129 A CN 105550129A
Authority
CN
China
Prior art keywords
nvdimm
power
protection
data
power failure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510896515.9A
Other languages
Chinese (zh)
Inventor
孙磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510896515.9A priority Critical patent/CN105550129A/en
Publication of CN105550129A publication Critical patent/CN105550129A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a power failure protection system and method based on an NVDIMM (Non-Volatile Dual In-line Memory Module). The system comprises a power failure triggering module and a data protection register module, wherein the power failure triggering module acquires a level of a power supply module, judges whether power failure occurs according to change of the level, and directly triggers the NVDIMM to carry out power failure protection if yes, and simultaneously, the data protection register module records a power failure state when receiving a power failure signal of an operation system; the data protection register module records a power failure protection result state of the NVDIMM; and the data protection register module, according to the recorded state, triggers the NVDIMM to copy data subjected to power failure protection to an RAM (Random Access Memory) when receiving a power recovery signal of the operation system. When a power failure is to be generated, the NVDIMM cannot be transferred and triggered to carry out power failure protection by an ADR (Address Register) function of a CPU (Central Processing Unit); a data protection record is achieved by the register; an ADR and a BIOS (Basic Input Output System) do not need to be used; universality is good; and the NVDIMM can be conveniently and efficiently enabled to carry out power failure protection.

Description

A kind of power down protection system based on NVDIMM and method
Technical field
The present invention relates to and store data protection field, particularly relate to a kind of power down protection system based on NVDIMM and method.
Background technology
NVDIMM is in a kind of memory bar specification being integrated with DRAM+ Nonvolatile memory chip, can still preserve complete internal storage data when complete power-off.
The course of work of current traditional NVDIMM is as follows:
1, when power supply will disconnect, cpu central processing unit receives power-down notice, notify that NVDIMM carries out power down protection in ADRTRIGGER trigger mode, at this time, data can copy NANDFLASH flash memory to from RAM random access memory and protect, simultaneously BIOS Basic Input or Output System (BIOS) record protection state;
2, when the power is again switched on, BIOS initialization procedure can read the guard mode that above-mentioned steps 1 records, then by the data of power-off protection last time in NANDFLASH, trigger NVDIMM and copy back memory ram, and notify that upper strata OS operating system is known data and recovered;
But the working method of above-mentioned NVDIMM depends on the ADR function of CPU, and this function only has special processor just to have, and state recording depends on BIOS, lean on the exploitation of BIOS to support, this difficulty also bringing platform general, any one platform is wanted to use, and must develop amendment BIOS, also there is larger limitation, poor universality.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of power down protection system based on NVDIMM and method, can carry out power down protection easily and efficiently.
For achieving the above object, the invention provides a kind of power down protection system based on NVDIMM, comprising:
Power-off trigger module, is all connected with power module and NVDIMM, for obtaining the level of power module, judges whether power-off to occur according to the change of level, if it is directly triggers NVDIMM and carries out power down protection;
Data protection register module; all be connected with NVDIMM and operating system; for recording off-position when receiving the power-off signal of operating system; and record is carried out to the power down protection result phase of NVDIMM, trigger NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.
Preferably, described NVDIMM is connected with described RAM.
Preferably, described NVDIMM comprises:
NANDFLASH, for will the data in RAM be carried out copying and preserving during power-off, returns the data copy of preservation to RAM when recovering incoming call.
Present invention also offers a kind of power-off protection method based on NVDIMM, comprising:
Power-off trigger module obtains the level of power module, judge whether power-off occurs according to the change of level, if it is directly trigger NVDIMM and carry out power down protection, the register module of data protection simultaneously records off-position when receiving the power-off signal of operating system;
The power down protection result phase of data protection register module to NVDIMM carries out record;
Data protection register module triggers NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.
Preferably, data protection register module when receiving the recovery incoming telephone signal of operating system according to record state trigger NVDIMM by the data copy of power down protection to RAM after also comprise:
Whether successful for copy state is sent to operating system by described data protection register module.
Preferably, NVDIMM carries out power down protection and comprises:
NVDIMM is by the data copy in RAM in the NANDFLASH in NVDIMM, and NANDFLASH preserves described data.
Preferably, the data copy of power down protection comprises to RAM by NVDIMM:
The data copy of preserving in NANDFLASH is returned in described RAM by NVDIMM.
Apply a kind of power down protection system based on NVDIMM provided by the invention and method, system comprises: power-off trigger module and data protection register module, power-off trigger module obtains the level of power module, judge whether power-off occurs according to the change of level, if it is directly trigger NVDIMM and carry out power down protection, the register module of data protection simultaneously records off-position when receiving the power-off signal of operating system, the power down protection result phase of data protection register module to NVDIMM carries out record, data protection register module triggers NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.ADR function when there is power-off no longer by CPU goes switching triggering NVDIMM to carry out power down protection, and data protection record is realized by register, and without the need to using ADR and BIOS, versatility is good, and NVDIMM can be made easily and efficiently to carry out power down protection.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the structural representation of a kind of power down protection system embodiment based on NVDIMM of the present invention;
Fig. 2 is the process flow diagram of a kind of power-off protection method embodiment based on NVDIMM of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one:
The invention provides a kind of power down protection system based on NVDIMM, Fig. 1 shows the structural representation of the power down protection system embodiment one that the present invention is based on NVDIMM, comprising:
Power-off trigger module 101, is all connected with power module and NVDIMM, for obtaining the level of power module, judges whether power-off to occur according to the change of level, if it is directly triggers NVDIMM and carries out power down protection;
Data protection register module 102; all be connected with NVDIMM and operating system; for recording off-position when receiving the power-off signal of operating system; and record is carried out to the power down protection result phase of NVDIMM, trigger NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.
In Fig. 1, OS is operating system, and in the present embodiment, NVDIMM comprises: NANDFLASH, and for will the data in RAM be carried out copying and preserving during power-off, when recovering incoming call, the data copy of preservation is returned RAM, described NVDIMM be connected with described RAM.
A kind of power down protection system based on NVDIMM that application the present embodiment provides, comprise: power-off trigger module and data protection register module, power-off trigger module obtains the level of power module, judge whether power-off occurs according to the change of level, if it is directly trigger NVDIMM and carry out power down protection, the register module of data protection simultaneously records off-position when receiving the power-off signal of operating system, the power down protection result phase of data protection register module to NVDIMM carries out record, data protection register module triggers NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.ADR function when there is power-off no longer by CPU goes switching triggering NVDIMM to carry out power down protection, and data protection record is realized by register, and without the need to using ADR and BIOS, versatility is good, and NVDIMM can be made easily and efficiently to carry out power down protection.
Embodiment two:
Present invention also offers a kind of power-off protection method based on NVDIMM, Fig. 2 shows the process flow diagram of the power-off protection method embodiment two that the present invention is based on NVDIMM, comprising:
Step S101: power-off trigger module obtains the level of power module, judge whether power-off occurs according to the change of level, if it is directly trigger NVDIMM and carry out power down protection, the register module of data protection simultaneously records off-position when receiving the power-off signal of operating system;
Power-off trigger module obtains the level of power module; judge whether power-off occurs according to the change of level; as judged, level change is beyond outage threshold; then illustrate by power-off; if by power-off, directly trigger NVDIMM and carry out power down protection; NVDIMM comprises: NANDFLASH, and described NVDIMM is connected with described RAM.NVDIMM carries out power down protection and comprises: NVDIMM is by the data copy in RAM in the NANDFLASH in NVDIMM, and NANDFLASH preserves described data.The register module of data protection simultaneously records off-position when receiving the power-off signal of operating system OS.
Step S102: the power down protection result phase of data protection register module to NVDIMM carries out record;
Data protection register pair power down protection result namely protects successfully or failed state carries out record.
Step S103: data protection register module triggers NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.
Operating system OS recover incoming call time, data protection register root according to record state trigger NVDIMM by the data copy of power down protection to RAM, specifically comprise: the data copy of preserving in NANDFLASH is returned in described RAM by NVDIMM.Data protection register module when receiving the recovery incoming telephone signal of operating system according to record state trigger NVDIMM by the data copy of power down protection to RAM after; described data protection register module by copy whether successfully state be sent to operating system OS, what complete with OS is mutual.
A kind of power-off protection method based on NVDIMM that application the present embodiment provides, power-off trigger module and data protection register module, power-off trigger module obtains the level of power module, judge whether power-off occurs according to the change of level, if it is directly trigger NVDIMM and carry out power down protection, the register module of data protection simultaneously records off-position when receiving the power-off signal of operating system, the power down protection result phase of data protection register module to NVDIMM carries out record, data protection register module triggers NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.ADR function when there is power-off no longer by CPU goes switching triggering NVDIMM to carry out power down protection, and data protection record is realized by register, and without the need to using ADR and BIOS, versatility is good, and NVDIMM can be made easily and efficiently to carry out power down protection.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For system class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Be described in detail method and system provided by the present invention above, apply specific case herein and set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (7)

1. based on a power down protection system of NVDIMM, it is characterized in that, comprising:
Power-off trigger module, is all connected with power module and NVDIMM, for obtaining the level of power module, judges whether power-off to occur according to the change of level, if it is directly triggers NVDIMM and carries out power down protection;
Data protection register module; all be connected with NVDIMM and operating system; for recording off-position when receiving the power-off signal of operating system; and record is carried out to the power down protection result phase of NVDIMM, trigger NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.
2. the power down protection system based on NVDIMM according to claim 1, is characterized in that, described NVDIMM is connected with described RAM.
3. the power down protection system based on NVDIMM according to claim 1, is characterized in that, described NVDIMM comprises:
NANDFLASH, for will the data in RAM be carried out copying and preserving during power-off, returns the data copy of preservation to RAM when recovering incoming call.
4. based on a power-off protection method of NVDIMM, it is characterized in that, comprising:
Power-off trigger module obtains the level of power module, judge whether power-off occurs according to the change of level, if it is directly trigger NVDIMM and carry out power down protection, the register module of data protection simultaneously records off-position when receiving the power-off signal of operating system;
The power down protection result phase of data protection register module to NVDIMM carries out record;
Data protection register module triggers NVDIMM by the data copy of power down protection to RAM when receiving the recovery incoming telephone signal of operating system according to the state of record.
5. the power-off protection method based on NVDIMM according to claim 4; it is characterized in that, data protection register module when receiving the recovery incoming telephone signal of operating system according to record state trigger NVDIMM by the data copy of power down protection to RAM after also comprise:
Whether successful for copy state is sent to operating system by described data protection register module.
6. the power-off protection method based on NVDIMM according to claim 4, is characterized in that, NVDIMM carries out power down protection and comprises:
NVDIMM is by the data copy in RAM in the NANDFLASH in NVDIMM, and NANDFLASH preserves described data.
7. the power-off protection method based on NVDIMM according to claim 6, is characterized in that, the data copy of power down protection comprises to RAM by NVDIMM:
The data copy of preserving in NANDFLASH is returned in described RAM by NVDIMM.
CN201510896515.9A 2015-12-08 2015-12-08 Power failure protection system and method based on NVDIMM (Non-Volatile Dual In-line Memory Module) Pending CN105550129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510896515.9A CN105550129A (en) 2015-12-08 2015-12-08 Power failure protection system and method based on NVDIMM (Non-Volatile Dual In-line Memory Module)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510896515.9A CN105550129A (en) 2015-12-08 2015-12-08 Power failure protection system and method based on NVDIMM (Non-Volatile Dual In-line Memory Module)

Publications (1)

Publication Number Publication Date
CN105550129A true CN105550129A (en) 2016-05-04

Family

ID=55829320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510896515.9A Pending CN105550129A (en) 2015-12-08 2015-12-08 Power failure protection system and method based on NVDIMM (Non-Volatile Dual In-line Memory Module)

Country Status (1)

Country Link
CN (1) CN105550129A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106683706A (en) * 2017-01-05 2017-05-17 郑州云海信息技术有限公司 Testing method of NVDIMM_ADR function
CN106776381A (en) * 2016-12-23 2017-05-31 郑州云海信息技术有限公司 A kind of storage system power-off protection method and system
CN107133125A (en) * 2017-05-02 2017-09-05 郑州云海信息技术有限公司 A kind of method of automatic test NVDIMM data protection stability
CN107797946A (en) * 2016-09-06 2018-03-13 中车株洲电力机车研究所有限公司 A kind of onboard storage
CN108280005A (en) * 2018-01-22 2018-07-13 郑州云海信息技术有限公司 A kind of method and system of test NVDIMM memory power-off protections
CN109144778A (en) * 2018-07-27 2019-01-04 郑州云海信息技术有限公司 A kind of storage server system and its backup method, system and readable storage medium storing program for executing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777537A (en) * 2014-01-28 2014-05-07 无锡云动科技发展有限公司 Low-power-consumption control circuit and storage device
CN104021093A (en) * 2014-06-24 2014-09-03 浪潮集团有限公司 Power-down protection method for memory device based on NVDIMM (non-volatile dual in-line memory module)

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777537A (en) * 2014-01-28 2014-05-07 无锡云动科技发展有限公司 Low-power-consumption control circuit and storage device
CN104021093A (en) * 2014-06-24 2014-09-03 浪潮集团有限公司 Power-down protection method for memory device based on NVDIMM (non-volatile dual in-line memory module)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797946A (en) * 2016-09-06 2018-03-13 中车株洲电力机车研究所有限公司 A kind of onboard storage
CN107797946B (en) * 2016-09-06 2021-06-29 中车株洲电力机车研究所有限公司 Vehicle-mounted storage device
CN106776381A (en) * 2016-12-23 2017-05-31 郑州云海信息技术有限公司 A kind of storage system power-off protection method and system
CN106683706A (en) * 2017-01-05 2017-05-17 郑州云海信息技术有限公司 Testing method of NVDIMM_ADR function
CN107133125A (en) * 2017-05-02 2017-09-05 郑州云海信息技术有限公司 A kind of method of automatic test NVDIMM data protection stability
CN108280005A (en) * 2018-01-22 2018-07-13 郑州云海信息技术有限公司 A kind of method and system of test NVDIMM memory power-off protections
CN109144778A (en) * 2018-07-27 2019-01-04 郑州云海信息技术有限公司 A kind of storage server system and its backup method, system and readable storage medium storing program for executing

Similar Documents

Publication Publication Date Title
CN105550129A (en) Power failure protection system and method based on NVDIMM (Non-Volatile Dual In-line Memory Module)
US8032787B2 (en) Volatile storage based power loss recovery mechanism
US10592253B2 (en) Technologies for pre-memory phase initialization of a computing device
US20170091022A1 (en) Techniques to Recover Data Using Exclusive OR (XOR) Parity Information
EP2846261A1 (en) Method and apparatus for starting a boot program
US10108506B2 (en) Controller of semiconductor memory device and method of operating the same
KR20130055636A (en) Parallel use of integrated non-volatile memory and main volatile memory within a mobile device
CN109783014B (en) Data storage method and device
RU2625442C2 (en) Electronic device and data transmission system
KR102114642B1 (en) Data protection method, apparatus and device
US9424134B2 (en) Boot management in a non-volatile memory system
CN104462225A (en) Data reading method, device and system
US10120597B2 (en) Memory chips and data protection methods
JP2018504692A (en) Transaction processing method and apparatus, and computer system
CN104375959A (en) Method for achieving data protection by adopting NVDIMM (non-volatile memory Module) on POWERPC (Power on remote control Unit) cloud storage platform
KR20170013319A (en) Data management method, node and system for database cluster
DE602004003467D1 (en) FUSE FIRMWARE IN A DISTRIBUTED SYSTEM
CN106569964A (en) Power-off protection method, power-off protection device, power-off protection system and memory
CN111241604A (en) Apparatus and method relating to memory deactivation for memory security
KR20130051564A (en) Memory module, board assembly having same, memory system having same, and method of operating the memory system
CN103064800A (en) Power failure protection system and implementation method thereof
CN106030544B (en) Method for detecting memory of computer equipment and computer equipment
CN102609370B (en) Solid-state disk and method for preventing data loss thereof
CN201662811U (en) Dual-network isolated SSD hard disk
KR20140095656A (en) Nonvolatile memory device and method of reading data thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504

RJ01 Rejection of invention patent application after publication