JP2001318744A - Information processor and data saving control method therefor - Google Patents

Information processor and data saving control method therefor

Info

Publication number
JP2001318744A
JP2001318744A JP2000135381A JP2000135381A JP2001318744A JP 2001318744 A JP2001318744 A JP 2001318744A JP 2000135381 A JP2000135381 A JP 2000135381A JP 2000135381 A JP2000135381 A JP 2000135381A JP 2001318744 A JP2001318744 A JP 2001318744A
Authority
JP
Japan
Prior art keywords
idle state
storage device
secondary storage
information processing
contents
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.)
Withdrawn
Application number
JP2000135381A
Other languages
Japanese (ja)
Inventor
Osamu Mihara
修 三原
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2000135381A priority Critical patent/JP2001318744A/en
Publication of JP2001318744A publication Critical patent/JP2001318744A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To further shorten the time required until a power source is turned off and shifting to a hibernation state is performed after a suspension request is received. SOLUTION: In this data saving control method of this information processor in hibernation, when one processing by an OS is ended (procedure S4) and an idle state is detected (procedure S6) by an idle state detection means, the contents of a memory block write required for a hibernation processing which are stored in a main memory are successively written (procedure S10) to the HDD of a secondary storage device by a write processing means. Thus, at the time of receiving (YES in procedure S3) the suspension request and executing a processing (procedure S20) shift to the hibernation state by a shifting processing means, a amount required to be written to the HDD is reduced. Also, OS processing interruption (procedures S8 and S9), memory management (diagram 3 not shown) of a main memory and write start (diagram 4 not shown) when a fixed time elapses after the idle state are performed as well.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、電源オフの際に主
メモリの内容を二次記憶装置にセーブする機能を有する
情報処理装置およびそのデータセーブ制御方法に関し、
特に、サスペンド要求を受けたのち電源オフしてハイバ
ネーション状態に遷移するまでにかかる時間を短縮でき
る情報処理装置およびそのデータセーブ制御方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus having a function of saving the contents of a main memory to a secondary storage device when the power is turned off, and a data save control method therefor.
In particular, the present invention relates to an information processing apparatus and a data save control method thereof that can reduce the time required to turn off the power after receiving a suspend request and transition to a hibernation state.

【0002】[0002]

【従来の技術】近年、携帯可能なタイプのパーソナルコ
ンピュータなど、多種のポータブル型情報処理装置が開
発されている。これら情報処理装置では、電源の主役は
内蔵の電池であり、電池の駆動可能時間を延ばすために
電力節約のパワーモードとして、例えばサスペンドモー
ドが設定されている。また、最近では、サスペンドモー
ドとしてハイバネーションが使用されている。
2. Description of the Related Art In recent years, various types of portable information processing apparatuses such as portable personal computers have been developed. In these information processing apparatuses, the main role of the power supply is a built-in battery, and for example, a suspend mode is set as a power saving power mode in order to extend the drivable time of the battery. Recently, hibernation has been used as a suspend mode.

【0003】ハイバネーションでは、例えば、図1に示
された情報処理装置の電源が電源スイッチ6−1により
オフされた場合、主メモリ2として装置に実装されたす
べてのメモリの内容を二次記憶装置のHDD(磁気ディ
スク装置)4−1にセーブしたのち、主メモリ2を含む
すべてのデバイスをパワーダウンさせている。
In hibernation, for example, when the power supply of the information processing apparatus shown in FIG. 1 is turned off by a power switch 6-1, the contents of all memories mounted on the apparatus as the main memory 2 are stored in the secondary storage device. After that, all the devices including the main memory 2 are powered down after saving to the HDD (magnetic disk device) 4-1.

【0004】従来、この種の情報処理装置およびそのデ
ータセーブ制御方法では、例えば、特開平10−333
997号公報に開示されるようなものがある。すなわ
ち、図7に示されるように、ハイバネーション処理の高
速化を図るため、BIOS(基本入出力プログラム)2
01からサスペンド要求があった際に、OS(オペレー
ションシステム)202はメモリ整理を実行し、これに
より得た空きメモリ領域をBIOS201のハイバネー
ションルーチンに通知する。BIOS201のハイバネ
ーションルーチンは高速ハイバネーションソフトウェア
ドライバ203から通知された空きのメモリ領域以外に
なる他の領域のみをHDDのハイバネーションエリアに
セーブすることによりデータ転送量を低減して、処理時
間の短縮、すなわち高速化を実現している。
Conventionally, this type of information processing apparatus and its data save control method are disclosed, for example, in Japanese Patent Laid-Open No. 10-333.
There is one disclosed in Japanese Patent Publication No. 997. That is, as shown in FIG. 7, the BIOS (basic input / output program) 2
When a suspend request is issued from 01, the OS (operation system) 202 performs memory organization and notifies the obtained free memory area to the hibernation routine of the BIOS 201. The hibernation routine of the BIOS 201 saves only the other areas other than the empty memory area notified from the high-speed hibernation software driver 203 in the hibernation area of the HDD, thereby reducing the data transfer amount and shortening the processing time, that is, the high-speed hibernation routine. Has been realized.

【0005】また、特開平9−319667号公報も同
様に、未使用領域コードのみを記憶し、使用部分のみの
部分転送により処理の高速化を図る技術が提案されてい
る。
Similarly, Japanese Patent Application Laid-Open No. 9-319667 proposes a technique for storing only unused area codes and increasing the processing speed by partial transfer of only used parts.

【0006】[0006]

【発明が解決しようとする課題】上述した従来の情報処
理装置およびそのデータセーブ制御方法では、サスペン
ド要求があった際にセーブに必要なメモリ内容のみを主
メモリから二次記憶装置へ書込みすることによりハイバ
ネーション処理の高速化を図っているが、未だ、処理時
間の短縮化が不充分であるという問題点がある。その理
由は、ハイバネーション処理はサスペンション要求が発
生した後に開始されるからである。
In the above-described conventional information processing apparatus and its data save control method, when a suspend request is issued, only the memory contents necessary for saving are written from the main memory to the secondary storage device. However, there is a problem that the reduction of the processing time is still insufficient. The reason is that the hibernation process is started after the suspension request occurs.

【0007】本発明の課題は、このような問題点を解決
し、更にハイバネーションの処理時間を短縮化できる情
報処理装置およびそのデータセーブ制御方法を提供する
ことである。
It is an object of the present invention to solve such a problem and to provide an information processing apparatus and a data save control method thereof capable of further reducing the processing time of hibernation.

【0008】[0008]

【課題を解決するための手段】本発明による情報処理装
置のデータセーブ制御方法は、電源オフの際に主メモリ
の内容を二次記憶装置にセーブする情報処理装置のデー
タセーブ制御方法において、オペレーティングシステム
による一つの処理が終了しアイドル状態にある間に、前
記主メモリに記憶されたハイバネーション処理における
要書込みのメモリブロックの内容を前記二次記憶装置に
逐次書込むことを特徴としている。前記アイドル状態に
入ってからオペレーティングシステムの処理要求が発生
した際には、直ちに要求された処理動作に移行すること
が望ましい。更に、このような二次記憶装置への逐次書
込みは、前記アイドル状態に入ってから一定時間の経過
後に開始されることが望ましい。
A data save control method for an information processing apparatus according to the present invention is a data save control method for an information processing apparatus for saving the contents of a main memory to a secondary storage device when a power supply is turned off. While one process by the system is completed and the system is in an idle state, the contents of the memory block required to be written in the hibernation process stored in the main memory are sequentially written to the secondary storage device. When a processing request of the operating system occurs after entering the idle state, it is desirable to immediately shift to the requested processing operation. Further, it is desirable that such sequential writing to the secondary storage device is started after a lapse of a predetermined time after entering the idle state.

【0009】また、前記要書込みのメモリブロックの内
容を、前記主メモリのハイバネーション用領域に対する
全メモリブロックの内容の前記二次記憶装置への要書込
み状態を記憶する管理テーブルにより管理し、該管理テ
ーブルを電源オンののち最初に二次記憶装置に書込む際
に初期化することが好ましい。この管理テーブルの初期
化は、前記アイドル状態に入ってから一定時間の経過後
に開始されることが望ましい。
Further, the contents of the memory blocks to be written are managed by a management table which stores the state of the contents of all the memory blocks for the hibernation area of the main memory to be written to the secondary storage device. It is preferable to initialize the table when first writing it to the secondary storage device after power-on. It is desirable that the initialization of the management table be started after a lapse of a predetermined time from the start of the idle state.

【0010】このように、オペレーティングシステム処
理の合間に、可能な限りデータセーブを行っているの
で、サスペンド要求に際しては残っている要書込みのメ
モリブロックの内容のみを二次記憶装置に書き込めばよ
い。要書込みのメモリブロックの内容とは、主メモリか
ら二次記憶装置に未書込みおよび二次記憶装置に書き込
み後に変更された内容のことである。また、一定時間の
経過後にハイバネーション処理を実行するということ
は、ユーザの処理とハイバネーション処理とが頻繁に切
り替わるような状況において、ハイバネーション処理が
頻繁に起動されることを防止することができる。
As described above, since data is saved as much as possible between operating system processes, only the contents of the remaining required memory block need be written to the secondary storage device when a suspend request is made. The contents of the memory block that requires writing are the contents that have not been written from the main memory to the secondary storage device and the contents that have been changed after writing to the secondary storage device. Executing the hibernation process after a lapse of a predetermined time can prevent the hibernation process from being frequently activated in a situation where the user process and the hibernation process are frequently switched.

【0011】また、具体例としての本発明による情報処
理装置は、電源オフの際に主メモリの内容を二次記憶装
置にセーブする際に、オペレーティングシステムの処理
が終了しアイドル状態に入ったことを検出するアイドル
状態検出手段と、前記アイドル状態検出手段がアイドル
状態を検出した際に、前記主メモリにおける要書込みの
メモリブロックの内容を前記二次記憶装置に逐次書込む
書込処理手段と、サスペンド要求に際しては残っている
要書込みのメモリブロックの内容を前記二次記憶装置に
書込んだのち電源をオフにする遷移処理手段とを備えて
いる。
Also, in the information processing apparatus according to the present invention as a specific example, when the contents of the main memory are saved in the secondary storage device when the power is turned off, the processing of the operating system ends and the information processing apparatus enters an idle state. An idle state detecting means for detecting, when the idle state detecting means detects an idle state, a write processing means for sequentially writing the contents of the memory blocks that need to be written in the main memory to the secondary storage device, When a suspend request is issued, a transition processing unit is provided for writing the remaining contents of the memory block to be written into the secondary storage device and then turning off the power.

【0012】前記書込み処理手段は、アイドル状態を検
出した際、一定時間経過後に書込みを開始することが望
ましい。前記主メモリのハイバネーション用領域に対す
る全メモリブロックの内容を前記二次記憶装置への要書
込み状態として管理する管理テーブルと、電源オンのの
ち最初に二次記憶装置に書込む際に前記管理テーブルを
初期化する初期化手段とを更に備え、この初期化手段
は、前記アイドル状態に入ってから一定時間の経過後に
管理テーブルの初期化を開始している。
Preferably, the write processing means starts writing after a lapse of a predetermined time when detecting an idle state. A management table that manages the contents of all memory blocks for the hibernation area of the main memory as a write required state to the secondary storage device, and the management table when writing to the secondary storage device first after power-on. And initialization means for initializing the management table after a lapse of a predetermined time after entering the idle state.

【0013】[0013]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0014】まず、図1を参照して情報処理装置の構成
について説明する。図1は一般的なラップトップ型のパ
ーソナルコンピュータの構成を有する情報処理装置の一
形態を示すブロック図である。図示される情報処理装置
本体には、システムバス10に接続されるCPU(中央
処理装置)1、主メモリ2、BIOS−ROM(BIO
S用読み取り専用メモリ)3、二次記憶装置としてのH
DD(磁気ディスクドライブ)4−1を制御するコント
ローラ4、入力コントローラ5、電源コントローラ6、
ディスプレイコントローラ7、およびRTC(実時刻ク
ロック)8が搭載されている。
First, the configuration of the information processing apparatus will be described with reference to FIG. FIG. 1 is a block diagram showing one embodiment of an information processing apparatus having a configuration of a general laptop personal computer. The illustrated information processing apparatus main body includes a CPU (central processing unit) 1 connected to a system bus 10, a main memory 2, and a BIOS-ROM (BIOS).
Read only memory for S) 3, H as secondary storage device
A controller 4 for controlling a DD (magnetic disk drive) 4-1, an input controller 5, a power supply controller 6,
A display controller 7 and an RTC (real time clock) 8 are mounted.

【0015】CPU1はシステム全体の制御とデータ処
理を行う。システム制御のプログラムはBIOS−RO
M3および二次記憶装置の磁気ディスク装置(HDD)
4−1に保存され、主メモリ2に読み込まれて実行され
る。システムにおけるデータはシステムバス10を介し
て各コンポーネントに転送される。HDD4−1はHD
Dコントローラ4によって制御される。入力コントロー
ラ5は、キーボード5−1またはマウス5−2などのヒ
ューマンインタフェースに対する制御を行なう。実行の
結果は、ディスプレイコントローラ7により制御される
液晶モニタ7−1に表示されるものとする。
The CPU 1 controls the entire system and performs data processing. The system control program is BIOS-RO
Magnetic disk device (HDD) for M3 and secondary storage device
4-1 is stored in the main memory 2 and executed. Data in the system is transferred to each component via the system bus 10. HDD 4-1 is HD
It is controlled by the D controller 4. The input controller 5 controls a human interface such as the keyboard 5-1 or the mouse 5-2. The execution result is displayed on the liquid crystal monitor 7-1 controlled by the display controller 7.

【0016】また、情報処理装置の電源は電源コントロ
ーラ6により制御される。電源コントローラ6は電源ス
イッチ6−1の状態を監視し、電源のオンまたはオフの
事象は割り込み処理としてCPU1に通知される。RT
C8がカウントアップする時間情報により、情報処理装
置の動作時間を知ることができる。
The power supply of the information processing apparatus is controlled by a power supply controller 6. The power supply controller 6 monitors the state of the power supply switch 6-1 and notifies the CPU 1 of the power on / off event as an interrupt process. RT
The operation time of the information processing device can be known from the time information at which C8 counts up.

【0017】図1において、BIOS−ROM3に保存
されたプログラムおよび主メモリ2に読み込まれたプロ
グラムは、CPU1に読み込まれて実行される。図1の
CPU1ではオペレーションシステム(以後、OSと略
称する)が動作しており、このOSでは複数のプログラ
ムをプリエンプティブに切り替えながら、仮想的に同時
に複数のプログラムを動作させることができるものとす
る。
In FIG. 1, a program stored in the BIOS-ROM 3 and a program read in the main memory 2 are read and executed by the CPU 1. An operation system (hereinafter abbreviated as OS) operates in the CPU 1 of FIG. 1, and it is assumed that the OS can virtually operate a plurality of programs simultaneously while switching a plurality of programs preemptively.

【0018】このOS上で動作するプログラムはOSが
提供するグラフィカルインタフェース(GUI)機能を
利用したグラフィカルなインタフェースを有するプログ
ラムであり、プログラムの動作はオペレータのキーボー
ド5−1およびマウス5−2からの入力により決定され
るものとする。これらの入力による動作が終了すると、
プログラムは次の入力を待つ状態となり、OSに制御を
委ねる。
The program operating on the OS is a program having a graphical interface utilizing a graphical interface (GUI) function provided by the OS. The operation of the program is performed by the keyboard 5-1 and mouse 5-2 of the operator. It shall be determined by input. When the operation by these inputs is completed,
The program waits for the next input, and leaves control to the OS.

【0019】OSでは、オペレータの入力待ちのプログ
ラムは待ち状態にし、他に動作することができるプログ
ラムがあればこのプログラムに制御が移される。しかし
ながら、本実施例の情報処理装置の場合、シングルユー
ザ用のパーソナルコンピュータを対象としているので、
ユーザが入力を行なわない時間のほとんどがアイドル状
態である。
In the OS, a program waiting for input from the operator is put into a wait state, and if there is another program that can operate, the control is transferred to this program. However, in the case of the information processing apparatus of the present embodiment, since the personal computer for a single user is targeted,
Most of the time when the user does not make an input is idle.

【0020】図2は本発明の実施の一形態を示すフロー
チャートである。図2に図1を併せ参照して図示された
情報処理装置のデータセーブ処理手順について説明す
る。
FIG. 2 is a flowchart showing an embodiment of the present invention. A data save processing procedure of the information processing apparatus illustrated in FIG. 2 with reference to FIG. 1 will be described.

【0021】まず、電源スイッチ6−1がオン(手順S
1)され、入力装置であるキーボード5−1またはマウ
ス5−2の操作により処理要求を受付け(手順S2のY
ES)した際には、これがサスペンド要求に基づくもの
でない(手順S3のNO)場合、CPU1は、その処理
要求されたプログラムを実行して終了(手順S4)す
る。続いて処理要求の受付けがある(手順S5のYE
S)場合には、手順は上記手順S3に戻り、これまでの
手順を繰り返す。
First, the power switch 6-1 is turned on (procedure S
1) Then, a processing request is accepted by operating the keyboard 5-1 or the mouse 5-2 as an input device (Y in step S2).
If ES (ES) is not based on the suspend request (NO in step S3), the CPU 1 executes the requested program and ends (step S4). Subsequently, a processing request is accepted (YE in step S5).
In the case of S), the procedure returns to the above procedure S3, and the previous procedure is repeated.

【0022】上記手順S5が「NO」で、続く処理要求
の受付けがない場合には、CPU1は、アイドル状態検
出手段(実質的にはOSのプログラムに従うCPUの一
つの処理動作)により情報処理装置のアイドル状態を検
出(手順S6)する。この手順S6に続いてハイバネー
ションの書込み処理が開始(手順S7)される。
If the above step S5 is "NO" and the subsequent processing request is not received, the CPU 1 uses the idle state detecting means (substantially one processing operation of the CPU according to the OS program) to execute the information processing device. Is detected (step S6). Subsequent to step S6, the hibernation writing process is started (step S7).

【0023】すなわち、情報処理装置はユーザからの処
理要求がなくシステムが一定時間アイドル状態になった
ことを検出した際に、BIOS(基本入出力プログラ
ム)から通知されたHDD4−1上のハイバネーション
用に確保された領域に、主メモリ2の中でこれまで一度
も書込みが行われなかったか、または前回のBIOSの
ハイバネーション書込みルーチンによって書込みが行わ
れてから内容に変更があった領域を、ハイバネーション
書込みルーチンによりHDD4−1のハイバネーション
領域に書込みを行なっていくハイバネーションの書込み
処理が開始される。
That is, when the information processing apparatus detects that the system has been idle for a certain period of time without a processing request from the user, the information processing apparatus notifies the BIOS (basic input / output program) of the hibernation on the HDD 4-1. The area reserved in the main memory 2 in the main memory 2 has been written to by the hibernation writing routine of the previous time, or the contents of which have been changed since the previous writing was performed by the hibernation writing routine. A hibernation writing process for writing data into the hibernation area of the HDD 4-1 is started by a routine.

【0024】このハイバネーションの書込み処理中にユ
ーザなどから何らかの処理要求が発生した場合にはこの
処理要求が受付け(手順S8のYES)られ、割込みと
してハイバネーションの書込み処理が中断(手順S9)
されて、要求された処理に移行する上記手順S3からの
手順に戻り、これまでの手順を繰り返す。
If any processing request is issued from the user or the like during the hibernation writing process, the processing request is accepted (YES in step S8), and the hibernation writing process is interrupted as an interrupt (step S9).
Then, the procedure returns to the procedure from the above-mentioned procedure S3 to shift to the requested processing, and the procedure up to this point is repeated.

【0025】上記手順S8が「NO」で処理要求がない
場合、手順は、後の図4を参照して説明するハイバネー
ションの書込み処理手順(手順S10)に進み、次いで
上記手順S3に戻る。また、上記手順S3が「YES」
でサスペンド要求を受付けた場合には、CPU1は、後
の図6を参照して説明するハイバネーション状態への遷
移処理手順(手順S20)に進み、ハイバネーション機
能を発揮することができる。
If the above step S8 is "NO" and there is no processing request, the procedure proceeds to a hibernation write processing procedure (step S10) described later with reference to FIG. 4, and then returns to the above step S3. Also, if the above procedure S3 is "YES"
When the CPU 1 receives the suspend request, the CPU 1 proceeds to the hibernation state transition processing procedure (procedure S20) described later with reference to FIG. 6, and can exhibit the hibernation function.

【0026】上述したように、ハイバネーション機能の
発揮に際して、サスペンド要求を受ける前、OS処理の
アイドル状態の間に、手順S10により主メモリ2から
HDD4−1へ書込み可能なメモリ内容を予め書き込ん
でいる。従って、サスペンド要求を受けた際の遷移処理
における主メモリ2からHDD4−1への書込み量は削
減されており、その処理時間を短縮することができる。
As described above, when the hibernation function is exhibited, the contents of the writable memory are written in advance from the main memory 2 to the HDD 4-1 in step S10 during the idle state of the OS process before receiving the suspend request. . Therefore, the amount of writing from the main memory 2 to the HDD 4-1 in the transition process upon receiving the suspend request is reduced, and the processing time can be shortened.

【0027】次に、図3および図4に図1および図2を
併せ参照して主メモリ2からHDD4−1への書込み処
理手順について説明する。
Next, the write processing procedure from the main memory 2 to the HDD 4-1 will be described with reference to FIGS.

【0028】まず、図3を参照して主メモリ2およびH
DD4−1のメモリ領域について説明する。主メモリ2
には、CPU1で動作するOSの複数のプログラムがメ
モリ領域21に記憶されている。メモリ領域21のメモ
リ内容は、ハイバネーション機能を実行するため管理テ
ーブル22により管理されている。従って、管理テーブ
ル22は、図示されるように、HDD4−1へ書き込ま
れるメモリブロック毎に管理され、本発明によりハイバ
ネーション書込み処理が実行された書込み後領域と未書
込み領域とがある。このメモリブロックの単位サイズは
一定で、例えば、2048バイトで区切られているもの
とする。また、書込み後、そのメモリ内容に変更があっ
た場合には、未書込み領域と共にハイバネーション遷移
処理の際にHDD4−1のハイバネーション領域41に
書き込む必要があるので、これらの領域を要書込み領域
21−Aに設定している。
First, referring to FIG. 3, main memory 2 and H
The memory area of the DD 4-1 will be described. Main memory 2
, A plurality of programs of the OS running on the CPU 1 are stored in the memory area 21. The memory contents of the memory area 21 are managed by a management table 22 for executing the hibernation function. Therefore, as shown in the figure, the management table 22 is managed for each memory block written to the HDD 4-1, and includes a post-write area and a non-write area where the hibernation write process is executed according to the present invention. It is assumed that the unit size of this memory block is constant and is divided, for example, by 2048 bytes. Further, if the contents of the memory are changed after writing, it is necessary to write in the hibernation area 41 of the HDD 4-1 together with the unwritten area in the hibernation transition process. A is set.

