CN101937376A - Data management method and data storage device - Google Patents

Data management method and data storage device Download PDF

Info

Publication number
CN101937376A
CN101937376A CN2009100867769A CN200910086776A CN101937376A CN 101937376 A CN101937376 A CN 101937376A CN 2009100867769 A CN2009100867769 A CN 2009100867769A CN 200910086776 A CN200910086776 A CN 200910086776A CN 101937376 A CN101937376 A CN 101937376A
Authority
CN
China
Prior art keywords
storage unit
data
storage
outage
unit
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.)
Granted
Application number
CN2009100867769A
Other languages
Chinese (zh)
Other versions
CN101937376B (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

Images

Landscapes

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

Abstract

The invention discloses a data management method, which is applied to a storage device in electronic equipment having a hard disk. The storage device comprises a first storage unit and a second storage unit, wherein the first storage unit is used for storing first data; the second storage unit adopts a nonvolatile storage medium and is used for storing second data; the volume of the second storage unit is more than or equal to that of the first storage unit; and the data transmission speeds of the first storage unit and the hard disk are less than or equal to those of the first storage unit and the second storage unit. The method comprises the following steps of: copying the first data to the second storage unit before the first storage unit is cut off, so that the second data stored in the second storage at least comprises the first data after the interruption of power supply; and when the power supply of the first storage unit is recovered, copying the first data stored in the second storage unit to the first storage unit. The invention also provides a corresponding storage device and a computer. According to the invention, a data storage speed before the interruption of the power supply of the equipment and a data recovery speed after the recovery of the power supply can be increased.

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 used for longer-term storage program and associated documents, and computing machine will all will call from hard disk with file and application program.Central processing unit (CPU) will be from the hard disk reading of data, and the speed of the buffer memory of CPU and hard disk differs too big, at this moment needs to have come buffer action by internal memory, and promptly hard disc data is put into internal memory, and CPU reads from internal memory again.
When system's (program) moves, required instruction and data to be called in the internal memory from external memory storage (as hard disk, CD etc.) earlier, CPU again from internal memory reading command or data carry out computing, that is to say, move to the laggard line program of internal memory by the CPU loading procedure, and operation result is deposited in the internal memory.Calculator memory is the memory unit on the mainboard, direct and the internal memory communication of CPU, and with its storage data parts, deposit the data and the program of current (in promptly carrying out) of using, its physical substance is exactly one or more groups integrated circuit that possesses data input and output and data storage function, and internal memory only is used for temporarily depositing program and data.The random access memory (RAM, Random Access Memory) that calculator memory uses is a kind of volatile semiconductor, after outage, can't preserve original state.In case powered-down or cut off the power supply, program wherein and data will be lost.
System's (program) start or in when having no progeny again the recovery routine operation, need to start the sequence of operations of hard disk, comprising: power on, self check, operating system be loaded into internal memory, operating system etc., these action needs a large amount of times of cost finish.Because the characteristic and the operational scheme of external memory storage (as: hard disk) itself certainly will cause speed slow, length consuming time.
In the process of computer on/off, although the computer hardware travelling speed is more and more faster, the volume of operating system is also in continuous expansion, and when making computing machine open and close machine, the program that starts, closes is more and more, and spended time is also more and more longer.As the Windows XP os starting time be 40 second time, if add other softwares of user, start-up course reaches 2 minutes or longer.Upgrading along with hardware and software, operating system begins to have introduced Advanced Program Zoom interface (ACPI, Advanced Configuration and Power Management Interface), its effect is exactly a closed portion equipment when computer is idle, ACPI has six kinds of states, be respectively that S0 is to S5, wherein
S3 suspends to internal memory (STR, Suspend to RAM), and the operating state data that system is entered before the STR state all is kept in the internal memory, and power supply continues as the internal memory power supply, and guaranteeing data for losing, and other equipment all is in closed condition;
S4 suspends to hard disk (STD, Suspend to Disk), and the operating state data of system all writes hard disk, and at this moment system's primary power cuts out, but hard disk is still charged and can be waken up;
The inventor finds that in realizing process of the present invention there is following defective in prior art: if system is waken up from the S3 state, system is reading of data and return to duty before the STR from internal memory at once.Because the read or write speed of internal memory is exceedingly fast, so system is very fast from S3 recovering state speed, keeps the power supply to internal memory all the time but prerequisite is the S3 process need, therefore wasted resource; And the waking up of S4 state, because the read or write speed of hard disk self is slow, so system start-up also still needs for a long time.
Therefore, need a kind of can rapid saving under the situation of power saving as far as possible and the scheme of restore data.
Summary of the invention
The embodiment of the invention provides a kind of data managing method and data storage device, the speed that data are preserved and the back data of powering are again recovered before can accelerating to cut off the power supply.
A kind of data managing method that the embodiment of the invention provides, be applied in the memory storage, described memory storage is applied to one to have in the electronic equipment of hard disk, comprises first storage unit, be used to store first data, described first storage unit can be preserved described first data when power supply; Second storage unit, be connected with described first storage unit, be used to store second data, described second storage unit all can be preserved described second data when power supply or outage, 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; This method comprises:
Before described first storage unit outage, described first data are copied to described second storage unit, make described second data of preserving in the described second memory in outage back comprise described first data at least.
A kind of memory storage that the embodiment of the invention provides is applied to one and has in the electronic equipment of hard disk, comprising:
First storage unit is used to store first data, and described first storage unit can be preserved described first data when power supply;
Second storage unit, directly or indirectly be connected with described first storage unit, be used to store second data, described second storage unit all can be preserved described second data when power supply or outage, 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 outage, described first data are copied to described second storage unit, make described second data of preserving in described second storage unit in outage back comprise described first data at least according to the operation steering order;
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 invention also provides a kind of computing machine, comprising:
Hard disk is used to store the 3rd data;
First storage unit directly or indirectly is connected with described hard disk, is used to store first data, and described first storage unit can be preserved described first data when power supply;
Second storage unit, directly or indirectly be connected with described first storage unit, be used to store second data, described second storage unit all can be preserved described second data when power supply or outage, 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;
The operational administrative unit, be connected with described first storage unit, be used for before described first storage unit outage, control copies to described second storage unit with described first data, makes described second data of preserving in described second storage unit in outage back comprise described first data at least.
In sum, in the scheme that provides in the embodiment of the invention, by first storage unit and second storage unit are set, the capacity of second storage unit is more than or equal to the capacity of first storage unit; The data rate of first storage unit and second storage unit is greater than the data rate of first storage unit and hard disk; First storage unit is carried out the image copying operation data sync in first storage unit is saved in second storage unit in program operation process; Running state information when preserving device shutdown or outage; When program roll back or recovery, the program of preserving in second storage unit is imported first storage unit, and continue working procedure according to the running state information of being preserved.Can accelerate the equipment speed that thoroughly the preceding data of outage are preserved and the back data of powering are again recovered.
Description of drawings
Bolt down procedure workflow diagram in the data managing method that Fig. 1 provides for the embodiment of the invention;
Recovery routine workflow diagram in the data managing method that Fig. 2 provides for the embodiment of the invention;
Fig. 3 constitutes synoptic diagram for the memory device that provides in the embodiment of the invention;
A kind of computer architecture synoptic diagram of Fig. 4 for providing in the embodiment of the invention;
Fig. 5 is the data management system in the embodiment of the invention and the annexation synoptic diagram of memory storage;
In the Action Manager that Fig. 6 provides for the embodiment of the invention from the operating process synoptic diagram of internal storage location to the non-volatile memory modules copy data;
In the Action Manager that Fig. 7 provides for the embodiment of the invention from the operating process synoptic diagram of non-volatile memory modules to the internal storage location copy data;
Fig. 8 is the function switching signal synoptic diagram of the Action Manager in the embodiment of the invention.
Embodiment
In view of the defective that exists in the prior art, the present invention proposes a kind of data managing method, is applied to one and has in the electronic equipment of hard disk, and this electronic equipment comprises first storage unit, be used to store first data, first storage unit can be preserved described first data when power supply; Second storage unit is connected with first storage unit, is used to store second data, and described second storage unit all can be preserved described second data when power supply or outage, and the capacity of second storage unit is more than or equal to the capacity of first storage unit; The data rate of first storage unit and hard disk is less than the data rate of first storage unit and second storage unit; This method comprises:
Before the outage of first storage unit, described first data are copied to second storage unit, make described second data of preserving in the second memory of outage back comprise first data at least.
Before the outage of first storage unit, the program and/or the CPU status data of described electronic equipment operation.
When first storage unit again or when restoring electricity, first data of preserving in second storage unit are copied to first storage unit.
In the specific embodiments of the invention, first storage unit can adopt different memory modules as requested with second storage unit.Particularly, first storage unit is volatile memory cell (such as internal memory RAM), and second storage unit is non-volatile memory cells (such as flash memory Flash).First data are specially the routine data in the electronic equipment operational process.
In the electronic equipment operational process, first storage unit and second storage unit are carried out the image copying operation, promptly the data integrity in the internal memory be kept in the non-volatile memory cells, and further preserve the CPU status information.When close because of electronic equipment make all stops before or cause program run to be interrupted because of other situations before, data and status information are kept in the non-volatile memory cells, like this when preparing the recovery routine operation, only need directly with the image program data of preserving in the non-volatile memory cells orderly be reduced to internal memory RAM, recover the CPU state simultaneously.Like this, the system that can reduce rapidly when preserving moves scene, and accelerated procedure (comprising: operating system) toggle speed.
In addition, data between first storage unit and second storage unit are duplicated, can be in not influencing the electronic equipment normal course of operation regularly carry out, thereby when the program of electronic equipment enters undesired state (such as collapse or deadlock time), can revert to a data doubling time point rapidly; The data of first storage unit and second storage unit are duplicated, can also be when the electronic device works state variation (such as user's manual operation time) carry out.
For making principle of the present invention, characteristic and advantage clearer, be described in detail below.
For ease of the explanation, among the following embodiment with internal storage location as first storage unit, non-volatile memory cells is described as second storage unit.
With reference to Fig. 1, after the program of electronic equipment brings into operation, can carry out the routine data image copying operation of internal memory to non-volatile memory cells, and the preservation of CPU current state information, adopt during for follow-up power supply again or recovery.The data managing method that the embodiment of the invention provides specifically comprises:
S101, before internal memory outage, from internal memory to non-volatile memory cells image copying data;
In program operation process, before the internal memory outage, described non-volatile memory cells is arrived in the routine data image copying of internal memory, the program in the internal memory is saved in non-volatile memory cells;
Mirror image (Mirroring) is a kind of mode of redundancy backup, and the data on storage medium exist an identical copy to be mirror image on another storage medium.At this, image copying operation be exactly in non-volatile memory cells, copy one with internal memory in the identical data file of program so that in the recovery routine run time call.Certainly as long as guarantee the correctly reductibility of data, also can adopt other backup modes, such as the discrete storage mode of record order linking relationship.
In the present embodiment, with the basic unit of storage of flash memory flash as non-volatile memories, flash is made up of some (block), and piece is made up of some pages or leaves (page), and page or leaf is made up of some byte/word (byte/word).
The write operation process of Flash is as follows:
Write page or leaf (page) after wiping piece (block) earlier.Before carrying out write operation, wipe the piece (block) (writing 0xff in the memory cell block that will wipe) at page or leaf (page) place of desiring to write data earlier, write data in proper order by page or leaf again.
Program among the internal memory RAM is saved in flash, because the special read-write mode of flash is different with the read-write mode of internal memory, thus need with the packing data in the internal memory piece (block), so that the consistance on the read-write operation.
S102, before the internal memory outage, the CPU status information that current C PU status information is saved in non-volatile memory cells is preserved the unit;
Before the internal memory outage, the middle current information of each register (as program register and status register) of gathering CPU is a current C PU status information, and these CPU status informations are saved in non-volatile memory cells.
S103 closes the program or the system of electronic equipment.
Give electronic equipment each parts outage, will close the program of moving, cut off the power supply of internal memory.After the internal memory outage, still preserve the routine data of the preceding internal memory of outage in the non-volatile memory cells.
Wherein S101 and S102 do not have the relation on the execution sequence, can carry out S101 earlier and carry out S102 again, carry out S102 after can carrying out S101 earlier yet, can also S101 and S102 carry out simultaneously.
With reference to Fig. 2, restart routine after electronic equipment restores electricity: receiving the program start instruction, opening the image copying of non-volatile memory cells, recovering the CPU state, rerun routine to internal memory.
The data managing method that the embodiment of the invention provides also comprises data managing method in the 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 recovery, accept the start-up routine action command, the routine data of preserving in the described non-volatile memory cells is imported described internal storage location.
The read operation of Flash is to be the minimum unit of reading with page or leaf (page).Also be provided with the byte/word counter in the Action Manager, be used for the page or leaf (page) of Flash is counted.
Particularly, block-by-block sense data from non-volatile memory cells (flash memory Flash) is split into piece the plurality of data byte again, is that unit arrives described internal memory with copying data in the flash memory with the byte.
S202 utilizes the CPU status information of preserving in the non-volatile memory cells that the CPU state is set;
When program roll back or recovery, the CPU status information of preserving before from described non-volatile memory cells, obtaining, and according to the CPU status information relative set CPU that is preserved, recover the CPU state, promptly the value according to each register (as program register and status register) of the CPU that preserves is provided with each register of CPU, to continue working procedure.
Same, wherein S201 and S202 do not have the relation on the execution sequence, can carry out S201 earlier and carry out S202 again, carry out S202 after can carrying out S201 earlier yet, can also S201 and S202 carry out simultaneously.
S203, the program roll back of electronic equipment.
Rerun described electronic equipment based on the routine data in CPU state that is recovered and the importing internal memory.
Above-mentioned opening program process and bolt down procedure process can independently be carried out, and do not have paired requirement.
In the foregoing description, in program operation process, carry out the image copying operation data sync in the internal memory is saved in non-volatile memory cells; Running state information when preserving device shutdown or outage; When program roll back or recovery, the program of preserving in the non-volatile memory cells is imported internal memory, and continue working procedure according to the running state information of being preserved.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 that data are preserved and the back data of powering are again recovered before can accelerating to cut off the power supply.
With reference to Fig. 3, the embodiment of the 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 is used to store first data, and internal storage location can be preserved first data when power supply;
Particularly, first data are program and/or the status data in the electronic equipment operational process.
The common RAM that uses owing to electronic equipment (as computing machine) internal memory is a kind of volatile semiconductor memory, can cause the loss of data in the internal memory after outage, and the routine data that can't preserve before interrupting reaches state at that time.
Flash cell 32 directly or indirectly is connected with internal storage location, is used to store second data, and described flash cell all can be preserved described second data when power supply or outage, 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), the routine data that can continue to preserve before interrupting when outage reaches state at that time; During the recovery routine operation, can directly call in the internal memory and move, the operation of program capable of fast starting.
For the routine data in the internal memory is saved in non-volatile memory cells in real time, require the capacity of non-volatile memory cells to equal memory size, or greater than memory size.
Wherein, before internal storage location 31 outages, first data are copied to described flash cell, make described second data of preserving in the flash cell of outage back comprise described first data at least according to the operation steering order;
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.Thereby compare with the S4 of prior art, have the obvious speed advantage.
For further accelerating internal storage location to the data manipulation speed between the described non-volatile memory cells, be provided with special data channel between internal storage location 31 and the flash cell 32, promptly internal storage location directly can be connected with flash cell;
Like this, the program of carrying out in the image copying operating process between internal storage location 31 and flash cell 32 and preserving in flash cell 32 imports in the process of internal storage location 31, by special data channel transmission data, but the rapid saving faster procedure speed of resuming operation like this.
Certainly, as long as satisfy the data rate of the data rate of internal storage location 31 and flash cell 32 greater than internal storage location 31 and hard disk, also flash cell 32 setting can 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 becomes one with flash cell 32.Concrete integration mode can for:
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 the 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 the 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 concrete the application, non-volatile memory cells and internal memory can be become one, for example when producing memory bar, can accordingly non-volatile memory cells be packaged together.
With reference to Fig. 4, the embodiment of the invention also provides a kind of computing machine 400, comprising:
Central processor CPU 40;
Hard disk 41 is used for required various programs and the data of storage computation machine operation;
Internal storage location 42 directly or indirectly is connected with hard disk 41, is used to store first data, and described internal storage location can be preserved described first data when power supply;
Particularly, first data are program and the status data in the electronic equipment operational process.
Flash cell 43 directly or indirectly is connected with internal storage location 42, is used to store second data, and flash cell 43 all can be preserved described second data when power supply or outage, 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, is used for before internal storage location 42 outages, and control copies to flash cell 43 with described first data, makes described second data of preserving in the flash cell 43 of outage back comprise described first data at least.Also be connected, also be used for gathering current C PU status information and this CPU status information is saved in flash cell 43 with flash cell 43.
Operational administrative unit 44 also is used for when internal storage location 42 again or when restoring electricity first data of preserving in the flash cell 43 being copied to internal storage location 42; And the CPU status information that foundation is preserved is provided with the CPU state.
Operational administrative unit 44 specifically comprises:
Memory block management device 44a is used for first data encapsulation of internal storage location 42 is become data block; 44b is connected with the flash block manager, is used for carrying out copying to internal storage location 42 after the decapsulation from the data block of flash cell 43.
Flash block manager 44b, 44a is connected with the memory block management device, is used for flash cell 43 is arrived in the block copy of described memory block management device 44a encapsulation.Be used for to send memory block management device 44a to from the data block of flash cell 43.
CPU state information management module 44c is used for gathering current C PU status information and this CPU status information is saved in flash cell 43.Certainly in reduction process, CPU state information management module 44c also is used for according to the CPU status information of preserving the CPU state being set.
As shown in Figure 5, comprise some basic units of storage and CPU state preservation unit in the flash cell 43, the basic unit of storage of flash cell 43 (Non-volatile Memory Unit) is corresponding with the basic unit of storage (internal storage location 42Unit) of internal memory, be not limited to the position with corresponding, byte is corresponding with byte, perhaps module is corresponding with module.
Because the operating unit of 42 pairs of data of internal storage location is different from flash memory, so in both sides' data are duplicated, must unified operating unit to data.
Data manipulation between internal storage location 42 and the flash cell 43 is carried out by Action Manager control.
Action Manager 44 is used for the copy command of receiving system, comprises the data in the internal storage location 42 are copied to data in flash cell 43 and the flash cell 43 to internal storage location 42, comprising:
Memory block management device 44a (RAM Block Manager) is used for internal storage location 42 data are encapsulated (packing) and the packet from flash cell 43 is carried out decapsulation (unpacking).
Described memory block management device 44a comprises:
First receiver module is used to receive the order from internal storage location 42 copy datas to flash cell 43;
Package module is used for internal storage data is packaged into packet in order, the size of the corresponding flash block of each packet size;
Sending module is used for sending the information that is ready to flash block manager 44b.
Described memory block management device 44a also comprises:
Second receiver module is used to receive the order of flash cell 43 copy datas to internal storage location 42;
The 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, the packet that is obtained is split into word or byte, and copy the position of internal memory correspondence to.
With reference to Fig. 6, the internal storage location of receiving from Action Manager 44 as memory block management device 44a 42 arrives flash cell 43 copy commands, and memory block management device 44a is packaged into packet in order to internal storage data, the size of the corresponding flash block of each packet size.Send the information that is ready to flash block manager 44b then.Like this, flash block manager 44b can extract this packet.
When memory block management device 44a receives the copy command of the flash cell 43 of Action Manager to internal storage location 42, if after this memory block management device 44a receives the information that is ready to of flash block manager 44b, can obtain the packet of a piece from flash block manager 44b.Then this packet is split into word or byte, and copy the position of internal storage location 42 correspondences to.
Flash block manager 44b (Flash Block Manager) is used for the packet that memory block management device 44a sends is copied 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 is used to receive the order from internal storage location 42 copy datas to flash cell 43;
The packet acquisition module after confirming that memory block management device 44a is ready to, is used for obtaining packaged packet from memory block management device 44a;
Replication module is used for described packet is copied to the correspondence position of flash cell 43.
Described flash block manager 44b also comprises:
Second receiver module is used to receive the order from flash cell 43 copy datas to internal storage location 42;
Data extraction module is taken out the data block of flash cell 43 in order;
Sending module is used for sending the information of being ready to memory block manager 44a.
With reference to Fig. 7, the internal storage location 42 of receiving Action Manager as flash block manager 44b arrives flash cell 43 copy commands, and flash block manager 44b waits for the order that is ready to of memory block management device 44a.In case receive the information of being ready to, flash block manager 44b obtains packaged packet from memory block management device 44a, copies the correspondence position of flash cell 43 then to.
When flash block manager 44b receives the copy command of the flash cell 43 of Action Manager to internal storage location 42, flash block manager 44b takes out a data block of flash cell 43 in order, and send to memory block manager 44a and to be ready to order, wait for that memory block management device 44a extracts this packet.
In addition, because internal storage location 42 is different with the data manipulation level of flash cell 43, when carrying out the data image replicate run, need switching levels, therefore, be provided with voltage changer and be used for the data level is changed, as shown in Figure 8, this voltage changer is located in the Action Manager usually.Also be provided with the byte/word counter in the Action Manager 44, be used for the byte/word of internal storage location 42 routine datas is counted.
At first need the byte/word packing of routine data in the internal storage location 42 is packaged into block, such as: a block comprises 256 bytes, needs so 256 bytes in the internal storage location 42 are packaged together, and copies flash cell 43 again to.Block counter in the Action Manager just provides the address of piece, and promptly record copies is to the piece 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, be used to receive user's operation, make described operational administrative unit before described first storage unit outage, control copies to described second storage unit with described first data.
Described first hardware switch can be a button, is used for directly receiving user's operation, carries out the data backup of first storage unit between second storage unit; Described hardware switch can also be a hardware trigger mechanism, be applied to notebook, described hardware switch is arranged on notebook rotating shaft annex, the running time of the notebook screen being closed by the user connects and is triggered, and carries out the data backup of first storage unit between second storage unit equally.
In addition, second hardware switch can be set in addition, be used to trigger of the reduction of data of second storage unit to first storage unit.
Described second hardware switch can be different with described first hardware switch, also can multiplexing described first hardware switch.Described computing machine also comprises a state detection module (not shown), when the detection computations machine is in running status, press first hardware switch, trigger described first data are copied to described second storage unit, when the detection computations machine is in closed condition, presses first hardware switch and will carry out reduction of data.
Need to prove that the program described in the embodiment of the invention includes operating system program; Can there be a plurality of non-volatile memory cells selective.
In sum, in the scheme that provides in the embodiment of the invention,, in program operation process, carry out the image copying operation Program Synchronization in the internal memory is saved in this non-volatile memory cells by non-volatile memory cells is set; Save routine is closed or the running state information during outage; When program roll back or recovery, the program of preserving in this non-volatile memory cells is imported described internal memory, and continue working procedure according to the running state information of being preserved.Can the accelerated procedure resume speed, the quick-recovery program run interrupting/close soon can realize plug and play for operating system program.Especially compared with prior art, can be under situation about economizing on resources, the speed of elevator system/program preservation and recovery has significant advantage significantly.
Obviously, those skilled in the art should be understood that, above-mentioned each unit of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of unit in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (15)

1. a data managing method is applied in the memory storage, and described memory storage is applied to one to have in the electronic equipment of hard disk, comprises first storage unit, is used to store first data, and described first storage unit can be preserved described first data when power supply; Second storage unit, be connected with described first storage unit, be used to store second data, described second storage unit all can be preserved described second data when power supply or outage, it is characterized in that 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; This method comprises:
Before described first storage unit outage, described first data are copied to described second storage unit, make described second data of preserving in the described second memory in outage back comprise described first data at least.
2. the method for claim 1 is characterized in that, described first data are specially:
Before described first storage unit outage, the program and/or the status data of described electronic equipment operation.
3. the method for claim 1 is characterized in that, also comprises:
Before the outage of described first storage unit, the status information of central processing unit is saved in described second storage unit.
4. the method for claim 1 is characterized in that, further comprises:
When described first storage unit again or when restoring electricity, described first data of preserving in described second storage unit are copied to described first storage unit.
5. the method for claim 1 is characterized in that, described first data are copied to described second storage unit, specifically comprises:
The data byte that is stored in described first data of described first storage unit is packaged into data block;
By predefined procedure described data block is write described second storage unit.
6. method as claimed in claim 4 is characterized in that, described described first data of preserving in described second storage unit is copied to described first storage unit, specifically comprises:
The described first data block-by-block that is stored in described second storage unit is read, obtained at least one data block;
Described at least one data block is split at least one data byte;
Described at least one data byte is write described first storage unit by predefined procedure.
7. 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 is used to store first data, and described first storage unit can be preserved described first data when power supply;
Second storage unit, directly or indirectly be connected with described first storage unit, be used to store second data, described second storage unit all can be preserved described second data when power supply or outage, 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 outage, described first data are copied to described second storage unit, make described second data of preserving in described second storage unit in outage back comprise described first data at least according to the operation steering order;
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.
8. memory storage as claimed in claim 7 is characterized in that,
Be provided with special data channel between described first storage unit and second storage unit;
Carry out between described first storage unit and second storage unit in the data replicate run process, described special data channel is used to transmit data.
9. memory storage as claimed in claim 7 is characterized in that,
Described first storage unit and second storage unit become one.
10. a computing machine is characterized in that, comprising:
Hard disk is used to store the 3rd data;
First storage unit directly or indirectly is connected with described hard disk, is used to store first data, and described first storage unit can be preserved described first data when power supply;
Second storage unit, directly or indirectly be connected with described first storage unit, be used to store second data, described second storage unit all can be preserved described second data when power supply or outage, 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;
The operational administrative unit, be connected with described first storage unit, be used for before described first storage unit outage, control copies to described second storage unit with described first data, makes described second data of preserving in described second storage unit in outage back comprise described first data at least.
11. computing machine as claimed in claim 10 is characterized in that,
Described operational administrative unit is used for when described first storage unit again or when restoring electricity described first data of preserving in described second storage unit being copied to described first storage unit.
12. computing machine as claimed in claim 10 is characterized in that, described operational administrative unit comprises:
First storage manager is used for described first data encapsulation of described first storage unit is become data block;
Second storage manager is connected with described first storage manager, is used for described second storage unit is arrived in the block copy of described first storage manager encapsulation.
13. computing machine as claimed in claim 10 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 is used for gathering the status information of central processing unit and described status information is saved in described second storage unit.
14. computing machine as claimed in claim 11 is characterized in that, described operational administrative unit comprises:
Second storage manager is used for sending the data block from described second storage unit to first storage manager;
First storage manager is connected with described second storage manager, is used for copying to described first storage unit to carrying out from the data block of described second storage unit after the decapsulation.
15. computing machine as claimed in claim 10 is characterized in that, described computing machine also comprises:
Hardware switch is connected with described operational administrative unit, is used for directly or indirectly receiving user's operation, makes described operational administrative unit before described first storage unit outage, and control copies to described second storage unit with described first data.
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 true CN101937376A (en) 2011-01-05
CN101937376B 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)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622257A (en) * 2012-04-25 2012-08-01 钜泉光电科技(上海)股份有限公司 On-line meter self-updating method and device
CN102801748A (en) * 2011-05-23 2012-11-28 中兴通讯股份有限公司 Call protection method and device
CN103377152A (en) * 2012-04-26 2013-10-30 深圳市朗科科技股份有限公司 Write operation control method and write operation device for solid state disk
CN103533047A (en) * 2013-10-12 2014-01-22 华为技术有限公司 Method and equipment for updating data discrete backup system
CN103975308A (en) * 2011-12-13 2014-08-06 索尼电脑娱乐公司 Information processing device, information processing method, program, and information storage medium
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
CN104808765A (en) * 2014-01-27 2015-07-29 联想(北京)有限公司 Information processing method and electronic equipment
CN104850208A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Information processing method and electronic equipment
CN104866438A (en) * 2014-02-20 2015-08-26 联想(北京)有限公司 Storage device, storage device control method and electronic equipment
CN105117246A (en) * 2015-08-04 2015-12-02 晶晨半导体(上海)有限公司 Method for rapidly booting electronic equipment
CN105786545A (en) * 2014-12-25 2016-07-20 研祥智能科技股份有限公司 Breakpoint restoration method and system based on heterogeneous hybrid memories
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
CN107346216A (en) * 2017-06-30 2017-11-14 联想(北京)有限公司 A kind of storage device and its data processing method
CN104063338B (en) * 2013-03-18 2018-05-29 华邦电子股份有限公司 Access system and storage device
CN110275797A (en) * 2018-03-14 2019-09-24 欧姆龙株式会社 Controller and data save method
CN110287064A (en) * 2019-07-02 2019-09-27 成都易我科技开发有限责任公司 A kind of restoring method of data in magnetic disk, device and electronic equipment
CN113031868A (en) * 2021-03-24 2021-06-25 联想(北京)有限公司 Control method and device of memory

Family Cites Families (1)

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

Cited By (27)

* 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
CN103975308A (en) * 2011-12-13 2014-08-06 索尼电脑娱乐公司 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
CN102622257A (en) * 2012-04-25 2012-08-01 钜泉光电科技(上海)股份有限公司 On-line meter self-updating method and device
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
CN103533047A (en) * 2013-10-12 2014-01-22 华为技术有限公司 Method and equipment for updating data discrete backup system
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
CN104808765A (en) * 2014-01-27 2015-07-29 联想(北京)有限公司 Information processing method and electronic equipment
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
CN104866438A (en) * 2014-02-20 2015-08-26 联想(北京)有限公司 Storage device, storage device control 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
CN105786545A (en) * 2014-12-25 2016-07-20 研祥智能科技股份有限公司 Breakpoint restoration method and system based on heterogeneous hybrid memories
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
CN107346216A (en) * 2017-06-30 2017-11-14 联想(北京)有限公司 A kind of storage device and its data processing method
CN107346216B (en) * 2017-06-30 2021-05-18 联想(北京)有限公司 Storage device and data processing method thereof
CN110275797A (en) * 2018-03-14 2019-09-24 欧姆龙株式会社 Controller and data save method
CN110275797B (en) * 2018-03-14 2023-05-23 欧姆龙株式会社 Controller and data storage method
CN110287064A (en) * 2019-07-02 2019-09-27 成都易我科技开发有限责任公司 A kind of restoring method of data in magnetic disk, device and electronic equipment
CN110287064B (en) * 2019-07-02 2020-04-17 成都易我科技开发有限责任公司 Method and device for restoring disk data and electronic equipment
CN113031868A (en) * 2021-03-24 2021-06-25 联想(北京)有限公司 Control method and device of memory

Also Published As

Publication number Publication date
CN101937376B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN101937376A (en) Data management method and data storage device
US6336161B1 (en) Computer configuration system and method with state and restoration from non-volatile semiconductor memory
KR950010826B1 (en) Apparatus and method for suspending and resuming software on a computer
CN101887393B (en) Equipment fault reproduction method and system based on para-virtualization technique
CN101251826B (en) Flash memory, method and apparatus for data management of flash memory
JP5445463B2 (en) Computer system, data storage method and program
US20070168937A1 (en) Apparatus and method of application virtualization
US8589647B2 (en) Apparatus and method for synchronizing a snapshot image
CN101937344B (en) Computer and method for quickly starting same
CN103197934A (en) Method for starting multimedia device and multimedia device
CN103516549A (en) File system metadata log mechanism based on shared object storage
US6453396B1 (en) System, method and computer program product for hardware assisted backup for a computer mass storage system
JPH07175728A (en) Disk cache data maintenance system
CN114490023B (en) ARM and FPGA-based high-energy physical computable storage device
US9933953B1 (en) Managing copy sessions in a data storage system to control resource consumption
CN103559119B (en) File operation requests disposal route and device
US20190324868A1 (en) Backup portion of persistent memory
CN110286852A (en) Dual control framework distributed memory system, method for reading data, device and storage medium
US20190026195A1 (en) System halt event recovery
CN115374161A (en) Method and system for improving transaction submitting speed of transactional database
KR101888781B1 (en) Persistent dynamic random access memory storage using non-volatile ram and operating method therefof
US11334450B1 (en) Backup method and backup system for virtual machine
CN116578446B (en) Virtual machine backup method, device and system, electronic equipment and storage medium
US7761737B2 (en) Apparatus, method, and computer product for executing program
CN111198746B (en) Communication method and system between hosts based on shared storage in virtualized cluster

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