CN101937376B - A kind of data managing method and data storage device - Google Patents

A kind of data managing method and data storage device Download PDF

Info

Publication number
CN101937376B
CN101937376B CN200910086776.9A CN200910086776A CN101937376B CN 101937376 B CN101937376 B CN 101937376B CN 200910086776 A CN200910086776 A CN 200910086776A CN 101937376 B CN101937376 B CN 101937376B
Authority
CN
China
Prior art keywords
storage unit
data
storage
unit
power
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.)
Active
Application number
CN200910086776.9A
Other languages
Chinese (zh)
Other versions
CN101937376A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN200910086776.9A priority Critical patent/CN101937376B/en
Publication of CN101937376A publication Critical patent/CN101937376A/en
Application granted granted Critical
Publication of CN101937376B publication Critical patent/CN101937376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a kind of data managing method, be applied to the memory storage had in the electronic equipment of hard disk, this memory storage comprises the first storage unit, for storing the first data; Second storage unit, adopt non-volatile memory medium, for storing the second data, the capacity of the second storage unit is more than or equal to the capacity of the first storage unit; The data rate of the first storage unit and described hard disk is less than the data rate of the first storage unit and the second storage unit; The method comprises: before the first storage unit power-off, by the first data Replica to the second storage unit, and second data of preserving in second memory after making power-off at least comprise the first data; When the first storage unit restores electricity, by the first data Replica of preserving in the second storage unit to the first storage unit.Present invention also offers corresponding memory storage and computing machine.The speed of data preservation and rear date restoring of again powering before can accelerating device powers down according to the present invention.

Description