【0029】管理テーブル22は、装置の電源スイッチ
がオンされた際に、初期化され、全てのメモリブロック
の要書込みフラグをオン「1」として書込みを必要とす
る。主メモリ2にメモリされている全ての内容は、情報
処理装置の最初のアイドル状態までは未書込み領域であ
り、要書込み領域21-Aに含まれるので、最初のアイ
ドル状態にHDD4−1のハイバネーション領域41に
書込みが開始され、書込まれたメモリブロックでは管理
テーブル22の要書込みフラグをオフ「0」に切り替え
る。また、HDD4−1のハイバネーション領域41に
は、ハイバネーション領域41への書込み開始以前に、
主メモリ2の容量分のメモリ領域が確保されているもの
とする。
The management table 22 is initialized when the power switch of the device is turned on, and requires writing by setting the required write flags of all the memory blocks to "1". All the contents stored in the main memory 2 are unwritten areas until the first idle state of the information processing apparatus and are included in the write required area 21-A, so that the hibernation of the HDD 4-1 is performed in the first idle state. Writing to the area 41 is started, and the necessary writing flag in the management table 22 is turned off “0” in the written memory block. In the hibernation area 41 of the HDD 4-1, before writing to the hibernation area 41 is started,
It is assumed that a memory area for the capacity of the main memory 2 is secured.

【0030】ユーザなどからの処理要求があった際には
割込み処理され、ハイバネーション書込み処理は中断さ
れるので、管理テーブル22のメモリブロックには書込
み後領域の要書込みフラグ「0」と未書込み領域の要書
込みフラグ「1」とが生じる。この時点で、HDD4−
1のハイバネーション領域41では、書き込み済み領域
が発生し、残りは空き領域のままである。BIOSのハ
イバネーション処理部(図示省略)は、OS動作中に情
報処理装置のアイドル状態においてハイバネーション処
理する場合、ハイバネーション書込みルーチンをコール
された際にHDD4−1のハイバネーション領域に書き
込み済みのメモリ領域を管理している。
When there is a processing request from a user or the like, an interrupt processing is performed and the hibernation writing processing is interrupted. Required write flag “1”. At this point, HDD4-
In the 1 hibernation area 41, a written area is generated, and the rest remains an empty area. A hibernation processing unit (not shown) of the BIOS manages a memory area already written in the hibernation area of the HDD 4-1 when the hibernation writing routine is called when the hibernation processing is performed in an idle state of the information processing apparatus during the OS operation. are doing.

【0031】この後、主メモリ2のメモリ領域21には
OSの処理により主メモリ2に新たにメモリされた未書
込み領域と上述のハイバネーション領域41に書込みさ
れた書込み後領域のうち変更された書込み後変更領域と
が要書込み領域21−Aとして発生し、管理テーブル2
2の対応するメモリブロックには要書込みフラグ「1」
が立っている。従って、次のアイドル状態で、要書込み
領域21−Aの未書込み領域および書込み後変更領域そ
れぞれのメモリ内容は、ハイバネーション領域41の空
き領域に書き込まれて書込み領域、または書込み済み領
域に上書きされて上書き領域になる。
After that, in the memory area 21 of the main memory 2, the changed writing of the unwritten area newly stored in the main memory 2 by the processing of the OS and the post-writing area written in the hibernation area 41 is performed. The post-change area occurs as the write required area 21-A, and the management table 2
2 corresponding to the memory block, the necessary flag "1"
Is standing. Therefore, in the next idle state, the memory contents of the unwritten area and the changed area after writing of the writing required area 21-A are written to the free area of the hibernation area 41 and overwritten on the written area or the written area. Overwrite area.

【0032】次に、図4に図2を併せ参照して、図2に
おけるハイバネーション書込み処理手順の詳細について
説明する。
Next, the hibernation write processing procedure in FIG. 2 will be described in detail with reference to FIG. 4 and FIG.

【0033】図2における手順S6でアイドル状態を検
出した際に、情報処理装置は一定時間の経過(手順S1
1のYES)を待って、ハイバネーション領域41への
書込みが最初か否かが判定(手順S12)される。一定
時間経過後における判断には、図1におけるRTC8で
計測する装置時間が参照される。一定時間の経過を見る
ことは、ユーザの処理とハイバネーション処理とが頻繁
に切り替わるような状況において、ハイバネーション処
理が頻繁に起動されることを防止している。
When the information processing apparatus detects an idle state in step S6 in FIG. 2, a predetermined time elapses (step S1).
After waiting for 1), it is determined whether writing to the hibernation area 41 is the first time (step S12). The device time measured by the RTC 8 in FIG. Watching the elapse of a certain time prevents the hibernation process from being frequently activated in a situation where the user process and the hibernation process are frequently switched.

【0034】手順S12が「YES」で最初にアイドル
状態を検出した場合には、管理テーブル22の全メモリ
ブロックに要書込みフラグ「1」を立てて、管理テーブ
ル22の初期化(手順S13)ができる。次いで、これ
までに主メモリ2のメモリ領域21に記憶したものがあ
るため、要書込み領域21−Aに要書込みフラグ「1」
が立っている場合(手順S14のYES)では書込み対
象のメモリブロックがあるのでこのメモリブロックの内
容をHDD4-1のハイバネーション領域41に書込み
(手順S15)が行なわれる。この際、管理テーブル2
2の対象メモリブロックに要書込みフラグ「0」が立て
られて、次のハイバネーション処理における書込みの不
要が表示される。
If the procedure S12 is "YES" and the idle state is detected first, the necessary write flag "1" is set for all the memory blocks in the management table 22, and the management table 22 is initialized (procedure S13). it can. Next, since there is data stored in the memory area 21 of the main memory 2 so far, the necessary write flag “1” is stored in the required write area 21-A.
Is set (YES in step S14), since there is a memory block to be written, the contents of this memory block are written to the hibernation area 41 of the HDD 4-1 (step S15). At this time, the management table 2
A write required flag “0” is set for the target memory block No. 2 to indicate that writing is unnecessary in the next hibernation process.

【0035】次いで、上記手順S14に戻り、更に要書
込みメモリブロックの有無をチェックしてメモリ内容を
有する全てのメモリブロックがHDD4−1に書き込み
済みとなったため、手順S14が「NO」となるまで手
順は繰り返される。また、上記手順S12が「NO」で
ハイバネーション領域41への書込みが最初ではない場
合、次の手順は直ちに手順S14へ進む。
Then, the procedure returns to the step S14, and the presence or absence of a memory block requiring writing is further checked, and all the memory blocks having the contents of the memory have been written to the HDD 4-1, and until the step S14 becomes "NO". The procedure is repeated. If the above step S12 is “NO” and writing to the hibernation area 41 is not the first step, the next step immediately proceeds to step S14.

【0036】次に、図5および図6に図3を併せ参照し
て、ハイバネーション遷移処理について説明する。
Next, the hibernation transition process will be described with reference to FIGS. 5 and 6 and FIG.

【0037】実際にユーザ操作などでハイバネーション
状態に遷移する際には、図5に示されるように、ユーザ
操作などから電源オフの要求を受けたBIOS101
は、主メモリ2のメモリ領域21における未書込みおよ
び書込み後変更である要書込み領域のメモリブロックの
内容をHDD4−1のハイバネーション領域41への書
込みを、サスペンド要求によりOS102に対して要求
する。OS102はこの要求に対してBIOS101の
ハイバネーション書込みルーチンをコールして要書込み
領域21−Aのメモリ内容の全てをHDD4−1のハイ
バネーション領域41に書き込んでいく。この書込みル
ーチンによる書込みがすべて完了した時点で処理はBI
OS101へ移される。次いで、BIOS101は通常
のハイバネーションと同様に電源を遮断する処理を行な
う。
When a transition to the hibernation state is actually performed by a user operation or the like, as shown in FIG.
Requests the OS 102 to write to the hibernation area 41 of the HDD 4-1 the contents of the memory block in the required write area which is unwritten and changed after writing in the memory area 21 of the main memory 2 by the suspend request. In response to this request, the OS 102 calls the hibernation write routine of the BIOS 101 and writes all of the memory contents of the write required area 21-A into the hibernation area 41 of the HDD 4-1. When all the writing by this writing routine is completed, the processing is BI
Moved to OS 101. Next, the BIOS 101 performs a process of shutting off the power in the same manner as in normal hibernation.

【0038】次に、図6に図2および図5を併せ参照し
て、図2におけるハイバネーション遷移処理手順の詳細
について説明する。
Next, the hibernation transition processing procedure in FIG. 2 will be described in detail with reference to FIG. 6 and FIG. 2 and FIG.

【0039】図2における手順S3が「YES」でサス
ペンド要求を受付けたCPU1はOS102のプログラ
ムにより主メモリ2のメモリ領域21における未書込み
および書込み後変更である要書込み領域、すなわち管理
テーブルで要書込みフラグ「1」のメモリブロックの内
容をHDD4−1のハイバネーション領域41へ順次書
込むと共にこれに対応して要書込みフラグ「0」に切り
替え、全ての書込みを終了(手順S22)した後、BI
OS101へハイバネーション領域41に対する書込み
完了を通知(手順S23)し、BIOS101のサスペ
ンドルーチンにより所定のパワー供給をオフしてハイバ
ネーションによるサスペンド状態が設定(手順S24)
される。
The CPU 1 that has received the suspend request when the procedure S3 in FIG. 2 is "YES" receives the suspend request by the program of the OS 102 in the memory area 21 of the main memory 2 which is the unwritten area and the changed area after the write, that is, the required write area in the management table. The contents of the memory block with the flag “1” are sequentially written into the hibernation area 41 of the HDD 4-1, and the flag is switched to the write required flag “0” in response to this, and after all writing is completed (step S22), the BI
The completion of writing to the hibernation area 41 is notified to the OS 101 (step S23), a predetermined power supply is turned off by a suspend routine of the BIOS 101, and a suspend state by hibernation is set (step S24).
Is done.

【0040】上記説明では、機能ブロックまたは手順を
図示して説明したが、機能の分離併合または手順の前後
入替えなどは上記機能を満たす限り自由であり、上記説
明が本発明を限定するものではない。
In the above description, functional blocks or procedures have been illustrated and described. However, separation and merging of functions or permutation of procedures can be freely performed as long as the above functions are satisfied, and the above description does not limit the present invention. .

【0041】従って、上記説明では、シングルユーザ用
であるラップトップ型のパーソナルコンピュータの構成
を有する情報処理装置について説明したが、他の構成を
有する情報処理装置にも適用可能である。
Accordingly, in the above description, an information processing apparatus having a configuration of a laptop personal computer for a single user has been described. However, the present invention is also applicable to an information processing apparatus having another configuration.

【0042】[0042]

【発明の効果】以上説明したように本発明によれば、サ
スペンド要求を受けたのち電源オフしてハイバネーショ
ン状態に遷移するまでにかかる時間を更に短縮できる情
報処理装置およびそのデータセーブ制御方法を得ること
ができる。
As described above, according to the present invention, an information processing apparatus and a data save control method thereof capable of further shortening the time required to turn off the power after receiving a suspend request and transition to the hibernation state are obtained. be able to.

【0043】その理由は、オペレーティングシステムに
よる処理の合間に、可能な限りデータセーブを行ってい
るので、サスペンド要求に際しては残っている要書込み
のメモリブロックの内容のみを二次記憶装置に書き込め
ばよいからである。
The reason is that the data is saved as much as possible during the processing by the operating system. Therefore, when the suspend request is made, only the contents of the remaining write-necessary memory blocks need to be written to the secondary storage device. Because.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の一形態を示す機能ブロック図で
ある。
FIG. 1 is a functional block diagram showing an embodiment of the present invention.

【図2】本発明における主要動作手順の一形態を示すフ
ローチャートである。
FIG. 2 is a flowchart showing one embodiment of a main operation procedure in the present invention.

【図3】本発明におけるメモリ領域の変遷および管理状
態の一形態を示すブロック図である。
FIG. 3 is a block diagram showing one form of transition and management state of a memory area in the present invention.

【図4】図2におけるハイバネーション書込み処理手順
の一形態を示すフローチャートである。
FIG. 4 is a flowchart illustrating one embodiment of a hibernation write processing procedure in FIG. 2;

【図5】本発明におけるサスペンド要求状態の一形態を
示すブロック図である。
FIG. 5 is a block diagram showing one mode of a suspend request state according to the present invention.

【図6】図2におけるハイバネーション遷移処理手順の
一形態を示すフローチャートである。
FIG. 6 is a flowchart illustrating one embodiment of a hibernation transition processing procedure in FIG. 2;

【図7】従来のサスペンド要求状態の一例を示すブロッ
ク図である。
FIG. 7 is a block diagram showing an example of a conventional suspend request state.

【符号の説明】[Explanation of symbols]

1 CPU 2 主メモリ 3 BIOS−ROM 4 HDDコントローラ 4−1 HDD 5 入力コントローラ 5−1 キーボード 5−2 マウス 6 電源コントローラ 6−1 電源スイッチ 7 ディスプレイコントローラ 7−1 液晶モニタ 8 RTC 21 メモリ領域 21−A 要書込み領域 22 管理テーブル 41 ハイバネーション領域 101 BIOS 102 OS DESCRIPTION OF SYMBOLS 1 CPU 2 Main memory 3 BIOS-ROM 4 HDD controller 4-1 HDD 5 Input controller 5-1 Keyboard 5-2 Mouse 6 Power supply controller 6-1 Power switch 7 Display controller 7-1 Liquid crystal monitor 8 RTC 21 Memory area 21- A Write required area 22 Management table 41 Hibernation area 101 BIOS 102 OS

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 電源オフの際に主メモリの内容を二次記
憶装置にセーブする情報処理装置のデータセーブ制御方
法において、オペレーティングシステムによる一つの処
理が終了しアイドル状態にある間に、前記主メモリに記
憶されたハイバネーション処理における要書込みのメモ
リブロックの内容を前記二次記憶装置に逐次書込むこと
を特徴とする情報処理装置のデータセーブ制御方法。
1. A data save control method for an information processing apparatus for saving the contents of a main memory to a secondary storage device when a power supply is turned off, wherein the main system is in an idle state after one process by an operating system is completed. A data save control method for an information processing apparatus, characterized by sequentially writing the contents of a memory block required to be written in a hibernation process stored in a memory to the secondary storage device.
【請求項2】 請求項1において、前記アイドル状態に
入ってからオペレーティングシステムの処理要求が発生
した際には、直ちに要求された処理動作に移行すること
を特徴とする情報処理装置のデータセーブ制御方法。
2. The data save control of an information processing apparatus according to claim 1, wherein when a processing request of an operating system occurs after entering the idle state, the processing immediately shifts to a requested processing operation. Method.
【請求項3】 請求項1において、二次記憶装置への逐
次書込みは、前記アイドル状態に入ってから一定時間の
経過後に開始されることを特徴とする情報処理装置のデ
ータセーブ制御方法。
3. The data save control method for an information processing device according to claim 1, wherein the sequential writing to the secondary storage device is started after a lapse of a predetermined time from entering the idle state.
【請求項4】 請求項1において、前記要書込みのメモ
リブロックの内容を、前記主メモリのハイバネーション
用領域に対する全メモリブロックの内容の前記二次記憶
装置への要書込み状態を記憶する管理テーブルにより管
理し、該管理テーブルを電源オンののち最初に二次記憶
装置に書込む際に初期化することを特徴とする情報処理
装置のデータセーブ制御方法。
4. The management table according to claim 1, wherein the contents of the memory blocks to be written are stored in a management table which stores a state of the contents of all the memory blocks for the hibernation area of the main memory, which are to be written to the secondary storage device. A data save control method for an information processing apparatus, comprising: managing and initializing the management table when first writing it to a secondary storage device after power-on.
【請求項5】 請求項4において、管理テーブルの初期
化は、前記アイドル状態に入ってから一定時間の経過後
に開始されることを特徴とする情報処理装置のデータセ
ーブ制御方法。
5. The data save control method for an information processing apparatus according to claim 4, wherein the initialization of the management table is started after a lapse of a predetermined time after entering the idle state.
【請求項6】 電源オフの際に主メモリの内容を二次記
憶装置にセーブする機能を有する情報処理装置におい
て、オペレーティングシステムの処理が終了しアイドル
状態に入ったことを検出するアイドル状態検出手段と、
前記アイドル状態検出手段がアイドル状態を検出した際
に、前記主メモリにおける要書込みのメモリブロックの
内容を前記二次記憶装置に逐次書込む書込み処理手段
と、サスペンド要求に際しては残っている要書込みのメ
モリブロックの内容を前記二次記憶装置に書込んだのち
電源をオフにする遷移処理手段とを備えることを特徴と
する情報処理装置。
6. In an information processing apparatus having a function of saving the contents of a main memory in a secondary storage device when a power supply is turned off, an idle state detecting means for detecting that the processing of the operating system has been completed and the apparatus has entered an idle state. When,
When the idle state detecting means detects an idle state, the write processing means for sequentially writing the contents of the memory blocks required to be written in the main memory to the secondary storage device; and An information processing apparatus, comprising: a transition processing unit that writes the contents of a memory block into the secondary storage device and then turns off the power.
【請求項7】 請求項6において、前記書込み処理手段
は、アイドル状態を検出した際、一定時間経過後に書込
みを開始することを特徴とする情報処理装置。
7. The information processing apparatus according to claim 6, wherein said write processing means starts writing after a lapse of a predetermined time when detecting an idle state.
【請求項8】 請求項6において、前記主メモリのハイ
バネーション用領域に対する全メモリブロックの内容を
前記二次記憶装置への要書込み状態として管理する管理
テーブルと、電源オンののち最初に二次記憶装置に書込
む際に前記管理テーブルを初期化する初期化手段とを更
に備えることを特徴とする情報処理装置。
8. The management table according to claim 6, wherein a management table for managing the contents of all the memory blocks in the hibernation area of the main memory as a write required state to the secondary storage device, and a secondary storage device first after power-on. An information processing apparatus further comprising: an initializing unit that initializes the management table when writing to the apparatus.
【請求項9】 請求項8において、前記初期化手段は、
前記アイドル状態に入ってから一定時間の経過後に管理
テーブルの初期化を開始することを特徴とする情報処理
装置。
9. The method according to claim 8, wherein:
An information processing apparatus characterized in that initialization of a management table is started after a lapse of a predetermined time after entering the idle state.
【請求項10】 電源オフの際に主メモリの内容を二次
記憶装置にセーブする機能を有する情報処理装置におい
て、前記主メモリのハイバネーション用領域に対する全
メモリブロックの内容の前記二次記憶装置への要書込み
状態を管理する管理テーブルと、オペレーティングシス
テムの処理が終了しアイドル状態に入ったことを検出す
るアイドル状態検出手段と、電源オンののちアイドル状
態を検出してから一定時間経過後、最初に二次記憶装置
に書込む際に前記管理テーブルを初期化する初期化手段
と、前記アイドル状態検出手段がアイドル状態を検出し
てから一定時間経過後に前記管理テーブルで要書込みの
メモリブロックの内容を前記二次記憶装置に逐次書込む
書込処理手段と、サスペンド要求に際しては残っている
要書込みのメモリブロックの内容を前記二次記憶装置に
書込んだのち電源をオフにする遷移処理手段とを備える
ことを特徴とする情報処理装置。
10. An information processing apparatus having a function of saving contents of a main memory to a secondary storage device when a power supply is turned off, wherein the contents of all memory blocks corresponding to a hibernation area of the main memory are transferred to the secondary storage device. A management table for managing the write required state, an idle state detecting means for detecting that the processing of the operating system has ended and entering an idle state, and a first time after a lapse of a predetermined time from the detection of the idle state after power-on. Initialization means for initializing the management table when writing to the secondary storage device, and contents of the memory block to be written in the management table after a lapse of a fixed time after the idle state detection means detects the idle state. Processing means for sequentially writing data to the secondary storage device; An information processing apparatus comprising: a transition processing unit that writes power of a lock to the secondary storage device and then turns off the power.
【請求項11】 請求項6または請求項10において、
アイドル状態検出手段および書込み処理手段は、前記ア
イドル状態に入ってからオペレーティングシステムの処
理要求が発生した際には、直ちに動作を中断して要求さ
れた処理動作に移行することを特徴とする情報処理装
置。
11. The method according to claim 6, wherein
The information processing method according to claim 1, wherein the idle state detecting means and the write processing means immediately stop the operation and shift to the requested processing operation when a processing request of the operating system is generated after entering the idle state. apparatus.
JP2000135381A 2000-05-09 2000-05-09 Information processor and data saving control method therefor Withdrawn JP2001318744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000135381A JP2001318744A (en) 2000-05-09 2000-05-09 Information processor and data saving control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000135381A JP2001318744A (en) 2000-05-09 2000-05-09 Information processor and data saving control method therefor

Publications (1)

Publication Number Publication Date
JP2001318744A true JP2001318744A (en) 2001-11-16

Family

ID=18643469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000135381A Withdrawn JP2001318744A (en) 2000-05-09 2000-05-09 Information processor and data saving control method therefor

Country Status (1)

Country Link
JP (1) JP2001318744A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013088782A1 (en) * 2011-12-13 2013-06-20 株式会社ソニー・コンピュータエンタテインメント Information processing device, information processing method, program, and information storage medium
JP2014174752A (en) * 2013-03-08 2014-09-22 Canon Inc Information processing device, control method therefor, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013088782A1 (en) * 2011-12-13 2013-06-20 株式会社ソニー・コンピュータエンタテインメント Information processing device, information processing method, program, and information storage medium
US9513841B2 (en) 2011-12-13 2016-12-06 Sony Corporation Information processing device, information processing method, program, and information storage medium for managing and reproducing program execution condition data
JP2014174752A (en) * 2013-03-08 2014-09-22 Canon Inc Information processing device, control method therefor, and program

Similar Documents

Publication Publication Date Title
TWI407300B (en) Method and controller for power management
JP3106401B2 (en) Information processing system
TWI528162B (en) Computer system and operating system switching method thereof
JP4175838B2 (en) Information processing apparatus with standby mode, standby mode start method and standby mode cancel method
US8245055B2 (en) Method for firmware control invocation from power management
US5392438A (en) Computer system with control unit for controlling power supply to storage unit
US6832311B2 (en) Information processing system and resume processing method used in the system
JP2002215597A (en) Multiprocessor device
JPH1097353A (en) Computer system and resume processing method applied to the same system
US6336153B1 (en) High-speed hybernation
JPH1091519A (en) Hard disk cache control method
JPH07200112A (en) Information processing system
US20030070065A1 (en) Suspending to nonvolatile storage
JP4155545B2 (en) Computer system and data transfer control method
US6154846A (en) System for controlling a power saving mode in a computer system
JP3102455B2 (en) Information processing system
JP2688164B2 (en) Information processing system
JP2006351013A (en) Method and system for storing/restoring procedure in electronic equipment
CN114661368B (en) Chip and starting method thereof
EP1037133A1 (en) Method and apparatus for alternation between instances of operating systems in computer systems
JP2001318744A (en) Information processor and data saving control method therefor
JP3961669B2 (en) Computer system and data transfer control method
JP2011013836A (en) Memory arrangement management device and microprocessor
TWI522924B (en) Electronic device and operating system switching method thereof
JP2000172386A (en) Computer system and method for managing memory power supply

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20050511

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070807