Patent · US6647472B2 · B2 · US
Fast suspend to disk
- (11) Publication number
- US6647472B2
- (21) Application number
- 10/366,925
- (22) Filing date
- 2003-02-14
- (30) Priority date
- 2000-12-29
- (43) Publication date
- 2003-11-11
- (45) Date of grant
- 2003-11-11
- (51) IPC
- G06F 1/32; G06F 11/14; G06F 12/08; G06F 9/445
- (52) CPC
- (73) Assignee
- Hewlett Packard Development Co LP
- (72) Inventors
- Lee W. Atkinson; Vu T. Nguyen; Mark W. Peters
- (54) Title
- Fast suspend to disk
- (57) Abstract
A computer system supports a fast hibernation operation to save power, while minimizing the amount of time it takes to enter the hibernation mode, and to resume normal operations. The system periodically stores data from system memory to non-volatile memory, such as a hard disk drive, during normal operations when the system is idle. The system includes activity monitors that detect when the data in memory pages is changed. The system periodically sweeps the monitors, and performs save operations to the non-volatile memory. When the system enters hibernation mode, the system determines which memory pages have been changed since the last save operation, and then saves those pages to memory. As an alternative, the system immediately can enter hibernation by supplying power to the memory pages that have not been saved since the last save operation. To implement this, independent switches under the control of the CPU of memory controller selectively turn off power to unsaved memory pages. The system can also implement a fast resume procedure by restoring the memory pages that have the highest priority, and saving the other pages in the background, or as need by the system devices. Prior to entering the hibernation mode, the pages may be prioritized based on various factors, including the last pages used, the pages used most frequently, or the pages that store the most critical data.
- Full text
- View on Google Patents
Claims (9)
- A method of placing a computer system into a hibernation state, comprising the acts of: calculating a priority value for each page of system memory; storing the priority value in a designated register; storing each page of system memory that includes valid data to non-volatile memory; entering a hibernation state; resuming from a hibernation state; reading the priority value from the designated register; and restoring the page of system memory with the highest priority before restoring any other page of system memory.
- The method of claim 1, wherein the priority value is assigned based on a last used criteria.
- The method of claim 1, wherein the priority value is assigned based on a most used criteria.
- The method of claim 1, wherein the priority value is assigned based on a most critical criteria.
- The method of claim 1, further comprising the act of passing operation to an operating system prior to restoring pages of memory other than the page with the highest priority value.
- The method of claim 1, further comprising the act of passing operation to an operating system prior to restoring pages of memory other than the pages with the highest priority values.
- A computer system capable of entering a hibernation mode of operation, comprising: a CPU; a system memory that is divided into a plurality of pages; a nonvolatile memory device; a register that includes one or more bits that indicate a priority value assigned to each page of memory; wherein the CPU stores each page of memory that includes valid data in non-volatile memory when a hibernation mode is initiated, together with the register; and wherein the CPU restores the page of memory with the highest priority value prior to restoring any other page of memory.
- A system as in claim 7, wherein the CPU passes control to an operating system after restoring the page of memory with the highest priority.
- A system as in claim 7, wherein the CPU passes control to an operating system after restoring the pages of memory with the highest priorities.
Description
Not applicable.
1. Field of the Invention
The present invention generally relates to data storage in computer systems. More particularly, the present invention relates to the manipulation of data that has been stored in random access memory during periods when the computer system is placed in a low power mode to minimize the latency that otherwise occurs when the system enters a low power mode and resumes operation from a low power mode.
2. Background of the Invention
Almost all computer systems include a processor and a system memory. The system memory functions as the working memory of the computer system, where data is stored that has been or will be used by the processor and other system components. The system memory typically includes banks of dynamic random access memory (DRAM) circuits. According to normal convention, a memory controller interfaces the processor to a memory bus that connects to the DRAM circuits. The system memory provides storage for a large number of instructions and/or a large amount of data for use by the processor, providing faster access to the instructions and/or data than would otherwise be achieved if the processor were forced to retrieve data from a disk or drive.
Because system memory typically is constructed of dynamic random access memory circuits, the contents of the memory are volatile. To preserve the integrity of the data stored in system memory, a periodic refresh signal must be sent to each memory cell to refresh the voltage levels of each cell, where the data is stored. Failure to timely refresh the memory cells of system memory causes the data to be lost.
Citations (1)
- US20020073358A1