A kind of data managing method and data storage device
Technical field
The present invention relates to electronic information technical field, be specifically related to data managing method and data storage device.
Background technology
Hard disk is for longer-term storage program and associated documents, and computing machine file and application program all will be called from hard disk.Central processing unit (CPU) will read data from hard disk, and the speed of the buffer memory of CPU and hard disk difference is too large, and at this moment need to play buffer action by internal memory, namely hard disc data is put into internal memory, and CPU reads from internal memory again.
When system (program) is run, first to required instruction and data be called in internal memory from external memory storage (as hard disk, CD etc.), CPU again from internal memory reading command or data carry out computing, that is, run to the laggard line program of internal memory by CPU loading procedure, and by operation result stored in internal memory.Calculator memory is the memory unit on mainboard, CPU directly and internal memory link up, and the parts of data are stored with it, deposit data and the program of current (in namely the performing) that using, its physical substance is exactly the integrated circuit that one or more groups possesses data input and output and data storage function, and internal memory is only for temporarily depositing program and data.The random access memory (RAM, RandomAccessMemory) that calculator memory uses is a kind of volatile semiconductor, after a loss of power, cannot preserve original state.Once powered-down or generation power-off, program wherein and data will be lost.
System (program) start or in have no progeny again recovery routine run time, need the sequence of operations starting hard disk, comprise: power on, self-inspection, operating system is loaded into internal memory, operating system etc., these action needs spend a large amount of time to complete.Due to characteristic and the operational scheme of external memory storage (as: hard disk) itself, speed certainly will be caused slow, length consuming time.
In the process of computer on/off, although computer hardware travelling speed is more and more faster, the volume of operating system is also in continuous expansion, and the program of when making computing machine open and close machine, start, closing gets more and more, and spended time is also more and more longer.If the WindowsXP os starting time is 40 second time, if add other softwares of user, start-up course reaches 2 minutes or longer.Along with the upgrading of hardware and software, operating system starts to introduce Advanced Program Zoom interface (ACPI, AdvancedConfigurationandPowerManagementInterface), its effect is exactly the closed portion equipment when computer leaves unused, ACPI has six kinds of states, S0 to S5 respectively, wherein
S3, suspends to internal memory (STR, SuspendtoRAM), and the operating state data before system enters STR state is all kept in internal memory, and power supply continues as internal memory and powers, and to guarantee that data are for losing, and other equipment is all in closed condition;
S4, suspends to hard disk (STD, SuspendtoDisk), and the operating state data of system all writes hard disk, and at this moment system primary power cuts out, but hard disk is still charged and can be waken up;
Inventor is realizing finding in process of the present invention that prior art exists following defect: if system is waken up from S3 state, and system at once reads data and duty before returning to STR from internal memory.Because the read or write speed of internal memory is exceedingly fast, therefore system is very fast from S3 recovering state speed, but prerequisite is S3 process need to be maintained all the time to the power supply of internal memory, therefore wastes resource; And the waking up of S4 state, because the read or write speed of hard disk self is slow, therefore system starts also still needs for a long time.
Therefore, need a kind of can rapid saving and recover the scheme of data when power saving as far as possible.
Summary of the invention
The embodiment of the present invention provides a kind of data managing method and data storage device, the speed of data preservation and rear date restoring of again powering before can accelerating power-off.
A kind of data managing method that the embodiment of the present invention provides, be applied in a memory storage, described memory storage is applied to one and has in the electronic equipment of hard disk, comprises the first storage unit, for storing the first data, described first storage unit can preserve described first data when powering; Second storage unit, be connected with described first storage unit, for storing the second data, described second storage unit all can preserve described second data when power supply or power-off, and the capacity of described second storage unit is more than or equal to the capacity of described first storage unit; The data rate of described first storage unit and described hard disk is less than the data rate of described first storage unit and described second storage unit; The method comprises:
Before described first storage unit power-off, by described first data Replica to described second storage unit, described second data of preserving in described second memory after making power-off at least comprise described first data.
A kind of memory storage that the embodiment of the present invention provides, is applied to one and has in the electronic equipment of hard disk, comprising:
First storage unit, for storing the first data, described first storage unit can preserve described first data when powering;
Second storage unit, directly or indirectly be connected with described first storage unit, for storing the second data, described second storage unit all can preserve described second data when power supply or power-off, wherein, the capacity of described second storage unit is more than or equal to the capacity of described first storage unit;
Wherein, before described first storage unit power-off, according to operating steering order by described first data Replica to described second storage unit, described second data of preserving in described second storage unit after making power-off at least comprise described first data;
Wherein, the data rate of described first storage unit and described hard disk is less than the data rate of described first storage unit and described second storage unit.
The embodiment of the present invention also provides a kind of computing machine, comprising:
Hard disk, for storing the 3rd data;
First storage unit, is directly or indirectly connected with described hard disk, and for storing the first data, described first storage unit can preserve described first data when powering;
Second storage unit, directly or indirectly be connected with described first storage unit, for storing the second data, described second storage unit all can preserve described second data when power supply or power-off, wherein, the capacity of described second storage unit is more than or equal to the capacity of described first storage unit;
Wherein, the data rate of described first storage unit and described hard disk is less than the data rate of described first storage unit and described second storage unit;
Operational administrative unit, be connected with described first storage unit, for before described first storage unit power-off, control by described first data Replica to described second storage unit, described second data of preserving in described second storage unit after making power-off at least comprise described first data.
In sum, in the scheme provided in the embodiment of the present invention, by arranging the first storage unit and the second storage unit, the capacity of the second storage unit is more than or equal to the capacity of the first storage unit; The data rate of the first storage unit and the second storage unit is greater than the data rate of the first storage unit and hard disk; First storage unit, carries out mirror copy operations and the data syn-chronization in the first storage unit is saved in the second storage unit in program operation process; Preserve running state information when device shutdown or outage; When program roll back or when recovering, the program of preserving in the second storage unit is imported the first storage unit, and continue working procedure according to preserved running state information.The speed of data preservation and rear date restoring of again powering before can accelerating the thorough power-off of equipment.
Accompanying drawing explanation
Bolt down procedure workflow diagram in the data managing method that Fig. 1 provides for the embodiment of the present invention;
Recovery routine workflow diagram in the data managing method that Fig. 2 provides for the embodiment of the present invention;
The memory device formation schematic diagram of Fig. 3 for providing in the embodiment of the present invention;
A kind of computer architecture schematic diagram of Fig. 4 for providing in the embodiment of the present invention;
Fig. 5 is the annexation schematic diagram of data management system in the embodiment of the present invention and memory storage;
Copy the operating process schematic diagram of data from internal storage location to non-volatile memory modules in the Action Manager that Fig. 6 provides for the embodiment of the present invention;
Copy the operating process schematic diagram of data from non-volatile memory modules to internal storage location in the Action Manager that Fig. 7 provides for the embodiment of the present invention;
Fig. 8 is the function switching signal schematic diagram of the Action Manager in the embodiment of the present invention.
Embodiment
In view of the defect existed in prior art, the present invention proposes a kind of data managing method, and be applied to one and have in the electronic equipment of hard disk, this electronic equipment comprises the first storage unit, for storing the first data, the first storage unit can preserve described first data when powering; Second storage unit, is connected with the first storage unit, and for storing the second data, described second storage unit all can preserve described second data when power supply or power-off, and the capacity of the second storage unit is more than or equal to the capacity of the first storage unit; The data rate of the first storage unit and hard disk is less than the data rate of the first storage unit and the second storage unit; The method comprises:
Before the first storage unit power-off, by described first data Replica to the second storage unit, described second data of preserving in second memory after making power-off at least comprise the first data.
Before the first storage unit power-off, the program that described electronic equipment runs and/or CPU status data.
When the first storage unit is again or when restoring electricity, by the first data Replica of preserving in the second storage unit to the first storage unit.
In specific embodiments of the invention, the first storage unit and the second storage unit can adopt different memory modules as requested.Particularly, the first storage unit is volatile memory cell (such as internal memory RAM), and the second storage unit is non-volatile memory cells (such as flash memory Flash).First data are specially the routine data in electronic equipment operational process.
In electronic equipment operational process, mirror copy operations is carried out to the first storage unit and the second storage unit, namely the data integrity in internal memory is kept in non-volatile memory cells, and preserve CPU status information further.When close because of electronic equipment make all stops before or because of before other situations cause program outage, data and status information are kept in non-volatile memory cells, like this when preparing recovery routine and running, only need directly orderly for the image program data of preserving in non-volatile memory cells to be reduced to internal memory RAM, recover CPU state simultaneously.Like this, the system cloud gray model scene can reduced rapidly when preserving, accelerated procedure (comprising: operating system) toggle speed.
In addition, data Replica between the first storage unit and the second storage unit, can carry out not affecting timing in electronic equipment normal course of operation, thus when the program of electronic equipment enters undesired state (such as collapse or when crashing), a data doubling time point can be reverted to rapidly; The data Replica of the first storage unit and the second storage unit, (such as during user's manual operation) can also carry out when electronic device works state changes.
For making principle of the present invention, characteristic and advantage clearly, be described in detail below.
For ease of illustrating, using internal storage location as the first storage unit in following embodiment, non-volatile memory cells is described as the second storage unit.
With reference to Fig. 1, after the program of electronic equipment brings into operation, the routine data mirror copy operations of internal memory to non-volatile memory cells can be carried out, and the preservation of CPU current state information, for follow-up power supply again or employing when recovering.The data managing method that the embodiment of the present invention provides, specifically comprises:
S101, before internal memory power-off, from internal memory to non-volatile memory cells image copying data;
In program operation process, before internal memory power-off, by the routine data image copying of internal memory to described non-volatile memory cells, the program in internal memory is saved in non-volatile memory cells;
Mirror image (Mirroring) is a kind of mode of redundancy backup, and the data on a storage medium exist an identical copy and are mirror image on another storage medium.At this, mirror copy operations is exactly in non-volatile memory cells, copy a data file identical with the program in internal memory, so that in recovery routine run time call.As long as what certainly ensure data can correct reductibility, also can adopt other backup modes, such as the discrete storage mode of record sequentially linking relationship.
In the present embodiment, using flash memory flash as the basic unit of storage of non-volatile memories, flash is made up of some pieces (block), and block is made up of some pages (page), and page is made up of some byte/word (byte/word).
The write operation process of Flash is as follows:
Page (page) is write after first wiping block (block).Before execution write operation, first to wipe the block (block) (write 0xff is in the memory cell block that will wipe) at page (page) place for write data, then be sequentially written in data by page.
Program in internal memory RAM is saved in flash, because the special read-write mode of flash is different from the read-write mode of internal memory, so need the data in internal memory to be packaged as block (block), so that the consistance on read-write operation.
S102, before internal memory power-off, is saved in the CPU status information storage unit of non-volatile memory cells by current C PU status information;
Before internal memory power-off, gather current information and current C PU status information in each register (as program register and status register) of CPU, and these CPU status informations are saved in non-volatile memory cells.
S103, closes program or the system of electronic equipment.
To each parts power-off of electronic equipment, will the program run be closed, cut off the power supply of internal memory.After internal memory power-off, in non-volatile memory cells, still preserve the routine data of internal memory before power-off.
Wherein S101 and S102 does not have the relation on execution sequence, can first perform S101 and perform S102 again, performs S102 after can first performing S101 yet, can also perform by S101 and S102 simultaneously.
With reference to Fig. 2, restart routine after electronic equipment restores electricity: receiving program enabled instruction, opens the image copying of non-volatile memory cells to internal memory, recovers CPU state, rerun routine.
The data managing method that the embodiment of the present invention provides, also comprises data managing method in restart routine operation, specifically comprises:
S201, after electronic equipment restores electricity, from non-volatile memory cells to internal storage location image copying routine data;
When program roll back or when recovering, accept start-up routine action command, the routine data preserved in described non-volatile memory cells is imported described internal storage location.
The read operation of Flash is for minimum reading unit with page (page).Byte/word counter is also provided with, for counting the page (page) in Flash in Action Manager.
Particularly, block-by-block sense data from non-volatile memory cells (flash memory Flash), then block is split into some data bytes, in units of byte, copy data in flash memory to described internal memory.
S202, utilizes the CPU status information of preserving in non-volatile memory cells to arrange CPU state;
When program roll back or when recovering, the CPU status information of preserving before obtaining from described non-volatile memory cells, and according to preserved CPU status information relative set CPU, recover CPU state, namely according to the value of each register (as program register and status register) of the CPU preserved, each register of CPU is set, to continue working procedure.
Same, wherein S201 and S202 does not have the relation on execution sequence, can first perform S201 and perform S202 again, performs S202 after can first performing S201 yet, can also perform by S201 and S202 simultaneously.
S203, the program roll back of electronic equipment.
Described electronic equipment is reruned based on recovered CPU state and the routine data imported in internal memory.
Above-mentioned opening program process and bolt down procedure process can independently perform, not requirement in pairs.
In above-described embodiment, in program operation process, carry out mirror copy operations the data syn-chronization in internal memory is saved in non-volatile memory cells; Preserve running state information when device shutdown or outage; When program roll back or when recovering, the program of preserving in non-volatile memory cells is imported internal memory, and continues working procedure according to preserved running state information.The capacity of described non-volatile memory cells is more than or equal to the capacity of described internal memory; The data rate of described internal memory and described non-volatile memory cells is greater than the data rate of described internal memory and described hard disk.The speed of data preservation and rear date restoring of again powering before can accelerating power-off.
With reference to Fig. 3, the embodiment of the present invention also provides a kind of memory storage 300, is applied to one and has in the electronic equipment of hard disk, comprising:
Internal storage location 31, for storing the first data, internal storage location can preserve the first data when powering;
Particularly, the first data are program in electronic equipment operational process and/or status data.
Usually the RAM used due to electronic equipment (as computing machine) internal memory is a kind of volatile semiconductor memory, can cause the loss of data in internal memory after a loss of power, cannot preserve the routine data before interruption and state at that time.
Flash cell 32, is directly or indirectly connected with internal storage location, and for storing the second data, described flash cell all can preserve described second data when power supply or power-off, and wherein, the capacity of described flash cell is more than or equal to the capacity of described internal storage location;
This nonvolatile semiconductor (flash memory), can continue when power-off to preserve the routine data before interrupting and state at that time; When recovery routine runs, directly can call in internal memory and run, the operation of program capable of fast starting.
In order to the routine data in internal memory is saved in non-volatile memory cells in real time, requires that the capacity of non-volatile memory cells equals memory size, or be greater than memory size.
Wherein, before internal storage location 31 power-off, according to operating steering order by the first data Replica to described flash cell, described second data of preserving in flash cell after making power-off at least comprise described first data;
Wherein, the data rate of internal storage location 31 and hard disk is less than the data rate of described internal storage location and described flash cell.Thus compare with the S4 of prior art, there is obvious speed advantage.
For accelerating the data manipulation speed between internal storage location to described non-volatile memory cells further, being provided with special data channel between internal storage location 31 and flash cell 32, namely internal storage location directly can being connected with flash cell;
Like this, carry out in mirror copy operations process between internal storage location 31 and flash cell 32 and the program of preserving in flash cell 32 is imported in the process of internal storage location 31, transmit data by special data channel, can to resume operation speed by rapid saving faster procedure like this.
Certainly, as long as the data rate meeting internal storage location 31 and flash cell 32 is greater than the data rate of internal storage location 31 and hard disk, also flash cell 32 can be arranged and be connected with computer motherboard, internal storage location 31 carries out data transmission by memory interface and mainboard and flash cell successively.
Preferably, internal storage location 31 and flash cell 32 become one.Concrete integration mode can be:
One data circuit plate, this data circuit plate is provided with internal storage location 31 and memory interface (not shown), and described internal storage location 31 can carry out data communication with computing machine miscellaneous part by described memory interface;
Described data circuit plate also comprises flash cell 32, and described flash cell 32 is connected with described internal storage location 31 by proprietary data passage.
Wherein, described internal storage location 31 and flash cell 32 can be distributed in described data circuit plate one or both sides.
During embody rule, non-volatile memory cells and internal memory can being become one, such as, when producing memory bar, can accordingly non-volatile memory cells be packaged together.
With reference to Fig. 4, the embodiment of the present invention also provides a kind of computing machine 400, comprising:
Central processor CPU 40;
Hard disk 41, for storing various program needed for computer run and data;
Internal storage location 42, is directly or indirectly connected with hard disk 41, and for storing the first data, described internal storage location can preserve described first data when powering;
Particularly, the first data are program in electronic equipment operational process and status data.
Flash cell 43, is directly or indirectly connected with internal storage location 42, and for storing the second data, flash cell 43 all can preserve described second data when power supply or power-off, and wherein, the capacity of flash cell 43 is more than or equal to the capacity of internal storage location 42;
Wherein, the data rate of internal storage location 41 and hard disk 41 is less than the data rate of internal storage location 441 and flash cell 43;
Operational administrative unit 44, is connected with internal storage location 42, and for before internal storage location 42 power-off, control by described first data Replica to flash cell 43, described second data of preserving in flash cell 43 after making power-off at least comprise described first data.Also be connected with flash cell 43, also for gathering current C PU status information and this CPU status information being saved in flash cell 43.
Operational administrative unit 44 also for when internal storage location 42 is again or when restoring electricity, by the first data Replica of preserving in flash cell 43 to internal storage location 42; And CPU state is set according to the CPU status information of preserving.
Operational administrative unit 44 specifically comprises:
Memory block management device 44a, for becoming data block by the first data encapsulation in internal storage location 42; Be connected with flash block manager 44b, after decapsulation is carried out to the data block from flash cell 43, copy to internal storage location 42.
Flash block manager 44b, is connected with memory block management device 44a, for the block copy that described memory block management device 44a encapsulated to flash cell 43.For sending the data block from flash cell 43 to memory block management device 44a.
CPU state information management module 44c, for gathering current C PU status information and this CPU status information being saved in flash cell 43.Certainly, in reduction process, CPU state information management module 44c is also for arranging CPU state according to the CPU status information of preserving.
As shown in Figure 5, flash cell 43 comprises some basic units of storage and CPU state storage unit, the basic unit of storage (Non-volatileMemoryUnit) of flash cell 43 is corresponding with the basic unit of storage (internal storage location 42Unit) of internal memory, be not limited to that position is corresponding with position, byte is corresponding with byte, or module is corresponding with module.
Because the operating unit of internal storage location 42 pairs of data is different from flash memory, so in the data Replica of both sides, the operating unit to data must be unified.
Data manipulation between internal storage location 42 and flash cell 43 is controlled to perform by Action Manager.
Action Manager 44, for the copy command of receiving system, comprises by the data Replica in internal storage location 42 to flash cell 43, and the data in flash cell 43 are to internal storage location 42, comprising:
Memory block management device 44a (RAMBlockManager), for encapsulating (packing) and carrying out decapsulation (unpacking) to the packet from flash cell 43 to internal storage location 42 data.
Described memory block management device 44a comprises:
First receiver module, copies the order of data to flash cell 43 for receiving from internal storage location 42;
Package module, for internal storage data is packaged into packet in order, the size of the corresponding flash block of each packet size;
Sending module, gets out information for sending to flash block manager 44b.
Described memory block management device 44a also comprises:
Second receiver module, copies the order of data to internal storage location 42 for receiving flash cell 43;
Packet acquiring unit, after confirming being ready to of flash block manager 44b, obtains the packet of flash block from flash block manager 44b;
Split module, obtained packet is split into word or byte, and copies position corresponding to internal memory to.
With reference to Fig. 6, the internal storage location 42 received from Action Manager 44 as memory block management device 44a arrives flash cell 43 copy command, and memory block management device 44a is packaged into packet in order internal storage data, the size of the corresponding flash block of each packet size.Then send to flash block manager 44b and get out information.Like this, flash block manager 44b can extract this packet.
When memory block management device 44a receives the copy command of flash cell 43 to internal storage location 42 of Action Manager, if what after this memory block management device 44a received flash block manager 44b gets out information, the packet of a block can be obtained from flash block manager 44b.Then this packet is split into word or byte, and copy the position of internal storage location 42 correspondence to.
Flash block manager 44b (FlashBlockManager), the packet for memory block management device 44a is sent copies to flash cell 43 and sends the data block of flash cell 43 to memory block management device 44a.
Described flash block manager 44b comprises:
First receiver module, copies the order of data to flash cell 43 for receiving from internal storage location 42;
Packet acquisition module, after confirmation memory block management device 44a is ready to, for obtaining packaged packet from memory block management device 44a;
Replication module, for copying the correspondence position of flash cell 43 to by described packet.
Described flash block manager 44b also comprises:
Second receiver module, copies the order of data to internal storage location 42 for receiving from flash cell 43;
Data extraction module, takes out the data block of flash cell 43 in order;
Sending module, for sending to memory block manager 44a the information of being ready to.
With reference to Fig. 7, when flash block manager 44b receives the internal storage location 42 of Action Manager to flash cell 43 copy command, flash block manager 44b waits for that memory block management device 44a's gets out order.Once receive the information of being ready to, flash block manager 44b obtains packaged packet from memory block management device 44a, then copies the correspondence position of flash cell 43 to.
When flash block manager 44b receives the copy command of flash cell 43 to internal storage location 42 of Action Manager, flash block manager 44b takes out flash cell 43 data block in order, and send to memory block manager 44a and get out order, wait for that memory block management device 44a extracts this packet.
In addition, because internal storage location 42 is different from the data manipulation level of flash cell 43, switching levels is needed when carrying out data image replicate run, therefore, be provided with voltage changer for changing data level, as shown in Figure 8, this voltage changer is located in Action Manager usually.Byte/word counter is also provided with, for counting the byte/word of internal storage location 42 Program data in Action Manager 44.
First need the packing of the byte/word of internal storage location 42 Program data to be packaged into block, such as: a block comprises 256 bytes, so need the byte of 256 in internal storage location 42 to be packaged together, then copy flash cell 43 to.Block counter in Action Manager is just to provide the address of block, and namely record copies is to the block sequence number of flash cell 43.
Preferably, computing machine 400 also comprises the first hardware switch (not shown), described first hardware switch is connected with described operational administrative unit, for receiving user operation, make described operational administrative unit before described first storage unit power-off, control described first data Replica to described second storage unit.
Described first hardware switch can be a button, for directly receiving user operation, carries out the first storage unit to the data backup between the second storage unit; Described hardware switch can also be a hardware trigger mechanism, be applied to notebook, described hardware switch is arranged on laptop rotating shaft annex, by user the running time that notebook screens is closed connect and be triggered, carry out the first storage unit equally to the data backup between the second storage unit.
In addition, can the second hardware switch be set in addition, for triggering the data convert of the second storage unit to the first storage unit.
Described second hardware switch can be different from described first hardware switch, also can multiplexing described first hardware switch.Described computing machine also comprises a state detection module (not shown), when detection computations machine is in running status, press the first hardware switch, trigger described first data Replica to described second storage unit, when detection computations machine is in closed condition, pressing the first hardware switch will carry out data convert.
It should be noted that, the program described in the embodiment of the present invention includes operating system program; Multiple non-volatile memory cells can be had selective.
In sum, in the scheme provided in the embodiment of the present invention, by arranging non-volatile memory cells, in program operation process, carrying out mirror copy operations the Program Synchronization in internal memory is saved in this non-volatile memory cells; Running state information when save routine closedown or outage; When program roll back or when recovering, the program of preserving in this non-volatile memory cells is imported described internal memory, and continue working procedure according to preserved running state information.Can accelerated procedure resume speed, quick-recovery interrupts/closes soon program can run, can plug and play be realized for operating system program.Especially compared with prior art, can when economizing on resources, the speed of significantly elevator system/program Save and restore, has significant advantage.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each unit or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple unit in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (12)

1. a data managing method, is applied in a memory storage, and described memory storage is applied to one and has in the electronic equipment of hard disk, comprises the first storage unit, and for storing the first data, described first storage unit can preserve described first data when powering, second storage unit, be connected with described first storage unit, for storing the second data, described second storage unit all can preserve described second data when power supply or power-off, it is characterized in that, described first storage unit and described second storage unit become one and are packaged together, described electronic equipment has a data circuit plate, described data circuit plate is provided with the first storage unit, first storage unit interface and the second storage unit, described second storage unit is directly connected with described first storage unit by special data channel, described first storage unit and described second storage unit distribution are in described data circuit plate one or both sides, the capacity of described second storage unit is more than or equal to the capacity of described first storage unit, the data rate of described first storage unit and described hard disk is less than the data rate of described first storage unit and described second storage unit, wherein, described first storage unit comprises multiple basic unit of storage, described second storage unit comprises multiple basic unit of storage, has one-to-one relationship between the basic unit of storage of described first storage unit and the basic unit of storage of described second storage unit, wherein, described one-to-one relationship comprises that position is corresponding with position, byte is corresponding or module is corresponding with module with byte, the method comprises:
Before described first storage unit power-off, by described first data by described special data channel image copying to position corresponding to described second storage unit, described second data of preserving in described second memory after making power-off at least comprise described first data;
Close described electronic equipment, cut off the power supply of each parts of described electronic equipment; Wherein, each parts of described electronic equipment at least comprise described first storage unit and described second storage unit;
When described first storage unit is again or when restoring electricity, by described first data of preserving in described second storage unit by described special data channel image copying to position corresponding to described first storage unit.
2. the method for claim 1, is characterized in that, described first data are specially:
Before described first storage unit power-off, the program that described electronic equipment runs and/or status data.
3. the method for claim 1, is characterized in that, also comprises:
Before described first storage unit power-off, the status information of central processing unit is saved in described second storage unit.
4. the method for claim 1, is characterized in that, by described first data by described special data channel image copying to position corresponding to described second storage unit, specifically comprise:
The data byte of described first data being stored in described first storage unit is packaged into data block;
In a predetermined order by position corresponding for described second storage unit of described data block write.
5. the method for claim 1, is characterized in that, described by described first data of preserving in described second storage unit by described special data channel image copying to position corresponding to described first storage unit, specifically comprise:
The described first data block-by-block being stored in described second storage unit is read, obtains at least one data block;
At least one data block described is split at least one data byte;
At least one data byte described is write in a predetermined order position corresponding to described first storage unit.
6. a memory storage, is applied to one and has in the electronic equipment of hard disk, it is characterized in that, comprising:
First storage unit, for storing the first data, described first storage unit can preserve described first data when powering;
Second storage unit, directly be connected by special data channel with described first storage unit, for storing the second data, described second storage unit all can preserve described second data when power supply or power-off, wherein, the capacity of described second storage unit is more than or equal to the capacity of described first storage unit;
Wherein, before described first storage unit power-off, according to operation steering order by described first data by described special data channel image copying to position corresponding to described second storage unit, described second data of preserving in described second storage unit after making power-off at least comprise described first data; When described first storage unit is again or when restoring electricity, by described first data of preserving in described second storage unit by described special data channel image copying to position corresponding to described first storage unit;
Wherein, the data rate of described first storage unit and described hard disk is less than the data rate of described first storage unit and described second storage unit;
Described first storage unit and described second storage unit become one and are packaged together, described electronic equipment has a data circuit plate, described data circuit plate is provided with the first storage unit, the first storage unit interface and the second storage unit, described second storage unit is directly connected with described first storage unit by special data channel, and described first storage unit and described second storage unit distribution are in described data circuit plate one or both sides; Wherein, described first storage unit comprises multiple basic unit of storage, described second storage unit comprises multiple basic unit of storage, has one-to-one relationship between the basic unit of storage of described first storage unit and the basic unit of storage of described second storage unit; Wherein, described one-to-one relationship comprises that position is corresponding with position, byte is corresponding or module is corresponding with module with byte.
7. memory storage as claimed in claim 6, is characterized in that,
Special data channel is provided with between described first storage unit and the second storage unit;
Carry out between described first storage unit and the second storage unit in data copy operation process, described special data channel is for transmitting data.
8. a computing machine, is characterized in that, comprising:
Hard disk, for storing the 3rd data;
First storage unit, is directly or indirectly connected with described hard disk, and for storing the first data, described first storage unit can preserve described first data when powering;
Second storage unit, directly be connected with described first storage unit, for storing the second data, described second storage unit all can preserve described second data when power supply or power-off, wherein, the capacity of described second storage unit is more than or equal to the capacity of described first storage unit;
Wherein, the data rate of described first storage unit and described hard disk is less than the data rate of described first storage unit and described second storage unit; Described first storage unit and described second storage unit become one and are packaged together, described computing machine has a data circuit plate, described data circuit plate is provided with the first storage unit, the first storage unit interface and the second storage unit, described second storage unit is connected with described first storage unit by special data channel, and described first storage unit and described second storage unit distribution are in described data circuit plate one or both sides; Wherein, described first storage unit comprises multiple basic unit of storage, described second storage unit comprises multiple basic unit of storage, has one-to-one relationship between the basic unit of storage of described first storage unit and the basic unit of storage of described second storage unit; Wherein, described one-to-one relationship comprises that position is corresponding with position, byte is corresponding or module is corresponding with module with byte;
Operational administrative unit, be connected with described first storage unit, for before described first storage unit power-off, to control described first data by described special data channel image copying to position corresponding to described second storage unit, described second data of preserving in described second storage unit after making power-off at least comprise described first data; And, when described first storage unit is again or when restoring electricity, by described first data of preserving in described second storage unit by described special data channel image copying to position corresponding to described first storage unit;
Power management module, for receiving operational order, closing described computing machine, cutting off the power supply of described each component of computer; Wherein, described each component of computer at least comprises described first storage unit and described second storage unit.
9. computing machine as claimed in claim 8, it is characterized in that, described operational administrative unit comprises:
First storage manager, for becoming data block by described first data encapsulation in described first storage unit;
Second storage manager, is connected with described first storage manager, for by the block copy of described first storage manager encapsulation to position corresponding to described second storage unit.
10. computing machine as claimed in claim 8, it is characterized in that, described computing machine also comprises:
Central processing unit;
Described operational administrative unit also comprises:
Central processing unit state information management module, for gathering the status information of central processing unit and described status information being saved in described second storage unit.
11. computing machines as claimed in claim 8, it is characterized in that, described operational administrative unit comprises:
Second storage manager, for sending the data block from described second storage unit to first storage manager;
First storage manager, is connected with described second storage manager, after carrying out decapsulation to the data block from described second storage unit, copy to position corresponding to described first storage unit.
12. computing machines as claimed in claim 8, it is characterized in that, described computing machine also comprises:
Hardware switch, is connected with described operational administrative unit, for directly or indirectly receiving user operation, makes described operational administrative unit before described first storage unit power-off, controls described first data Replica to described second storage unit.
CN200910086776.9A 2009-06-30 2009-06-30 A kind of data managing method and data storage device Active CN101937376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910086776.9A CN101937376B (en) 2009-06-30 2009-06-30 A kind of data managing method and data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910086776.9A CN101937376B (en) 2009-06-30 2009-06-30 A kind of data managing method and data storage device

Publications (2)

Publication Number Publication Date
CN101937376A CN101937376A (en) 2011-01-05
CN101937376B true CN101937376B (en) 2016-03-30

Family

ID=43390718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910086776.9A Active CN101937376B (en) 2009-06-30 2009-06-30 A kind of data managing method and data storage device

Country Status (1)

Country Link
CN (1) CN101937376B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801748A (en) * 2011-05-23 2012-11-28 中兴通讯股份有限公司 Call protection method and device
EP2793128A4 (en) * 2011-12-13 2016-02-24 Sony Computer Entertainment Inc Information processing device, information processing method, program, and information storage medium
CN102622257B (en) * 2012-04-25 2015-09-09 钜泉光电科技(上海)股份有限公司 The online self refresh method of ammeter and device thereof
CN103377152A (en) * 2012-04-26 2013-10-30 深圳市朗科科技股份有限公司 Write operation control method and write operation device for solid state disk
CN104063338B (en) * 2013-03-18 2018-05-29 华邦电子股份有限公司 Access system and storage device
CN103533047B (en) * 2013-10-12 2017-07-14 华为技术有限公司 Method and apparatus for data discrete standby system of upgrading
CN104572511A (en) * 2013-10-14 2015-04-29 联想(北京)有限公司 Storage device with mixed architecture and computer system
CN104656870A (en) * 2013-11-20 2015-05-27 联想(北京)有限公司 Information processing method and electronic device
CN104808765B (en) * 2014-01-27 2018-01-23 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104850208A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Information processing method and electronic equipment
CN104866438B (en) * 2014-02-20 2019-02-05 联想(北京)有限公司 Storage device, storage apparatus control method and electronic equipment
CN105786545B (en) * 2014-12-25 2021-03-05 研祥智能科技股份有限公司 Breakpoint recovery method and system based on heterogeneous hybrid memory
CN105786544A (en) * 2014-12-25 2016-07-20 研祥智能科技股份有限公司 Method for booting computer system rapidly and booting system of computer
CN106293801A (en) * 2015-06-29 2017-01-04 展讯通信(上海)有限公司 Mobile terminal and data updating method, system and upgrading data generating device
CN105117246A (en) * 2015-08-04 2015-12-02 晶晨半导体(上海)有限公司 Method for rapidly booting electronic equipment
CN107346216B (en) * 2017-06-30 2021-05-18 联想(北京)有限公司 Storage device and data processing method thereof
JP6907976B2 (en) * 2018-03-14 2021-07-21 オムロン株式会社 Controller and data storage method
CN110287064B (en) * 2019-07-02 2020-04-17 成都易我科技开发有限责任公司 Method and device for restoring disk data and electronic equipment
CN113031868B (en) * 2021-03-24 2023-07-21 联想(北京)有限公司 Memory control method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783025A (en) * 2004-12-03 2006-06-07 华为技术有限公司 Embedded system data back-up device and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783025A (en) * 2004-12-03 2006-06-07 华为技术有限公司 Embedded system data back-up device and method

Also Published As

Publication number Publication date
CN101937376A (en) 2011-01-05

Similar Documents

Publication Publication Date Title
CN101937376B (en) A kind of data managing method and data storage device
CN102411523B (en) Method and device for storing file backups and backup method for file systems
CN102567146B (en) Log backup method and device and smart card
US8448023B2 (en) Approach for data integrity in an embedded device environment
US10402104B2 (en) Devices and methods for a data storage device
CN102662802A (en) Full-system power failure recovery method and equipment based on nonvolatile memory
CN103164523A (en) Inspection method, device and system of data consistency inspection
CN114637475A (en) Distributed storage system control method and device and readable storage medium
US8832355B2 (en) Storage device, storage controlling device, and storage controlling method
CN105808462B (en) FPGA (field programmable Gate array) -based simulation memory, realization method of simulation memory and computer
CN104035892A (en) Server system and cluster system
CN106249840A (en) Power saving non-volatile microprocessor
CN114490023B (en) ARM and FPGA-based high-energy physical computable storage device
JPH07175728A (en) Disk cache data maintenance system
CN115167784A (en) Data writing method, device, equipment and storage medium
CN105022676B (en) A kind of memory database redoes log the restoration methods and device of file
CN110286852A (en) Dual control framework distributed memory system, method for reading data, device and storage medium
CN103559119B (en) File operation requests disposal route and device
CN101086717A (en) System and method for storing transient state information
CN105068760A (en) Data storage method, data storage apparatus and storage device
CN111367721A (en) Efficient remote copying system based on nonvolatile memory
CN108228387B (en) A kind of starting control method, electronic equipment and computer readable storage medium
CN115756556A (en) BIOS updating method based on graphic processor
CN115374161A (en) Method and system for improving transaction submitting speed of transactional database
CN115617479A (en) BIOS log storage method and computing equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant