CN101620460A - Computer system dormancy method and computer system - Google Patents

Computer system dormancy method and computer system Download PDF

Info

Publication number
CN101620460A
CN101620460A CN200810116070A CN200810116070A CN101620460A CN 101620460 A CN101620460 A CN 101620460A CN 200810116070 A CN200810116070 A CN 200810116070A CN 200810116070 A CN200810116070 A CN 200810116070A CN 101620460 A CN101620460 A CN 101620460A
Authority
CN
China
Prior art keywords
memory
data
backup
computer system
backups
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200810116070A
Other languages
Chinese (zh)
Inventor
李众庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN200810116070A priority Critical patent/CN101620460A/en
Publication of CN101620460A publication Critical patent/CN101620460A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a computer system dormancy method and a computer system. The method comprises the following steps: acquiring an instruction of the computer system entering a dormancy mode; copying memory variable data from the moment of the last memory backup onto a nonvolatile memory on the basis of the instruction, and executing the memory backup before acquiring the instruction of the computer system entering the dormancy mode; and when the memory variable data from the moment of the last memory backup is copied onto the nonvolatile memory, entering enters the dormancy mode of the computer system. The computer system dormancy method can greatly reduce the data quantity copied from a memory onto a hard disk when the system enters the dormancy mode, thereby effectively reducing the waiting time of a user.

Description

