KR100323536B1 - Method for recovering data in performing power saving function of power saving computer - Google Patents
Method for recovering data in performing power saving function of power saving computer Download PDFInfo
- Publication number
- KR100323536B1 KR100323536B1 KR1019940020649A KR19940020649A KR100323536B1 KR 100323536 B1 KR100323536 B1 KR 100323536B1 KR 1019940020649 A KR1019940020649 A KR 1019940020649A KR 19940020649 A KR19940020649 A KR 19940020649A KR 100323536 B1 KR100323536 B1 KR 100323536B1
- Authority
- KR
- South Korea
- Prior art keywords
- block
- checksum
- data
- memory
- power saving
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1471—Saving, restoring, recovering or retrying involving logging of persistent data for recovery
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3228—Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
Abstract
Description
본원 발명은 절전형 컴퓨터의 절전기능 수행시 자료복구방법에 관한 것으로서 특히, 서스팬드 모드(suspend mode)에서 리줌(resume)으로 전환할 때 전원차단 또는 충격으로 인해 자료오류가 발생한 경우에 자료를 최대한 복구시키는 절전형 컴퓨터의 절전기능 수행시 자료복구방법에 관한 것이다.The present invention relates to a data recovery method when performing a power saving function of a power-saving computer, and in particular, when a data error occurs due to a power cut or a shock when switching from suspend mode to resume. The present invention relates to a method for recovering data when performing a power saving function of a power saving computer for recovering.
먼저, 본원 발명에서 사용되는 용어를 정의하면 다음과 같다.First, terms used in the present invention are defined as follows.
절전형 컴퓨터 : 전력관리(Power Management)를 행하는 컴퓨터 시스템을 의미하며 일반적으로 노트북(notebook), 팝답(plam top)등과 같은 휴대용 컴퓨터와그린컴퓨터를 통칭한다.Power-saving computer: refers to a computer system that performs power management, and generally refers to portable computers and green computers such as notebooks, pop tops, and the like.
서스팬드 모드(suspend mode) : 컴퓨터 시스템에서 일정시간동안 활동이 없는 경우에 현재 수행중인 프로세서를 중지하고, 대부분의 시스템 주변장치들의 전력을 오프(off)시킴으로서 최소의 전력이 소비되는 대기상태를 말한다.Suspend mode: suspends a processor that is currently running after a period of inactivity in a computer system, turning off power to most system peripherals to wake the system from power consumption. Say.
리줌(resume) : 상기 시스팬드 모드에서 수행중지된 프로세서를 다시 시작하며 상기 서스팬드 모드로 진입하기 전의 상태로 복구하는 과정을 말한다.Resume: A process of restarting a processor stopped in the sleep mode and restoring to a state before entering the suspend mode.
콘텍스트(context) : 전력을 오프시킬 각 주변장치에 대한 서스팬드 모드로 진입하기 전의 상태로 말한다.Context: The state before entering suspend mode for each peripheral to power off.
상기 절전형 컴퓨터는 전력소모를 줄이기 위하여 항상 시스템의 활동도(Activity)를 점검하고, 일정시간동안 시스템의 활동이 없으면 컴퓨터 시스템을 서스팬드 모드로 진입시켜 프로세서를 일시 중단시키고, 사용자의 요구가 있으면 리줌으로 복구하여 중단되었던 프로세서를 실행한다.The power-saving computer always checks the activity of the system to reduce power consumption. If the system is inactive for a certain period of time, the computer enters suspend mode to suspend the processor. Restore to resume to run the processor that was interrupted.
종래 기술에 의한 절전형 컴퓨터의 서스팬드 모드 진입과정과 리줌 수행과정을 첨부한 흐름도를 참조하여 설명하면 다음과 같다.A suspend mode entry process and a resume operation process of a power saving computer according to the prior art will be described with reference to the accompanying flowchart.
일정시간동안 시스템의 동작이 없으면 제1도에 도시된 바와 같이 제1스템에서 현재 시스템내의 모든 콘텍스트(context)를 메모리에 저장하고, 제2스텝으로 진행하여 전체 메모리공간의 체크섬(check sum)을 계산한다.If there is no system operation for a certain period of time, as shown in FIG. 1, all contexts in the current system are stored in the memory in the first system, and the process proceeds to the second step, where a checksum of the entire memory space is performed. Calculate
제3스텝에서는 상기 제2스텝에서 계산된 체크섬을 서스팬드 모드의 체크섬으로 하여 비휘발성 메모리에 저장하고, 제4스텝으로 진행하여 메모리를 구동시키기 위한 회로를 제외한 주변장치의 전력을 오프(off)시킴으로서 서스팬드 모드로 진입하게 된다.In the third step, the checksum calculated in the second step is used as the checksum of the suspend mode, and stored in the nonvolatile memory, and the process proceeds to the fourth step to turn off the power of the peripheral devices except the circuit for driving the memory. To enter suspend mode.
서스팬드 모드의 상태에서 사용자가 요구가 있으면 제2도에 도시된 바와 같이 제1스텝에서 현재 전체 메모리공간의 체크섬을 계산하여 리줌의 체크섬으로 저장하고, 제2스텝으로 진행하여 상기 제1스텝의 리줌의 체크섬과 상기 서스팬드 모드에서 저장된 체크섬이 일치하는지를 비교한다.If the user requests in the suspend mode, as shown in FIG. 2, the checksum of the current total memory space is calculated in the first step, stored as a checksum of resume, and the process proceeds to the second step. Compare the checksum of resume with the stored checksum in suspend mode.
상기 제2스텝의 결과가 리줌의 체크섬과 서스팬드 모드의 체크섬이 일치하면 제3스텝으로 진행하여 저장되어 있는 콘텍스트를 복구하고, 상기 제2스텝의 결과가 일치하지 않으면 제4스텝으로 진행하여 시스템을 초기화 한다.If the result of the second step matches the checksum of resume and the suspend mode, the process proceeds to the third step and restores the stored context. If the result of the second step does not match, the process proceeds to the fourth step. Initialize the system.
상기와 같이 구성되고 동작하는 종래 기술에 의한 절전형 컴퓨터의 자료복구방법은 리주으미 체크섬과 서스팬드 모드의 체크섬이 일치하지 않으면 전체 시스템을 초기화시키기 때문에 메모리의 일부만이 파괴된 경우라도 전혀 복구할 수 없는 문제점이 있다.The conventional data recovery method of a power-saving computer constructed and operated as described above initializes the whole system if the checksum of the checksum and the suspend mode do not match, so that even if only a part of the memory is destroyed, no recovery is possible. There is no problem.
본원 발명은 상기와 같은 문제점을 해결하기 위하여 안출한 것으로서, 메모리구조를 다수의 블럭으로 블럭킹하고 상기 각각의 블럭에 대응하는 비휘발성 메모리를 구비하여 체크섬과 벨리디티를 저장하도록 함으로서 일부에서 자료오류가 발생하는 경우에도 최대한 자료를 복구할수 있도록 하는 절전형 컴퓨터의 절전기능 수행시 자료복구방법을 제공함에 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and the data structure is prevented in some cases by blocking the memory structure into a plurality of blocks and having a nonvolatile memory corresponding to each block to store checksums and verities. Its purpose is to provide a data recovery method when performing a power saving function of a power saving computer that can recover data as much as possible even if it occurs.
싱기와 같은 목적을 달성하기 위한 본원 발명은 일정시간동안 시스템의 활동에 없는 경우에 "N"개의 블록으로 블록킹된 메모리에 저장되어 있는 자료를 각각의 블록에 대응하는 불휘발성 메모리에 체크섬과 벨리디티를 저장하고 서스팬드 모드로 진입하는 제1과정과, 사용자의 요구에 따라 현재 저장되어 있는 각 블록의체크섬을 서스팬드 모드 이전의 각 블록의 체크섬과 비교하여 데이터가 유효한지를 FRUFWJD하여 리줌을 수행하는 제2과정으로 이루어진 절전형 컴퓨터의 절전기능 수행시 자료복구방법에 있어서,The present invention for achieving the same purpose as a checker is to checksum and verity in the non-volatile memory corresponding to each block of the data stored in the memory blocked by "N" blocks when there is no activity of the system for a certain time In the first step of storing and entering the suspend mode, the checksum of each block currently stored according to the user's request is compared with the checksum of each block before the suspend mode to FRUFWJD to check whether the data is valid. In the method of recovering data when performing a power saving function of a power saving computer comprising a second step of performing,
상기의 제1과정은 시스템내의 콘텍스트(context)를 메모리에 저장하는 제1스텝과, 변수"I"를 "0"으로 초기화하는 제2스텝과, "I"번째 블록의 체크섬을 계산하여 상기 "I"번째 블록에 대응하는 비휘발성 메모리에 저장하는 제3스텝과,상기 "I"의 값을 "I" 증가시키는 제4스텝과, 상기 "I"의 값을 "N"과 비교하여 일치하는지를 판단하여 일치하지 않으면 상기 제3스텝으로 진행하는 제5스 텝과, 상기 제5스텝의 결과가 상기 "I"와 "N"이 일치하면 메모리를 구동시키기 위한 회로를 제외한 주변장치의 전력을 오프(off)시키는 제5스텝으로 이루어진 것을 특징으로 한다.The first step is to calculate the first step of storing the context in the system in the memory, the second step of initializing the variable " I " to " 0 ", and the checksum of the " I " Whether the third step of storing in the nonvolatile memory corresponding to the " I " block, the fourth step of increasing the value of " I " by " I ", and comparing the value of " I " If not determined, the fifth step proceeds to the third step, and if the result of the fifth step is equal to "I" and "N", the power of peripheral devices other than the circuit for driving the memory is turned off. It is characterized by consisting of a fifth step (off).
이하, 본원 발명에 의한 절전형 컴퓨터의 메모리구조 및 절전기능 수행시 자료복구방법의 실시예를 첨부한 도면을 참조하여 설명한다.Hereinafter, with reference to the accompanying drawings an embodiment of a memory structure and a data recovery method when performing a power saving function of a power saving computer according to the present invention.
본원 발명에 적용되는 절전형 컴퓨터의 메모리구조는 제3도에 도시된 바와 같이 전체 메모리공간을 N개의 블록으로 블록킹하고, 상기 N개의 블록 각각에 대응하는 비휘발성 메모리를 구비하여 각 블록의 내용을 계산하는 체크섬(check sum)과 벨리디티(validity)를 저장한다.The memory structure of a power-saving computer according to the present invention blocks the entire memory space into N blocks as shown in FIG. 3, and includes a nonvolatile memory corresponding to each of the N blocks to calculate the contents of each block. It stores the check sum and the validity.
본원 발명에 의한 절전형 컴퓨터의 절전기능 수행시 자료복구방법은 일정시간동안 컴퓨터의 활동이 없는 경우에 다수의 블록으로 블록킹된 메모리에 저장되어 있는 자료를 각각의 블록에 대응하는 불휘발성 메모리에 체크섬과 벨리디티를 저장한 후 서스탠드 모르돌 진입하는 제1과정과, 사용자의 요구에 따라 현재 저장되어 있는 각 블록의 체크섬을 서스팬드 모드 이전의 각 블록의 체크섬과 비교하여 데이터가 유효한지를 결덩하여 리줌을 수행하는 제2과정으로 이루어진다.In the power saving function of a power saving computer according to the present invention, a data recovery method includes a checksum and a nonvolatile memory corresponding to each block of data stored in a memory blocked by a plurality of blocks when the computer is inactive for a predetermined time. After saving the validity, the first step of entering the stand-alone mordol and the checksum of each block currently stored according to the user's request are compared with the checksum of each block before the suspend mode. A second process is performed to resume.
상기 서스팬드 모드를 진입하는 제1과정은 제4도에 도시된 바와 같이 일정시간동안 시스템의 동작이 없으면 제1스텝에서 현재 시스템내의 모든 콘텍스트를 메모리에 저장하고, 제2스텝으로 진행하며 변수 "I"의 갑을 "0"으로 초기화 하고, 제3스텝에서는 "I"번째 블록의 체크섬을 계산하여 상기 "I"번째 블록에 대응하는 비휘발성 메모리에 저장한다.In the first process of entering the suspend mode, as shown in FIG. 4, if there is no operation of the system for a predetermined time, the first step stores all the contexts in the current system in memory, and proceeds to the second step. The value of "I" is initialized to "0", and in the third step, the checksum of the "I" -th block is calculated and stored in the nonvolatile memory corresponding to the "I" -th block.
제4스텝에서는 상기 "I"의 값을 "I"증가시키고, 제5스텝에서는 상기 "I"값을 "N"과 비교하여 일치하는지를 판단하며 DFLCL하지 않으면 T아기 제3스텝으로 진행하고, T아기 제5스텝의 결과가 상기 "I"의 값과 "N" 이 일치하면 제6스텝으로 진행하여 메모리를 구동시키기 위한 회로를 제외한 주변장치의 전력을 오프(off)시킴으로서 서스팬드 모드로 진입한다.In step 4, the value of "I" is increased by "I". In step 5, it is determined whether or not the value of "I" is matched by comparing with "N". If the result of the fifth baby step is equal to the value of " I ", the process proceeds to the sixth step and enters the suspend mode by turning off the power of peripheral devices except the circuit for driving the memory. do.
상기 리줌을 수행하는 제2과정을 제5도에 도시된 바와 같이 서스팬드 모드의 상태에서 사용자가 요구가 있으면 젱1스텝에서 변수 "I"의 값을 "0"으로 초기화하고, 제2스텝으로 진행하여 현재 데이터의 유효상태를 "TRUE"로 초기화한다.As shown in FIG. 5, when the user requests the second process of performing the resume as shown in FIG. 5, in step # 1, the value of the variable "I" is initialized to "0", and the second step is performed. Proceed to initialize the valid state of the current data to "TRUE".
제3스텝에서는 현재 "I"번재 블록의 데이터의 유효상태를 "TRUE"로 초기화하고, 제4스텝에서는 현재 "I"번째 블록의 체크섬을 계산하고, 제5스텝에서는 상기 제4스텝에서 계산된 "I"번째 블록의 체크섬과 상기 서스팬드 모드에서 저장된 "I"번째 블록의 체크섬이 일치하는지를 비교하여 일치하지 않으면 제6스텝으로 진행하고 일치하면 제7스텝으로 진행한다.In the third step, the valid state of the data of the current " I " block is initialized to " TRUE. &Quot; In the fourth step, the checksum of the current " I " block is calculated, and in the fifth step, the checksum of the current block is calculated in the fourth step. The checksum of the " I " block and the checksum of the " I " block stored in the suspend mode are compared and matched, and if not, the process proceeds to the sixth step.
제6스텝에서는 전체 데이터의 유효상태와 현재 "I"번째 블록의 데이터의 유효상태를 "FALSE"로 변경한 후 제7스텝으로 진행하고, 제7스텝에서는 상기 "I"의 갑을 "I" 증가시키고, 제8스텝에서는 상기 "I"의 값을 "N"과 비교하여 일치하는지를 판단하여 일치하지 않으면 상기 제3스텝으로 진행하여 상기의 과정을 반복하고, 상기 제8스텝의 결과가 상기 "I"의 값과 "N"이 일치하면 제9스텝으로 진행하여 전체 데이터의 유효상태가 "TRUE"인지를 판단하여 "TRUE"이면 종료하고, 상기 제9스텝의 결과가 전체 데이터의 유효상태가 "TRUE"가 아니면 제10스텝으로 진행한다.In the sixth step, the valid state of all data and the valid state of the data of the current "I" -th block are changed to "FALSE", and the process proceeds to the seventh step. In the seventh step, the value of "I" is increased by "I". In the eighth step, it is determined whether the value of "I" is matched by comparing with "N", and if it does not match, the process proceeds to the third step and the above process is repeated, and the result of the eighth step is "I". If the value of " " is equal to " N ", the process proceeds to the ninth step, and it is determined whether the valid state of all data is "TRUE", and when it is "TRUE", the end of the ninth step indicates that the valid state of all data is " If it is not TRUE, the process goes to the tenth step.
제10스텝에서는 현재의 메모리 내용과 자료구조를 보조기억장치에 저장하고, 제11스텝으로 진행하여 임계에러(critical error)인지를 판단하여 임계에러가 아니면 종료하고, 상기 제11스텝의 결과가 임계에러이면 제12스텝으로 진행하여 시스템을 초기화 한다.In the tenth step, the current memory contents and data structure are stored in the auxiliary memory device, and the flow proceeds to the eleventh step to determine whether it is a critical error and terminates if it is not a critical error, and the result of the eleventh step is critical. If error, go to step 12 to initialize the system.
상기와 같이 구성되고 동작하는 본원 발명은 메모리의 일부가 파괴되는 경우라도 최대한 보존되어 있는 데이터를 복구 가능하도록 함으로서 시스템의 안정성을 향상시킬 수 있는 잇점이 있다.The present invention constructed and operated as described above has the advantage that the stability of the system can be improved by making it possible to recover the data that is preserved as much as possible even when a part of the memory is destroyed.
제1도는 종래 기술에 의한 서스팬드 모드의 진입 과정을 나타내는 흐름도,1 is a flowchart illustrating a process of entering a suspend mode according to the prior art;
제2도는 종래 기술에 의한 리줌 수행과정을 나타내는 흐름도,2 is a flowchart illustrating a resume process according to the prior art;
제3도는 본원 발명에 적용되는 절전형 컴퓨터의 메모리구조를 나타내는 도면,3 is a diagram showing a memory structure of a power saving computer to which the present invention is applied;
제4도는 본원 발명에 의한 서스팬드 모드의 진입 과정을 나타내는 흐름도,4 is a flowchart illustrating a process of entering a suspend mode according to the present invention;
제5도는 본원 발명에 의한 리줌 수행과정을 나타내는 흐름도.5 is a flowchart showing a resume process according to the present invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019940020649A KR100323536B1 (en) | 1994-08-22 | 1994-08-22 | Method for recovering data in performing power saving function of power saving computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019940020649A KR100323536B1 (en) | 1994-08-22 | 1994-08-22 | Method for recovering data in performing power saving function of power saving computer |
Publications (2)
Publication Number | Publication Date |
---|---|
KR960008485A KR960008485A (en) | 1996-03-22 |
KR100323536B1 true KR100323536B1 (en) | 2002-05-13 |
Family
ID=37460821
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019940020649A KR100323536B1 (en) | 1994-08-22 | 1994-08-22 | Method for recovering data in performing power saving function of power saving computer |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100323536B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11074123B2 (en) | 2018-12-20 | 2021-07-27 | SK Hynix Inc. | Device for detecting error of data stored in memory device, and operating method thereof |
-
1994
- 1994-08-22 KR KR1019940020649A patent/KR100323536B1/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11074123B2 (en) | 2018-12-20 | 2021-07-27 | SK Hynix Inc. | Device for detecting error of data stored in memory device, and operating method thereof |
Also Published As
Publication number | Publication date |
---|---|
KR960008485A (en) | 1996-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8028177B2 (en) | Method for changing power states of a computer | |
US8140872B1 (en) | Restoring processor context in response to processor power-up | |
US6336161B1 (en) | Computer configuration system and method with state and restoration from non-volatile semiconductor memory | |
US6243831B1 (en) | Computer system with power loss protection mechanism | |
US5175853A (en) | Transparent system interrupt | |
KR100352045B1 (en) | Methods and apparatus for reducing power consumption in computer systems | |
US5878264A (en) | Power sequence controller with wakeup logic for enabling a wakeup interrupt handler procedure | |
KR930008258B1 (en) | Computer system w/control processor of power supply for memoery unit | |
US6449683B1 (en) | Using non-volatile memory for power management in a computer | |
US20070250730A1 (en) | Method and apparatus for quickly reanimating devices from hibernation | |
US6523133B2 (en) | Information processing apparatus that can hold internal information | |
JPH0744469A (en) | Desktop computer system with zero-voltage system suspend | |
JPH0744286A (en) | Computer system with multilevel power-supply control | |
JPH06236284A (en) | Method for preservation and restoration of computer-system processing state and computer system | |
CA2120053A1 (en) | Method for saving and restoring the state of a cpu executing code in protected mode | |
JPH0744285A (en) | Desk-top computer system having single-switch suspending/resuming function | |
US5515539A (en) | Apparatus and method for reducing power consumption by peripheral devices after downloading a program therefrom | |
KR100278355B1 (en) | Computer system and control method of this computer system | |
US5960195A (en) | Intelligent volatile memory initialization | |
KR100323536B1 (en) | Method for recovering data in performing power saving function of power saving computer | |
JP2003085041A (en) | Disc cache system | |
JPH05233325A (en) | Microprocessor and method for automatically restarting input/output trap | |
JPH0713671A (en) | Key inputting method for key inputting device | |
KR19990026800A (en) | How to Set Initial Value for Operating System Timer | |
JPH04160422A (en) | Low power consumption type information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20051201 Year of fee payment: 5 |
|
LAPS | Lapse due to unpaid annual fee |