A kind of computer system dormancy method and a kind of computer system
Technical field
The present invention relates generally to computer realm, relates in particular to a kind of computer system dormancy method and a kind of computer system.
Background technology
Present operating system (OS) is representative with the operating system windows of Microsoft, and the startup and shutdown process is very slow, and in order to solve the slow problem of switching on and shutting down, industry has adopted S3, the mode of S4.
The mode of S4 is equivalent to suspend to hard disk, just we are said enters " dormancy " state, this process is saved in hard disk with data all in the internal memory, when recovering, only need the Backup Data in the hard disk is loaded in the internal memory, start-up time is shorter than S5, and can return to the state before the shutdown fully, not need to reopen file or working procedure.But along with the configuration of present internal memory is more and more higher, and the demand to internal memory increases day by day in system's operational process, the data that cause system need backup in the hard disk when entering " dormancy " are increasing, and cause thus adopting S4 as the mode of shutdown to wait for chronic.This also is a very painful thing during present system uses.
Summary of the invention
A purpose of the present invention is to provide a kind of computer system dormancy method, to solve prior art when entering park mode, owing to the total data in the internal memory need be copied to the problem that copy time is long, shutdown is slow that hard disk causes.
Another object of the present invention is to provide a kind of computer system, to solve existing computer system when entering park mode, owing to the total data in the internal memory need be copied to the problem that copy time is long, shutdown is slow that hard disk causes.
For addressing the above problem, the invention discloses a kind of computer system dormancy method, described method comprises:
Obtain the instruction that described computer system enters park mode;
Obtain the instruction that described computer system enters park mode;
Based on described instruction, the copying data that will change in the moment of last Memory Backup internal memory is to nonvolatile memory, and described last Memory Backup is carried out before in the instruction that described acquisition computer system enters park mode;
After the described copying data that will change in the moment of last Memory Backup internal memory was finished to nonvolatile memory, described computer system entered park mode.
Preferably, described Memory Backup is carried out at least once.
Preferably, also comprise before the described Memory Backup:
Described internal memory is divided into a plurality of districts; Each piece district in the described a plurality of districts has a zone bit, and whether the data that described zone bit is used for identifying described district need backup;
Described Memory Backup comprises:
When described zone bit is designated when needing Status of Backups, will with the described copying data in the corresponding piece district of the described zone bit that needs Status of Backups that comprises to described nonvolatile memory; After copy finishes, the zone bit in the described piece district that is copied is designated need not Status of Backups;
If detect the piece district that exists piece district data to change in the described a plurality of districts, the zone bit that identifies the piece district that described data change is the needs Status of Backups;
The described data that change in the moment of last Memory Backup internal memory are data that current mark bit is designated needs the piece of Status of Backups district.
Preferably, also comprise before the described Memory Backup:
The internal storage data MIRROR SITE is set in described nonvolatile memory;
Described Memory Backup comprises:
Relatively whether the data in the internal memory are identical with data in the described internal storage data MIRROR SITE, as if inequality, copy described internal memory to described internal storage data MIRROR SITE with respect to the variance data of described internal storage data MIRROR SITE;
The described data that change in the moment of last Memory Backup internal memory are that current data is compared the variance data that is obtained with described internal storage data MIRROR SITE in the described internal memory.
Preferably, described last Memory Backup is the use habit by the user who adds up described computer system, obtains described user and sends the previous moment that enters the park mode instruction time as the execution of described last Memory Backup constantly.
For addressing the above problem, the invention also discloses a kind of computer system, comprise CPU (central processing unit), internal memory and nonvolatile memory, described system also comprises:
The dormancy instruction fetch unit is used to obtain the instruction that described computer system enters park mode;
The Memory Backup unit is used for the data of internal memory are backuped to nonvolatile memory;
The dormancy control module, be used for carrying out for the last time from the Memory Backup unit copying data that the moment internal memory of Memory Backup changes to nonvolatile memory, described Memory Backup unit is carried out Memory Backup for the last time and was carried out before described dormancy instruction fetch unit obtains instruction that computer system enters park mode;
The dormancy unit is used for described computer system and is set to park mode
Preferably, described system also comprises:
The Memory Backup control module is used to control described Memory Backup unit and carries out at least Memory Backup.Preferably, described system also comprises:
Zoning unit is used for internal memory is divided into a plurality of districts; Each piece district in the described a plurality of districts has a zone bit, and whether the data that described zone bit is used for identifying described district need backup;
Described Memory Backup unit also comprises:
First copy cell, the zone bit that is used for when the piece district is designated when needing Status of Backups, and the copying data in piece district that will comprise the described zone bit correspondence that needs Status of Backups is to nonvolatile memory; And after copy finishes, the zone bit in the described piece district that is copied is designated need not Status of Backups;
Detecting unit is used for the piece district whether a plurality of districts that the sense partitions unit marked off exist piece district data to change, if detect, the zone bit that identifies the piece district that described data change is the needs Status of Backups;
Described dormancy control module is data that current mark bit is designated needs the piece of Status of Backups district to the data that change in the moment of the last Memory Backup of internal storage location internal memory that nonvolatile memory copied.
Preferably, comprise the internal storage data MIRROR SITE in the described nonvolatile memory;
Described Memory Backup unit also comprises:
Comparing unit, whether with data in described internal storage data MIRROR SITE identical, if inequality, notify the second copy cell copies data if being used for the data of comparison internal memory;
Second copy cell is used for copying described internal memory to described internal storage data MIRROR SITE with respect to the variance data of described internal storage data MIRROR SITE;
Described dormancy control module is that current data is compared the variance data that is obtained with described internal storage data MIRROR SITE in the described internal memory to the data that change in the moment of the last Memory Backup of internal storage location internal memory that nonvolatile memory copied.
Preferably, described system also comprises:
Carry out acquiring unit constantly, be used for use habit, obtain this user and send execution that the previous moment that enters the park mode instruction time carries out last Memory Backup as described Memory Backup unit constantly by the statistical system user.
When prior art enters park mode in computer system, normally disposable with the copying data in the internal memory in hard disk, the load content of waiting when need recovering again to back up in the hard disk is to internal memory.Along with the configuration of internal memory is more and more higher, the internal memory that system takies when moving is increasing, usually surpasses 1G even more, therefore adopts the data in the said method archive memory to require a great deal of time, and the user often is difficult to stand.And one embodiment of the invention are after the dormancy instruction is received by system, the copying data that only needs to change from a last moment in the Installed System Memory is to hard disk, therefore, significantly reduced the data volume that need copy to when entering park mode in the hard disk, effectively reduce the time of copies data, reduced user's stand-by period.
Description of drawings
The flow chart of steps of RAM date backup in Fig. 1 a embodiment of the invention 1;
Fig. 1 b is the flow chart of steps that the embodiment of the invention 2 systems enter park mode;
Fig. 2 is the structured flowchart of system embodiment of the present invention.
Embodiment
The method of the invention generally may further comprise the steps:
1] obtains the instruction that described computer system enters park mode.
2] based on described instruction, the copying data that will change in the moment of last Memory Backup internal memory is to nonvolatile memory, and described last Memory Backup is carried out before in the instruction that described acquisition computer system enters park mode.
3] after the described copying data that will change in the moment of last Memory Backup internal memory was finished to nonvolatile memory, described computer system entered park mode.
Wherein, described nonvolatile memory is generally intrasystem hard disk, but also can be other storeies, as flash memory, tape etc.
More than briefly introduced the method for the invention, the present invention done describing in further detail below in conjunction with accompanying drawing and specific embodiment:
At first, referring to Fig. 1 a how computer system being carried out Memory Backup before sending the dormancy instruction describes:
Step 101 is divided into a plurality of districts with internal memory.
Purpose to internal memory divided block district is for the ease of management and operation.When implementing, both can be according to the mode divided block district of page, also can be directly to internal memory physical address divided block district.
Visit to internal storage data has dual mode usually, and a kind of is by the data in the virtual address access memory, and another kind is that (Direct Memory Access DMA) reads data in the internal memory physical block district by direct memory access.
Memory address comprises physical address and virtual address.Concerning program, visible have only virtual address, and physical address is transparent, and all memory addresss of procedure operation all are virtual addresses.When program is operated certain memory address, memory management unit (the Memory ManagementUnit of CPU (central processing unit) (CPU), MMU) can find this virtual address physical address corresponding according to the predefined mapping table of system automatically, and to the operational applications of virtual address to the corresponding physical memory address.Memory management unit is long measure with the page or leaf to the mapping of virtual address and physical address.
But because dma mode need not to take cpu resource, also need not to take the OS resource, and the virtual address in the middle of having omitted is to the conversion of physical address, therefore, not only consumption of natural resource is few but also have an access speed faster with respect to the virtual address access mode.Therefore, this example is preferred, internal memory is divided into a plurality of physical blocks district, with dma mode access memory data.
Step 102 is provided with corresponding status indicator to the piece district.
Internal memory is divided into a plurality of physical blocks district, a zone bit is set in each piece district, whether this zone bit needs backup in order to the data that identify this physical block district, for example, needs with " 0 " expression, and " 1 " expression does not need.
Step 103, the status indicator in INIT block district.
This step is an optional step.The initial value of the zone bit in can each physical block district is set to " 0 ", so, can be when carrying out for the first time Memory Backup with internal memory in current total data copy hard disk to.In addition, also can be set to " 0 " by initial value, afterwards, change if detect the data in certain piece district, then the mark position with this piece district is " 0 ".
Step 104 is carried out Memory Backup.
Described Memory Backup is exactly to be to need the copying data in piece district of Status of Backups to nonvolatile memory with zone bit, and the copying data in physical block district that is about to zone bit and is " 0 " is to nonvolatile memory.
After copy finishes, with the mark position in the described piece district that is copied for need not Status of Backups " 1 ".
Before the acquisition computer system enters the park mode instruction, can carry out the one or many Memory Backup by pre-defined rule.For example:
(1) repeats the Memory Backup operation at interval by certain hour.The described time interval both can be a Fixed Time Interval, as triggered a backup operation every 1 hour, also can the on-fixed time interval, as arbitrarily selected several time points as described in the trigger point of backup operation.
(2) judging whether system's current available resource exceeds presets threshold values, if do not exceed, then triggers and carries out the Memory Backup operation.Described system current available resource both can be the hard disk resource, also can be cpu resource, bus resource etc., as for selecting which kind of resource herein as the foundation of judging, and size how to set described threshold values, then can when enforcement is of the present invention, set up on their own as required by those skilled in the art, do not influence the operation of current system as long as carry out RAM date backup this moment, the present invention does not limit this, for example, if the current C PU of system available resources surpass 70%, then carry out RAM date backup.
In addition, also multiple principle combinations can be used, for example, after arriving the triggered time point, continue to judge whether current system available resources exceed presets threshold values,, then carry out Memory Backup as if exceeding.
In this step,, then wherein be last Memory Backup of the present invention for the last time if the operation of described Memory Backup has been carried out repeatedly.
Step 105 changes if detect the data in piece district, upgrades the status indicator in this piece district.
If change has taken place the data that detect certain piece district, for example: increased new data in this piece district, data are modified or deleted etc., then the value of zone bit need to be set to Status of Backups " 0 " in this piece district.
More than how computer system carried out Memory Backup be illustrated before sending the dormancy instruction, below, in conjunction with above how computer system being entered park mode describe with Fig. 1 b:
Step 106 obtains the instruction that computer system enters park mode.
Step 107, the copying data that will change in the moment of last Memory Backup internal memory is to nonvolatile memory.
The data that in the moment of last Memory Backup internal memory, change, for this example, find out corresponding physical block district by the zone bit of judging internal memory physical block district exactly: if described sign place value is " 0 ", variation has taken place in the data of then representing this physical block district, need back up, if " 1 " then need not backup.
To indicate place value for the copying data in the physical block district of " 0 " to hard disk.
Step 108, system enters park mode.
Embodiments of the invention 1 have more than been introduced, embodiments of the invention 2 are not to be to judge that by the state flag bit that the memory block district is set which internal storage data needs backup with the difference of the foregoing description, but judge the internal storage data that needs backup by the difference of data in data in the current internal memory of comparison system and the hard disk internal storage data MIRROR SITE.Embodiment 2 is described below:
Step 201 is provided with the internal storage data MIRROR SITE in hard disk.
Step 203 before the acquisition computer system enters the park mode instruction, is pressed pre-defined rule and is carried out the one or many Memory Backup.
Memory Backup in this step specifically comprises: relatively whether the data in the internal storage data MIRROR SITE are identical in the data in the internal memory and the hard disk, if inequality, copy described internal memory to described internal storage data MIRROR SITE with respect to the variance data of described internal storage data MIRROR SITE.
During data in the data in internal memory relatively and the hard disk in the internal storage data data image district, can adopt scale-of-two to press the mode of bit comparison so that improve the speed of comparison.
Step 204 enters the park mode instruction if obtain computer system, the step below carrying out.
Step 205 is compared the variance data that is obtained with current data in the internal memory with the internal storage data MIRROR SITE and is copied the internal storage data MIRROR SITE to.
Step 206, system closedown.
Compare with enforcement 1,, therefore, can reduce run duration taking system resource owing to needn't watch-dog is set and dynamically update the Status of Backups table at system's run duration.And, therefore can improve the speed of comparison and copy greatly owing to adopt the mode of data scale-of-two by bit comparison, copy.
It below is the embodiment of the invention 3.At first, descriptive system is received and is entered the park mode instruction steps flow chart of Memory Backup before:
Step 301 is provided with the Status of Backups table in order to the record status indicator corresponding with each internal storage data.
The Status of Backups table can show as various ways, for example can be blocks of data in a txt file or the internal memory etc.
As shown in table 1, be the example explanation that example provides described Status of Backups table with the page:
Page Status of Backups
??Page?A ??0
??Page?B ??0
??Page?C ??1
??Page?D ??0
Table 1
Wherein, described Status of Backups " 0 " represents that the data of this page correspondence need backup, and " 1 " represents that the data of this page correspondence need not backup.
If adopt dma mode access memory data, the Status of Backups table of being set up is as shown in table 2:
Memory block Status of Backups
??0000~0011 ??0
??0100~0111 ??0
??1000~1011 ??1
??1100~1111 ??0
Table 2
Wherein, the physical address of 0000 expression internal memory.
When enforcement is of the present invention, can adopt above-mentioned any access mode or other access mode to visit internal storage data.For ease of explanation, in the following description, we all describe the present invention with virtual address visit and page.
Step 302, the initialization backup state table.
The Status of Backups of each page in the Status of Backups table is initialized as " 1 ".
Step 303, watch-dog are monitored the data in the page or leaf in each, if the data in this page change, then execution in step 1031.
Step 3031 is upgraded the backup mark of this internal storage data correspondence in the described Status of Backups table.
Can be provided with one or a plurality of watch-dogs are set respectively monitor the internal storage data of each page correspondence and whether change at each page, if change, then this page corresponding backup mark in the Status of Backups table is set to " 0 ".
Watch-dog is independent operating uninterruptedly, for example can adopt the mode operation monitoring device of multithreading, to guarantee the validity and the promptness of monitoring.
Step 304 triggers at interval by certain hour and to judge whether system's current available resource exceeds and preset threshold values, if exceed, carries out step 305 down; Otherwise, repeated execution of steps 304.
Step 305, according to the Status of Backups table with the copying data of the page of needs backups in nonvolatile memory; And the backup mark that upgrades the page correspondence in the Status of Backups table that is copied.
With Status of Backups in the Status of Backups table is that the pairing copying data of page of " 0 " is to the specific zone of hard disk.After copy finishes, be " 1 " with page corresponding backup flag update in the Status of Backups table.
Below enter the steps flow chart of park mode for system among the embodiment 3:
Step 306 triggers entering park mode.
The user sends the instruction that enters park mode to system.
Step 307, operating system enter dormancy and prepare.
Step 308, RAM date backup.
According to the Status of Backups table with the copying data of the page of needs backups in nonvolatile memory.
Step 309, operating system is given BIOS with control.
Step 310, the shutdown of BIOS control hardware.
System enters park mode.
Embodiment 4 is with the foregoing description difference: the time point that sends the dormancy instruction to system by user in statistics a period of time obtains the triggered time point of last Memory Backup.
Most of users often have certain rules when using a computer system, for example in relatively-stationary time start, shutdown etc.System is according to the mode of autonomous learning, the action of statistics user in a period of time, and for example operational computations machine system no longer after 12 at noon makes system be in idle condition; About 18 o'clock, send dormancy instruction etc. to system.Clocklike move the triggered time point that obtains dormancy instruction by adding up these, and should put in the triggered time also and can constantly revise according to system's autonomous learning.Then, before described triggered time point, one or more time points are set and trigger Memory Backup.
Reduced the number of times of carrying out RAM date backup before the system hibernates as much as possible by said method, made and reduce to minimum to the influence of system because of Memory Backup.Under the optimum situation, only need before the dormancy instruction is sent, to carry out a Memory Backup and get final product.
The not detailed part of embodiment 4 sees also the foregoing description, repeats no more here.Need to prove that the disclosed content of various embodiments of the present invention is not to be the technical scheme that isolates, those skilled in the art can carry out combination in any to it according to actual needs when enforcement is of the present invention.For example: obtain the dormancy instruction by system's autonomous learning and carry out point and a backup point was set before this execution point; Directly the current internal storage data of system all is copied to the hard disk specific region by dma mode then; The Status of Backups of each memory block is set in the Status of Backups table; Whether the data by current each memory block of watch-dog supervisory system change, if change, upgrade the Status of Backups of memory block correspondence in the Status of Backups table; Judge whether to trigger Memory Backup, if can trigger, according to the Status of Backups table with the copying data of the memory block of needs backup to hard disk, and upgrade the memory block corresponding backup in the Status of Backups table that is copied and be labeled as and need not backup " 1 "; Watch-dog continues current each memory block of supervisory system; If obtain the system hibernates instruction, be copied in the hard disk according to the memory block of Status of Backups table with current needs backup; System enters park mode.
Below in conjunction with concrete applied environment the method for the invention is further elaborated:
After the windows xp operating system of Microsoft has been installed on the mainboard with STR function, under the system region root directory, have the file of a hiberfil.sys, its size is the same with the physical memory capacity, the file of shared hard drive space when this file is exactly the xp dormancy (windows xp acquiescence sleep mode is to be in open mode).When computer is in dormant state, all the elements in the internal memory will be saved to the hiberfil.sys file of hard disk, and computer can be closed subsequently.Computer is after returning open mode, and system can be from this file, and to internal memory, all programs of opening and document will revert to system desktop before the computer so that will close with all data load.
Below be presented in the specific implementation method that enters park mode among the OS:
Step 501 is provided with and the initialization backup state table.
Step 502 triggers timed backup.
Be provided with in OS regularly and interrupt, can set up on their own its interval time.
Step 503 judges whether system is idle, if busy, then waits for also execution in step 503 again, otherwise execution in step 504.
Interrupt service routine, the check system idle condition is such as can be by detecting process System Idle operating system kernel virtual (all there is this process in multiple task operating system) of coming out.For example, when not having available process, system is in the dry running state, and be exactly System Idle Process SYSTEM in operation this moment, so it takies the 97%CPU resource, illustrate that machine system at this moment loads very light.
Step 504 will be labeled as not the hiberfil.sys file of copying data to the hard disk of the page of backup according to the Status of Backups table.
After copy finishes, the page corresponding status indication in the Status of Backups table that is copied is updated to need not backup, after the data that detect this page changed, again the status indication of this page being changed to needed backup again.
Below trigger the steps flow chart that enters park mode for computer system:
Step 505 triggers entering S4.
The user sends the instruction that enters dormant state.
Step 506, OS enters S4 and prepares.
Step 507 will need the backed up data copy to put hard disk in the current Installed System Memory.
To be labeled as not the hiberfil.sys file of copying data to the hard disk of the page of backup according to the Status of Backups table.
Step 508, OS gives BIOS with control.
Step 509, the hardware shutdown.
More than by several embodiment a kind of computer system dormancy method of the present invention has been described, below in conjunction with accompanying drawing a kind of computer system of the present invention is described:
As shown in Figure 2, be a kind of employing Intel Architecture (Intel Architec-ture, computer system IA) disclosed by the invention.
Described computer system comprises CPU (central processing unit) 610, internal memory 620, nonvolatile memory 630.Wherein in hard disk, be provided with the internal storage data MIRROR SITE, be used for the Backup Data of storage system internal memory.With windows xp system is example, and this memory mirror subregion is exactly the hiberfil.sys file under the xp system region root directory.
Described system also comprises:
Dormancy instruction fetch unit 640 is used to obtain the instruction that described computer system enters park mode;
Memory Backup unit 650 is used for the data of internal memory are backuped to nonvolatile memory 630;
Memory Backup unit 650 is used for the data of internal memory are backuped to nonvolatile memory 630;
Dormancy control module 660, be used for will be from the Memory Backup unit copying data that changes of the 650 last moment internal memories of carrying out Memory Backups to nonvolatile memory 630, described Memory Backup unit 650 is last carries out Memory Backups execution before described dormancy instruction fetch unit 640 obtains instruction that computer systems enter park mode;
Dormancy unit 670 is used for described computer system and is set to park mode
Preferably, described system also comprises:
Memory Backup control module 680 is used to control described Memory Backup unit 650 and carries out the one or many Memory Backup.
Preferably, described system also comprises:
Zoning unit 690 is used for internal memory is divided into a plurality of districts; Each piece district in the described a plurality of districts has a zone bit, and whether the data that described zone bit is used for identifying described district need backup;
Described Memory Backup unit 650 also comprises:
First copy cell 651, the zone bit that is used for when the piece district is designated when needing Status of Backups, and the copying data that will comprise the described zone bit corresponding blocks district that needs Status of Backups is to nonvolatile memory; And after copy finishes, the zone bit in the described piece district that is copied is designated need not Status of Backups;
Detecting unit 652 is used for the piece district whether a plurality of districts that the sense partitions unit marked off exist piece district data to change, if detect, the zone bit that identifies the piece district that described data change is the needs Status of Backups;
The data that change in the moment of the last Memory Backup of internal storage location internal memory that described dormancy control module 660 is copied to nonvolatile memory 630 are that current mark bit is the data that need the piece district of Status of Backups.
Preferably, described Memory Backup unit 650 also comprises:
Comparing unit 653, whether with data in described internal storage data MIRROR SITE identical, if inequality, notify the second copy cell copies data if being used for the data of comparison internal memory;
Second copy cell 654 is used for copying described internal memory to described internal storage data MIRROR SITE with respect to the variance data of described internal storage data MIRROR SITE;
The data that change in the moment internal memory of internal storage location 620 last Memory Backups that described dormancy control module 660 is copied to nonvolatile memory 630 are that current data is compared the variance data that is obtained with described internal storage data MIRROR SITE in the described internal memory.
Preferably, described system also comprises:
Carry out acquiring unit 710 constantly, be used for use habit, obtain this user and send execution that the previous moment that enters the park mode instruction time carries out last Memory Backup as described Memory Backup unit constantly by the statistical system user.
The not detailed part of system embodiment of the present invention sees also the foregoing description related content.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of computer system dormancy method is characterized in that, described method comprises:
Obtain the instruction that described computer system enters park mode;
Based on described instruction, the copying data that will change in the moment of last Memory Backup internal memory is to nonvolatile memory, and described last Memory Backup is carried out before in the instruction that described acquisition computer system enters park mode;
After the described copying data that will change in the moment of last Memory Backup internal memory was finished to nonvolatile memory, described computer system entered park mode.
2, method according to claim 1 is characterized in that, described Memory Backup is carried out at least once.
3, method according to claim 1 and 2 is characterized in that, also comprises before the described Memory Backup:
Described internal memory is divided into a plurality of districts; Each piece district in the described a plurality of districts has a zone bit, and whether the data that described zone bit is used for identifying described district need backup;
Described Memory Backup comprises:
When described zone bit is designated when needing Status of Backups, will with the described copying data in the corresponding piece district of the described zone bit that needs Status of Backups that comprises to nonvolatile memory; After copy finishes, the zone bit in the described piece district that is copied is designated need not Status of Backups;
If detect the piece district that exists piece district data to change in the described a plurality of districts, the zone bit that identifies the piece district that described data change is the needs Status of Backups;
The described data that change in the moment of last Memory Backup internal memory are data that current mark bit is designated needs the piece of Status of Backups district.
4, method according to claim 1 and 2 is characterized in that, also comprises before the described Memory Backup:
The internal storage data MIRROR SITE is set in described nonvolatile memory;
Described Memory Backup comprises:
Relatively whether the data in the internal memory are identical with data in the described internal storage data MIRROR SITE, as if inequality, copy described internal memory to described internal storage data MIRROR SITE with respect to the variance data of described internal storage data MIRROR SITE;
The described data that change in the moment of last Memory Backup internal memory are that current data is compared the variance data that is obtained with described internal storage data MIRROR SITE in the described internal memory.
5, method according to claim 1, it is characterized in that, described last Memory Backup is the use habit by the user who adds up described computer system, obtains described user and sends the previous moment that enters the park mode instruction time as the execution of described last Memory Backup constantly.
6, a kind of computer system comprises CPU (central processing unit), internal memory and nonvolatile memory, it is characterized in that, described system also comprises:
The dormancy instruction fetch unit is used to obtain the instruction that described computer system enters park mode;
The Memory Backup unit is used for the data of internal memory are backuped to nonvolatile memory;
The dormancy control module, be used for carrying out for the last time from the Memory Backup unit copying data that the moment internal memory of Memory Backup changes to nonvolatile memory, described Memory Backup unit is carried out Memory Backup for the last time and was carried out before described dormancy instruction fetch unit obtains instruction that computer system enters park mode;
The dormancy unit is used for described computer system and is set to park mode
7, system according to claim 6 is characterized in that, described system also comprises:
The Memory Backup control module is used to control described Memory Backup unit and carries out at least Memory Backup.
8, according to claim 6 or 7 described systems, it is characterized in that described system also comprises:
Zoning unit is used for internal memory is divided into a plurality of districts; Each piece district in the described a plurality of districts has a zone bit, and whether the data that described zone bit is used for identifying described district need backup;
Described Memory Backup unit also comprises:
First copy cell, the zone bit that is used for when the piece district is designated when needing Status of Backups, and the copying data in piece district that will comprise the described zone bit correspondence that needs Status of Backups is to nonvolatile memory; And after copy finishes, the zone bit in the described piece district that is copied is designated need not Status of Backups;
Detecting unit is used for the piece district whether a plurality of districts that the sense partitions unit marked off exist piece district data to change, if detect, the zone bit that identifies the piece district that described data change is the needs Status of Backups;
Described dormancy control module is data that current mark bit is designated needs the piece of Status of Backups district to the data that change in the moment of the last Memory Backup of internal storage location internal memory that nonvolatile memory copied.
9, according to claim 6 or 7 described systems, it is characterized in that, comprise the internal storage data MIRROR SITE in the described nonvolatile memory;
Described Memory Backup unit also comprises:
Comparing unit, whether with data in described internal storage data MIRROR SITE identical, if inequality, notify the second copy cell copies data if being used for the data of comparison internal memory;
Second copy cell is used for copying described internal memory to described internal storage data MIRROR SITE with respect to the variance data of described internal storage data MIRROR SITE;
Described dormancy control module is that current data is compared the variance data that is obtained with described internal storage data MIRROR SITE in the described internal memory to the data that change in the moment of the last Memory Backup of internal storage location internal memory that nonvolatile memory copied.
10, system according to claim 6 is characterized in that, described system also comprises:
Carry out acquiring unit constantly, be used for use habit, obtain this user and send execution that the previous moment that enters the park mode instruction time carries out last Memory Backup as described Memory Backup unit constantly by the statistical system user.
CN200810116070A 2008-07-02 2008-07-02 Computer system dormancy method and computer system Pending CN101620460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810116070A CN101620460A (en) 2008-07-02 2008-07-02 Computer system dormancy method and computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810116070A CN101620460A (en) 2008-07-02 2008-07-02 Computer system dormancy method and computer system

Publications (1)

Publication Number Publication Date
CN101620460A true CN101620460A (en) 2010-01-06

Family

ID=41513727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810116070A Pending CN101620460A (en) 2008-07-02 2008-07-02 Computer system dormancy method and computer system

Country Status (1)

Country Link
CN (1) CN101620460A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103197988A (en) * 2012-01-05 2013-07-10 ***通信集团湖南有限公司 Data backup and recovery method, device and database system
WO2014008653A1 (en) * 2012-07-12 2014-01-16 Harman International Industries, Incorporated Method for switching a device between hibernat mode and wake-up
CN104081314A (en) * 2012-07-27 2014-10-01 惠普发展公司,有限责任合伙企业 Implementing power off state in computing device
CN104133640A (en) * 2013-03-14 2014-11-05 希捷科技有限公司 Quick recovery from dormancy
CN104536529A (en) * 2014-12-26 2015-04-22 中经汇通电子商务有限公司 Low-power-consumption heat data server
CN104919426A (en) * 2013-12-02 2015-09-16 华为技术有限公司 Data processing device and data processing method
CN106406492A (en) * 2015-07-30 2017-02-15 华为技术有限公司 Mixed storage device, computer, control device, and power consumption reduction method
CN107122209A (en) * 2017-04-18 2017-09-01 努比亚技术有限公司 Accelerator and method that terminal starts
CN107748678A (en) * 2017-10-23 2018-03-02 郑州云海信息技术有限公司 A kind of system and method for improving heterogeneous system starting up speed
CN108490289A (en) * 2018-03-12 2018-09-04 广东欧珀移动通信有限公司 Testing for electrical equipment method, apparatus and electronic equipment
CN109634823A (en) * 2018-12-03 2019-04-16 四川巧夺天工信息安全智能设备有限公司 A method of the dormant data of parsing Windows operating system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103197988A (en) * 2012-01-05 2013-07-10 ***通信集团湖南有限公司 Data backup and recovery method, device and database system
WO2014008653A1 (en) * 2012-07-12 2014-01-16 Harman International Industries, Incorporated Method for switching a device between hibernat mode and wake-up
CN104081314A (en) * 2012-07-27 2014-10-01 惠普发展公司,有限责任合伙企业 Implementing power off state in computing device
CN104133640A (en) * 2013-03-14 2014-11-05 希捷科技有限公司 Quick recovery from dormancy
CN104919426A (en) * 2013-12-02 2015-09-16 华为技术有限公司 Data processing device and data processing method
US9354985B2 (en) 2013-12-02 2016-05-31 Huawei Technologies Co., Ltd. Data processing device and data processing method
US9557927B2 (en) 2013-12-02 2017-01-31 Huawei Technologies Co., Ltd. Data processing device and data processing method
CN104536529A (en) * 2014-12-26 2015-04-22 中经汇通电子商务有限公司 Low-power-consumption heat data server
CN106406492A (en) * 2015-07-30 2017-02-15 华为技术有限公司 Mixed storage device, computer, control device, and power consumption reduction method
US10430096B2 (en) 2015-07-30 2019-10-01 Huawei Technologies Co., Ltd. Hybrid storage device, computer, control device, and power consumption reduction method
CN106406492B (en) * 2015-07-30 2019-10-25 华为技术有限公司 Mixing storage equipment, computer, control equipment and the method for reducing power consumption
CN107122209A (en) * 2017-04-18 2017-09-01 努比亚技术有限公司 Accelerator and method that terminal starts
CN107748678A (en) * 2017-10-23 2018-03-02 郑州云海信息技术有限公司 A kind of system and method for improving heterogeneous system starting up speed
CN108490289A (en) * 2018-03-12 2018-09-04 广东欧珀移动通信有限公司 Testing for electrical equipment method, apparatus and electronic equipment
CN109634823A (en) * 2018-12-03 2019-04-16 四川巧夺天工信息安全智能设备有限公司 A method of the dormant data of parsing Windows operating system
CN109634823B (en) * 2018-12-03 2022-03-04 四川巧夺天工信息安全智能设备有限公司 Method for analyzing dormant data of Windows operating system

Similar Documents

Publication Publication Date Title
CN101620460A (en) Computer system dormancy method and computer system
US9836328B2 (en) System and method for improving memory usage in virtual machines at a cost of increasing CPU usage
EP2495655B1 (en) Method for switching operating system and electronic apparatus using the same
US7409537B2 (en) Fast booting an operating system from an off state
Wang et al. Proactive process-level live migration in HPC environments
CN102231138B (en) Accurate memory data acquisition system and method for computer
US10049004B2 (en) Electronic system with memory data protection mechanism and method of operation thereof
US9910664B2 (en) System and method of online firmware update for baseboard management controller (BMC) devices
EP1351146A1 (en) Power management system and method with recovery after power failure
US20180322016A1 (en) System and method to capture stored data following system crash
CN101634884B (en) Power source management controller and method thereof
US7360045B2 (en) System and method for backing up data from a quiesced storage device
CN104778081B (en) Method for switching operating system and electronic device
US20110239019A1 (en) Method and system for managing power consumption of a computing device
EP2972826B1 (en) Multi-core binary translation task processing
US20060005003A1 (en) Method for guest operating system integrity validation
EP2280348A1 (en) Method and system for saving operational state of running applications when unexpected shutdown events occur
CN103336736A (en) System log acquisition method and device
CN1864138A (en) Memory management with defragmentation in a computing device
CN111796882A (en) Electronic equipment system processing method and device and electronic equipment
WO2012041600A1 (en) Virtual machine stage detection
US7089433B2 (en) Method and system for operating system quiescent state
JP2012243096A (en) Guest os management device, guest os management method, and guest os management program
CN113342365A (en) Operating system deployment method, device, equipment and computer-readable storage medium
WO2011067056A1 (en) Automatic detection of stress condition

Legal Events

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

Application publication date: 20100106