JPH06314134A - Computer with suspending/resuming function - Google Patents

Computer with suspending/resuming function

Info

Publication number
JPH06314134A
JPH06314134A JP5104723A JP10472393A JPH06314134A JP H06314134 A JPH06314134 A JP H06314134A JP 5104723 A JP5104723 A JP 5104723A JP 10472393 A JP10472393 A JP 10472393A JP H06314134 A JPH06314134 A JP H06314134A
Authority
JP
Japan
Prior art keywords
data
storage device
swap
resume
processing
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
JP5104723A
Other languages
Japanese (ja)
Inventor
Yuusuke Takahashi
祐亮 高橋
Yasushi Kamisaka
靖 上坂
Motohide Nishihata
素秀 西畑
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP5104723A priority Critical patent/JPH06314134A/en
Publication of JPH06314134A publication Critical patent/JPH06314134A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To shorten the start time of the computer with the suspending/ resuming function when it is restarted. CONSTITUTION:This computer is equipped with a central processing unit, a main storage device, a swap-out data judging means 21 which selects resume data required for a resuming process and unnecessary swap data among data stored in the main storage device when a suspending process is performed, and a resume data storage device 3 which stores the resume data. Further, the computer is equipped with a saving means 23 which saves the resume data in a resume data storage device 3, a swap data storage device 4 which stores the swap data, a swap-out means 28 which saves the swap data in the swap data storage device 4 at the time of the suspending process, and a restoration means 25 which transfers the resume data to the main storage device at the time of the resuming process when the power source is turned ON.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、サスペンド/リジュー
ム機能を有するコンピュータにおいて、特にリジューム
処理の高速化が可能なコンピュータの構成に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer having a suspend / resume function, and more particularly to a computer configuration capable of speeding up resume processing.

【0002】[0002]

【従来の技術】近年、コンピュータは、小型軽量化の進
展による携帯性の向上に従い、移動しながら断続的に使
用する形態が増加している。このような利用形態を支援
するには、サスペンド/リジューム機能が必須とされて
いる。この機能は、ある処理の実行中にユーザが電源を
OFFにした様な場合に、その電源断要求時にコンピュ
ータ上で動いているOS(オペレーションシステム)や
アプリケーションの実行に必要な情報を記憶装置に退避
させ(サスペンド処理)、電源が再投入された時に、退
避させた情報を回復することによって自動的に電源断要
求直前の状態を再現する(リジューム処理)ものであ
る。その機能を使用すると、電源をOFFする場合や再
度電源をONする場合に、ユーザが自らOSおよびアプ
リケーションの停止や再起動の操作を行うことが不要と
なり、ユーザにとってコンピュータの使用勝手が向上す
る。
2. Description of the Related Art In recent years, computers have been increasingly used intermittently while moving as the portability has been improved due to the progress of miniaturization and weight reduction. A suspend / resume function is essential to support such usage. This function stores, in a storage device, information necessary to execute an OS (operating system) or application running on a computer when the user turns off the power during execution of a certain process when the power-off request is made. When the power is turned on again (suspend processing) and the power is turned on again, the saved information is restored to automatically reproduce the state immediately before the power-off request (resume processing). When the function is used, it is not necessary for the user to perform the operation of stopping and restarting the OS and the application by himself / herself when the power is turned off or turned on again, and the usability of the computer is improved for the user.

【0003】従来のサスペンド/リジューム機能を有す
るコンピュータにおいて、サスペンド処理は、主記憶装
置に記憶されている全てのデータをハードディスク等の
不揮発性の二次記憶装置に退避することによって実現さ
れ、また、リジューム処理は二次記憶装置に退避された
全てのデータを主記憶装置に復元することによって行わ
れている。
In a conventional computer having a suspend / resume function, the suspend process is realized by saving all the data stored in the main storage device to a non-volatile secondary storage device such as a hard disk. The resume process is performed by restoring all the data saved in the secondary storage device to the main storage device.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、最近で
は、コンピュータの小型化、携帯化とともに、大容量の
主記憶装置やハードディスク装置などを搭載するコンピ
ュータが開発されてきている。このようなコンピュータ
において、上記のようなサスペンド/リジューム処理を
行うと、主記憶装置から二次記憶装置へのデータ退避処
理及び二次記憶装置から主記憶装置へのデータ回復処理
の処理時間が長くなるという問題が生じてきた。特に、
リジューム処理の処理時間が長期化すると、ユーザが電
源スイッチをONしてから電源OFF時の状態が復元さ
れて実行可能となるまでの時間が長くなる。このため、
再起動時の無駄な待時間の発生によってコンピュータの
操作性が低下する。このような問題は、将来的な主記憶
装置等の記憶容量の増大化に伴って益々顕著となってく
る。
However, recently, along with downsizing and portability of computers, computers equipped with large-capacity main memory devices, hard disk devices, etc. have been developed. In such a computer, if the suspend / resume processing as described above is performed, the processing time of the data saving processing from the main storage device to the secondary storage device and the data recovery processing from the secondary storage device to the main storage device becomes long. The problem has arisen. In particular,
When the processing time of the resume processing is prolonged, the time from when the user turns on the power switch until the state when the power is turned off is restored and becomes executable becomes longer. For this reason,
The operability of the computer deteriorates due to the unnecessary waiting time at the time of restarting. Such a problem becomes more and more prominent as the storage capacity of the main storage device or the like increases in the future.

【0005】したがって、本発明は上記問題点に鑑み、
サスペンド/リジューム処理の処理時間の短縮化が可能
なサスペンド/リジューム機能を有するコンピュータを
提供することを目的とする。
Therefore, the present invention has been made in view of the above problems.
An object of the present invention is to provide a computer having a suspend / resume function capable of reducing the processing time of the suspend / resume processing.

【0006】[0006]

【課題を解決するための手段】請求項1の発明に係るサ
スペンド/リジューム機能を有するコンピュータは、種
々の命令を実行する中央処理装置と、中央処理装置の処
理の実行に必要なデータを記憶する主記憶装置と、サス
ペンド処理実行時に、主記憶装置に記憶されているデー
タの中からリジューム処理を行うために必要なリジュー
ムデータと必要とされないスワップデータとを判断する
スワップアウトデータ判断手段と、不揮発性を有し、リ
ジュームデータを格納するためのリジュームデータ記憶
装置と、サスペンド処理実行時に、リジュームデータを
主記憶装置からリジュームデータ記憶手段に退避させる
リジュームデータ退避手段と、不揮発性を有し、主記憶
装置に記憶されたスワップデータを格納するためのスワ
ップデータ記憶装置と、サスペンド処理実行時に、スワ
ップデータを主記憶装置からスワップデータ記憶装置に
退避させるスワップデータ退避手段と、電源再投入時の
リジューム処理時に、リジュームデータ記憶装置に退避
されていたリジュームデータを主記憶装置に転送するリ
ジュームデータ回復手段とを備えている。
A computer having a suspend / resume function according to the invention of claim 1 stores a central processing unit for executing various instructions, and data necessary for executing the processing of the central processing unit. A main memory device, a swap-out data judging means for judging, from the data stored in the main memory device, the resume data necessary for performing the resume process and the swap data not necessary when executing the suspend process; And a resume data storage device for storing resume data, a resume data saving device for saving the resume data from the main storage device to the resume data storage device when the suspend process is executed, and a non-volatile Swap data storage device for storing swap data stored in a storage device And a swap data saving means for saving the swap data from the main storage device to the swap data storage device when the suspend process is executed, and the main memory for the resume data saved in the resume data storage device during the resume process when the power is turned on again. Resume data recovery means for transferring to the device.

【0007】請求項2の発明に係るコンピュータは、請
求項1の発明に対し、さらに、リジューム処理が行われ
た後、復元された処理を継続して実行するために必要な
データをスワップデータ記憶装置に記憶されたスワップ
データの中から判断するスワップインデータ判断手段
と、継続データ判断手段が必要と判断したスワップデー
タをスワップデータ記憶装置から主記憶装置に転送する
継続データ回復手段とを備えている。
According to the invention of claim 2, in addition to the invention of claim 1, the computer according to claim 1 further stores data necessary for continuously executing the restored process after the resume process is performed. A swap-in data judging means for judging from the swap data stored in the device, and a continuous data recovering means for transferring the swap data judged by the continuous data judging means from the swap data storage device to the main storage device are provided. There is.

【0008】[0008]

【作用】請求項1の発明に係るコンピュータは、リジュ
ーム処理に必要なデータを退避するためのリジュームデ
ータ記憶装置と、リジューム処理に必要の無いスワップ
データを退避するためのスワップデータ記憶装置とを備
えている。サスペンド処理時において、スワップアウト
データ判断手段は、電源断要求時に主記憶装置上に記憶
されていたデータの中からリジューム処理に必要なリジ
ュームデータと、必要の無いスワップデータとを判断す
る。そして、リジュームデータ退避手段は、リジューム
データを主記憶装置からリジュームデータ記憶装置に退
避し、スワップデータ退避手段は、スワップデータを主
記憶装置からスワップデータ記憶装置に退避する。
A computer according to a first aspect of the present invention comprises a resume data storage device for saving data necessary for resume processing and a swap data storage device for saving swap data not necessary for resume processing. ing. During the suspend process, the swap-out data determination means determines the resume data necessary for the resume process and the unnecessary swap data from the data stored in the main storage device at the time of the power-off request. Then, the resume data saving means saves the resume data from the main storage device to the resume data storage device, and the swap data saving device saves the swap data from the main storage device to the swap data storage device.

【0009】リジューム処理時において、リジュームデ
ータ回復手段は、リジュームデータ記憶装置に退避され
たリジュームデータを主記憶装置に復元する。そして、
主記憶装置に復元されたリジュームデータに基づいて、
電源OFF時の実行状態が再現される。また、請求項2
の発明に係るコンピュータにおいて、スワップインデー
タ判断手段は、リジューム処理によって再現された処理
状態をさらに継続して実行するために必要となるデータ
をスワップデータ記憶装置に退避されているスワップデ
ータの中から選択する。そして、継続データ回復手段
は、スワップインデータ判断手段の選択要求に従って該
当するスワップデータを主記憶装置に転送する。
At the time of the resume processing, the resume data recovery means restores the resume data saved in the resume data storage device to the main storage device. And
Based on the resume data restored in the main memory,
The execution state when the power is turned off is reproduced. In addition, claim 2
In the computer according to the present invention, the swap-in data determination means selects data necessary for further continuously executing the processing state reproduced by the resume processing from the swap data saved in the swap data storage device. select. Then, the continuous data recovery means transfers the corresponding swap data to the main storage device in accordance with the selection request of the swap-in data determination means.

【0010】[0010]

【実施例】以下、本発明の実施例について図を用いて詳
細に説明する。図1は、本発明の実施例によるサスペン
ド/リジューム方式を採用したコンピュータの主要な構
成を示すブロック図である。本コンピュータは、種々の
演算や命令の実行を行う中央処理装置(CPU)1と、
中央処理装置1における種々の処理に必要なOSやアプ
リケーションあるいはデータ等を記憶する主記憶装置2
と、サスペンド/リジューム処理時に、主記憶装置2に
記憶されたデータの内、リジューム処理に必要なデータ
(リジュームデータと称する)を退避させるためのリジ
ュームデータ記憶装置3と、サスペンド/リジューム処
理時に、主記憶装置2に記憶されたデータの内、リジュ
ーム処理に必要の無いデータ(スワップデータと称す
る)を退避させるためのスワップデータ記憶装置4とか
ら構成される。
Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing a main configuration of a computer adopting a suspend / resume system according to an embodiment of the present invention. The computer includes a central processing unit (CPU) 1 that executes various calculations and instructions,
A main storage device 2 for storing an OS, applications, data, etc. necessary for various processes in the central processing unit 1.
And a resume data storage device 3 for saving data (referred to as resume data) necessary for the resume process among the data stored in the main storage device 2 during the suspend / resume process, and the suspend / resume process, Of the data stored in the main storage device 2, it is composed of a swap data storage device 4 for saving data (referred to as swap data) that is not necessary for resume processing.

【0011】リジュームデータ記憶装置3とスワップデ
ータ記憶装置4とは、例えば電源OFF時にも記憶内容
を保持可能な不揮発性を有するハードディスク装置等で
実現される。そして、ハードディスク装置の一部の記憶
領域がリジュームデータ記憶領域(リジュームデータ記
憶装置3)に割り当てられ、他の一部の記憶領域がスワ
ップデータ記憶領域(スワップデータ記憶装置4)に割
り当てられる。
The resume data storage device 3 and the swap data storage device 4 are realized by, for example, a non-volatile hard disk device or the like that can retain the stored contents even when the power is turned off. Then, a part of the storage area of the hard disk device is allocated to the resume data storage area (resume data storage device 3), and another part of the storage area is allocated to the swap data storage area (swap data storage device 4).

【0012】図2は、図1の構成を有するコンピュータ
において、サスペンド/リジューム機能を発揮するため
の機能構成を示したブロック図である。図2を参照し
て、サスペンド処理は、スワップアウトデータ判断手段
21と、スワップアウト依頼手段22と、退避手段23
と、スワップアウト手段29及びサスペンド/リジュー
ム手段20とによって達成される。
FIG. 2 is a block diagram showing a functional configuration for exhibiting the suspend / resume function in the computer having the configuration of FIG. With reference to FIG. 2, the suspend processing is performed by swap-out data determination means 21, swap-out request means 22, and save means 23.
And swap-out means 29 and suspend / resume means 20.

【0013】スワップアウトデータ判断手段21は、電
源断要求が与えられた時、主記憶装置2上に存在するO
S、アプリケーション、ユーザデータ等の中からリジュ
ームデータ記憶装置3に退避すべきデータか、スワップ
データ記憶装置4に退避すべきデータかを判断する。ス
ワップアウト依頼手段22は、スワップアウト手段28
に対して主記憶装置2からスワップアウトデータ判断手
段21がスワップデータ記憶装置4に退避すべきデータ
と判断したスワップデータをスワップアウトする要求を
発する。
The swap-out data judging means 21 is present in the main memory 2 when the power-off request is given.
It is determined whether the data to be saved to the resume data storage device 3 or the data to be saved to the swap data storage device 4 from among S, applications, user data, and the like. The swap-out request means 22 is a swap-out means 28.
In response to the request, the swap-out data determination means 21 issues a request from the main storage device 2 to swap out the swap data determined to be data to be saved in the swap data storage device 4.

【0014】スワップアウト手段28は、スワップアウ
ト依頼手段22からの要求に応じてスワップデータを主
記憶装置2からスワップデータ記憶装置4にスワップア
ウトする。このスワップアウト手段28は、OS24が
ページング方式の仮想記憶方式によって主記憶装置を管
理する際に使用されるスワップイン/スワップアウト手
段を使用してもよい。
The swap-out means 28 swaps out swap data from the main storage device 2 to the swap-data storage device 4 in response to a request from the swap-out requesting means 22. The swap-out means 28 may use swap-in / swap-out means used when the OS 24 manages the main storage device by the virtual storage system of the paging system.

【0015】退避手段23は、スワップアウトデータ判
断手段がリジュームデータ記憶装置3に退避すべきデー
タであると判断したリジュームデータを主記憶装置2か
らリジュームデータ記憶装置3に退避させる。また、リ
ジューム処理は、回復手段25と、スワップインデータ
判断手段26と、スワップイン依頼手段27と、スワッ
プイン手段29及びサスペンド/リジューム手段20と
によって達成される回復手段25は、電源再投入時にリ
ジュームデータ記憶装置3に退避されていたリジューム
データを主記憶装置2へ転送する。
The save means 23 saves the resume data, which the swap-out data determination means has determined to be data to be saved in the resume data storage device 3, from the main storage device 2 to the resume data storage device 3. The resume processing is achieved by the recovery means 25, the swap-in data determination means 26, the swap-in request means 27, the swap-in means 29 and the suspend / resume means 20. The resume data saved in the resume data storage device 3 is transferred to the main storage device 2.

【0016】スワップインデータ判断手段26は、スワ
ップデータ記憶装置4にスワップアウトされていたスワ
ップデータの中から、電源再投入後に復元された処理を
継続して実行するのに必要なデータを判断する。スワッ
プイン依頼手段27は、スワップイン手段29に対して
スワップインデータ判断手段26の判断に基づいて必要
とされるスワップデータを主記憶装置2にスワップイン
する要求を発する。
The swap-in data judging means 26 judges from the swap data swapped out to the swap data storage device 4 the data necessary for continuously executing the processing restored after the power is turned on again. . The swap-in request means 27 issues a request to the swap-in means 29 to swap-in required swap data to the main storage device 2 based on the judgment of the swap-in data judgment means 26.

【0017】スワップイン手段29は、スワップイン依
頼手段27からの要求に応じてスワップデータをスワッ
プデータ記憶装置4から主記憶装置2にスワップインす
る。このスワップイン手段29は、スワップアウト手段
28と同様に、OS24がページング方式の仮想記憶方
式によって主記憶装置を管理する際に使用されるスワッ
プイン/スワップアウト手段を使用してもよい。
The swap-in means 29 swaps swap data from the swap data storage device 4 into the main storage device 2 in response to a request from the swap-in request means 27. Like the swap-out means 28, the swap-in means 29 may use swap-in / swap-out means used when the OS 24 manages the main storage device by the virtual storage system of the paging system.

【0018】サスペンド/リジューム手段20は、電源
OFF/ON要求を受けてサスペンド/リジューム処理
の制御を行う。以上のように構成されたコンピュータに
ついて、サスペンド処理及びリジューム処理における各
部の動作について説明する。図3は、サスペンド処理の
動作フローを示し、図4は、リジューム処理の動作フロ
ーを示している。また、図5は、サスペンド/リジュー
ム処理におけるデータの転送状態を模式的に示し、図6
は、リジューム処理後の継続処理時のデータの転送状態
を模式的に示している。以下、図1、2及び図5、6を
参照して、図3、4の動作フローに従って説明する。 (サスペンド処理)ユーザが電源スイッチをOFFにす
ると、サスペンド/リジューム手段20に電源断要求が
与えられ、サスペンドの処理が開始される。
The suspend / resume means 20 controls the suspend / resume processing in response to the power OFF / ON request. The operation of each unit in the suspend process and the resume process of the computer configured as described above will be described. FIG. 3 shows an operation flow of the suspend process, and FIG. 4 shows an operation flow of the resume process. Further, FIG. 5 schematically shows a data transfer state in the suspend / resume processing, and FIG.
Shows schematically a data transfer state during continuous processing after resume processing. Hereinafter, the operation flow of FIGS. 3 and 4 will be described with reference to FIGS. (Suspend Processing) When the user turns off the power switch, a power-off request is given to the suspend / resume means 20, and the suspend processing is started.

【0019】まず最初に、電源断要求時に実行中のプロ
グラムの処理を中止する(ステップ301)。例えば、
図5において、主記憶装置2の記憶領域上に存在するユ
ーザアプリケーション1〜3の内、ユーザアプリケーシ
ョン1が実行中にあり、ユーザアプリケーション2が休
眠状態にあり、さらにユーザアプリケーション3が実行
されていない状態を想定する。この場合、OSプログラ
ム及びユーザアップリケーション1、2の処理を中止す
る。
First, the processing of the program being executed is stopped when the power-off is requested (step 301). For example,
In FIG. 5, among the user applications 1 to 3 existing in the storage area of the main storage device 2, the user application 1 is being executed, the user application 2 is in a sleep state, and the user application 3 is not being executed. Assume the state. In this case, the processing of the OS program and the user applications 1 and 2 is stopped.

【0020】次に、スワップアウトデータ判断手段21
は、電源が再び投入された時に、電源OFF時の処理を
継続実行するのに必要とされる主記憶装置2上のデータ
の中からスワップデータを判断する(ステップ30
2)。スワップデータ記憶装置4にスワップアウトする
か否かは、電源OFF時に実行されていた状態を復元す
るために必要なデータであるか否かを基準に判断する。
例えば、図5において、実行状態になかったユーザアプ
リケーション3、あるいはユーザアプリケーション1、
2において電源OFF時に使用されていなかったデータ
等はスワップデータと判断される。また、OSデータ4
1やサスペンド/リジュームプログラム42等はリジュ
ーム処理に必要なため、スワップデータではなく、リジ
ュームデータと判断される。
Next, the swap-out data judging means 21
When the power is turned on again, the swap data is judged from the data in the main storage device 2 required to continuously execute the processing when the power is turned off (step 30).
2). Whether or not to swap out to the swap data storage device 4 is determined based on whether or not the data is necessary to restore the state that was being executed when the power was turned off.
For example, in FIG. 5, the user application 3 or the user application 1, which is not in the running state,
In 2, the data and the like that are not used when the power is turned off are determined to be swap data. Also, OS data 4
Since 1 and the suspend / resume program 42 are necessary for the resume process, they are judged to be resume data, not swap data.

【0021】次に、スワップアウト依頼手段22が、O
S24が有するスワップアウト手段28に対し、スワッ
プデータのスワップアウトを依頼する(ステップ30
3)。スワッピング機能を持つOS24のスワップアウ
ト手段28は、主記憶装置2上のスワップデータをスワ
ップデータ記憶装置4に退避する。次に、退避手段23
は、スワップアウト後に主記憶装置2上に残ったリジュ
ームデータをリジュームデータ記憶装置3に退避する
(ステップ304)。例えば、図5に示す場合には、O
Sデータ41、サスペンド/リジュームプログラム42
及びユーザアプリケーション1、2の一部が退避され
る。
Next, the swap-out requesting means 22 outputs O
The swap-out means 28 of S24 is requested to swap-out the swap data (step 30).
3). The swap-out means 28 of the OS 24 having the swapping function saves the swap data on the main storage device 2 to the swap data storage device 4. Next, the evacuation means 23
Saves the resume data remaining on the main storage device 2 after the swap-out to the resume data storage device 3 (step 304). For example, in the case shown in FIG.
S data 41, suspend / resume program 42
And a part of the user applications 1 and 2 is saved.

【0022】主記憶装置2上から全てのデータの退避が
終了すると、電源をOFFにする(ステップ305)。
以上の処理によってサスペンド処理が終了する。 (リジューム処理)ユーザが電源スイッチを再投入する
と、サスペンド/リジューム手段20はリジューム処理
を開始する。
When the saving of all data from the main memory 2 is completed, the power is turned off (step 305).
The suspend process is completed by the above process. (Resume Processing) When the user turns on the power switch again, the suspend / resume means 20 starts the resume processing.

【0023】図4に示すように、最初に、回復手段25
は、リジュームデータ記憶装置3に退避されていたデー
タを主記憶装置2に転送する(ステップ401)。例え
ば、図5において、主記憶装置2の記憶領域30bに
は、リジュームデータ記憶装置3に退避されていたOS
プログラムデータ41、サスペンド/リジュームプログ
ラム42及びユーザアプリケーション1、2の一部デー
タが復元される。 次に、スワップインデータ判断手段
26は、スワップデータ記憶装置4にスワップアウトさ
れていたデータの中から継続実行するのに必要なデータ
を判断する(ステップ402)。
As shown in FIG. 4, first, the recovery means 25
Transfers the data saved in the resume data storage device 3 to the main storage device 2 (step 401). For example, in FIG. 5, the OS saved in the resume data storage device 3 is stored in the storage area 30b of the main storage device 2.
The program data 41, the suspend / resume program 42, and some data of the user applications 1 and 2 are restored. Next, the swap-in data determination means 26 determines the data necessary for continuous execution from the data swapped out to the swap data storage device 4 (step 402).

【0024】次に、スワップイン依頼手段27は、スワ
ップイン手段29に対し、スワップインデータ判断手段
26が判断したスワップインすべきデータのスワップイ
ンを依頼する(ステップ403)。そして、OS24の
スワップイン手段29によってスワップデータ記憶装置
4から主記憶装置2にスワップインされ、データが復元
される。例えば、図6に示す場合では、ユーザアプリケ
ーション1、2の継続実行に必要なデータが主記憶装置
2の記憶領域30cに復元される。
Next, the swap-in requesting means 27 requests the swap-in means 29 to swap-in the data to be swap-in judged by the swap-in data judging means 26 (step 403). Then, the swap-in means 29 of the OS 24 swaps in the swap data storage device 4 to the main storage device 2 to restore the data. For example, in the case shown in FIG. 6, the data required for the continuous execution of the user applications 1 and 2 is restored in the storage area 30c of the main storage device 2.

【0025】最後に、プログラムの処理を再開する(ス
テップ404)。そして、処理を再開後、スワップデー
タ記憶装置4に退避された残りのデータは、必要に応じ
て主記憶装置2に読み出され、処理に供される。このよ
うに、上記実施例によるコンピュータは、リジューム処
理時に、リジューム処理に必要なデータのみを主記憶装
置2に復元するように構成されているため、従来のコン
ピュータに比べて電源ONしてから再現された処理の実
行が可能となるまでの時間を短縮することができる。
Finally, the processing of the program is restarted (step 404). Then, after the processing is restarted, the remaining data saved in the swap data storage device 4 is read to the main storage device 2 as necessary and provided for the processing. As described above, since the computer according to the above-described embodiment is configured to restore only the data necessary for the resume process to the main storage device 2 during the resume process, it is reproduced after the power is turned on as compared with the conventional computer. It is possible to shorten the time until it becomes possible to execute the specified processing.

【0026】また、リジューム処理に必要なデータのみ
をリジュームデータ記憶装置3に退避するように構成し
たことにより、主記憶装置上の全てのデータを記憶装置
に退避させる従来の装置に比べて、データ退避用の記憶
装置の記憶容量を低減することができる。このため、デ
ータ退避用にハードディスク装置等を使用する場合に
は、リジュームデータ退避用の記憶領域を縮小すること
ができ、その分ユーザが使用可能な記憶領域を増大する
ことができる。
Further, since only the data necessary for the resume processing is saved in the resume data storage device 3, the data can be saved as compared with the conventional device which saves all the data in the main storage device in the storage device. The storage capacity of the evacuation storage device can be reduced. Therefore, when a hard disk device or the like is used for saving data, the storage area for saving resume data can be reduced, and the storage area available to the user can be increased accordingly.

【0027】[0027]

【発明の効果】以上のように、本発明は、電源断要求時
の状態を保持/退避させ、電源再投入時に状態を復帰さ
せるサスペンド/リジューム機能を実現する際に、スワ
ップアウトデータ判断手段によってリジューム処理に必
要と判断したデータのみをリジュームデータ記憶装置に
退避させ、他のデータをスワップデータ記憶装置に退避
させ、電源再投入時にはリジュームデータ記憶手段に退
避したデータを主記憶装置に復元した後、さらにスワッ
プデータ記憶装置にスワップアウトされたデータの中か
ら継続実行に必要なものだけをスワップインしてデータ
を復元するように構成したので、リジューム処理に必要
なデータを主記憶装置へ転送するデータ量を削減し、再
開時の起動時間を短縮することができる。
As described above, according to the present invention, when the suspend / resume function for holding / saving the state at the time of power-off request and returning the state at the time of turning on the power again is realized, the swap-out data judging means is used. After saving only the data determined to be necessary for resume processing to the resume data storage device, saving other data to the swap data storage device, and restoring the data saved in the resume data storage means to the main storage device when the power is turned on again. In addition, since it is configured to restore the data by swapping in only the data required for continuous execution from the data swapped out to the swap data storage device, the data required for the resume processing is transferred to the main storage device. The amount of data can be reduced, and the startup time at restart can be shortened.

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

【図1】本発明の実施例によるコンピュータの主要な構
成を示すブロック図である。
FIG. 1 is a block diagram showing a main configuration of a computer according to an embodiment of the present invention.

【図2】図1に示すコンピュータにおけるサスペンド/
リジューム処理を行うための機能ブロック図である。
FIG. 2 is a diagram illustrating a suspend / operation in the computer shown in FIG.
It is a functional block diagram for performing a resume process.

【図3】上記実施例におけるサスペンド処理を示すフロ
ーチャートである。
FIG. 3 is a flowchart showing a suspend process in the above embodiment.

【図4】上記実施例におけるリジューム処理を示すフロ
ーチャートである。
FIG. 4 is a flowchart showing a resume process in the above embodiment.

【図5】上記実施例におけるサスペンド/リジューム処
理時の退避データの流れを模式的に示すデータ流れ図で
ある。
FIG. 5 is a data flow diagram schematically showing the flow of save data during suspend / resume processing in the above embodiment.

【図6】上記実施例におけるリジューム処理後の継続実
行時の退避データの流れを模式的に示すデータ流れ図で
ある。
FIG. 6 is a data flow diagram schematically showing the flow of saved data during continuous execution after resume processing in the above embodiment.

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

1 中央処理装置 2 主記憶装置 3 リジュームデータ記憶装置 4 スワップデータ記憶装置 20 サスペンド/リジューム手段 21 スワップアウトデータ判断手段 22 スワップアウト依頼手段 23 退避手段 24 OS 25 回復手段 26 スワップインデータ判断手段 27 スワップイン依頼手段 28 スワップアウト手段 29 スワップイン手段 1 Central Processing Unit 2 Main Storage Device 3 Resume Data Storage Device 4 Swap Data Storage Device 20 Suspend / Resume Means 21 Swap Out Data Judging Means 22 Swap Out Request Means 23 Evacuation Means 24 OS 25 Recovery Means 26 Swap In Data Judging Means 27 Swaps In request means 28 Swap out means 29 Swap in means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 電源断要求があった場合に、その時の処
理状態を保持するためのサスペンド処理を行い、電源が
再投入された時に、電源断要求があった時の処理状態を
復元させるためのリジューム処理を行うサスペンド/リ
ジューム機能を有するコンピュータであって、 種々の命令を実行する中央処理装置と、 前記中央処理装置の処理の実行に必要なデータを記憶す
る主記憶装置と、 サスペンド処理実行時に、前記主記憶装置に記憶されて
いるデータの中から前記リジューム処理を行うために必
要なリジュームデータと必要とされないスワップデータ
とを判断するスワップアウトデータ判断手段と、 不揮発性を有し、前記リジュームデータを格納するため
のリジュームデータ記憶装置と、 サスペンド処理実行時に、前記リジュームデータを前記
主記憶装置から前記リジュームデータ記憶装置に退避さ
せるリジュームデータ退避手段と、 不揮発性を有し、前記主記憶装置に記憶された前記スワ
ップデータを格納するためのスワップデータ記憶装置
と、 サスペンド処理実行時に、前記スワップデータを前記主
記憶装置から前記スワップデータ記憶装置に退避させる
スワップデータ退避手段と、 リジューム処理時に、前記リジュームデータ記憶装置に
退避されていた前記リジュームデータを前記主記憶装置
に転送するリジュームデータ回復手段とを備えた、コン
ピュータ。
1. When a power-off request is made, a suspend process for holding the processing state at that time is performed, and when the power is turned on again, the processing state when the power-off request is made is restored. A computer having a suspend / resume function for performing the resume processing of the above, including a central processing unit that executes various instructions, a main storage device that stores data necessary for executing the processing of the central processing unit, and a suspend processing execution Sometimes, a swap-out data determination unit that determines the resume data necessary for performing the resume processing and the swap data that is not required from the data stored in the main storage device; A resume data storage device for storing the resume data, and the resume data when the suspend process is executed. Resume data saving means for saving from the main storage device to the resume data storage device, a swap data storage device having a non-volatile property for storing the swap data stored in the main storage device, and a suspend process execution Sometimes, swap data saving means for saving the swap data from the main storage device to the swap data storage device, and transfer of the resume data saved in the resume data storage device to the main storage device during resume processing A computer having a resume data recovery means.
【請求項2】 前記コンピュータは、さらに、 前記リジューム処理が行われた後、復元された処理を継
続して実行するために必要なデータを前記スワップデー
タ記憶装置に記憶された前記スワップデータの中から判
断するスワップインデータ判断手段と、 前記スワップインデータ判断手段が必要と判断したスワ
ップデータを前記スワップデータ記憶装置から前記主記
憶装置に転送する継続データ回復手段とを備える、請求
項1記載のコンピュータ。
2. The swap data stored in the swap data storage device, wherein the computer further stores data necessary for continuously executing the restored process after the resume process is performed. 2. The swap-in data judging means for judging from the swap-in data judging means, and the continuous data recovering means for transferring the swap data judged to be necessary by the swap-in data judging means from the swap data storage device to the main storage device. Computer.
JP5104723A 1993-04-30 1993-04-30 Computer with suspending/resuming function Pending JPH06314134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5104723A JPH06314134A (en) 1993-04-30 1993-04-30 Computer with suspending/resuming function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5104723A JPH06314134A (en) 1993-04-30 1993-04-30 Computer with suspending/resuming function

Publications (1)

Publication Number Publication Date
JPH06314134A true JPH06314134A (en) 1994-11-08

Family

ID=14388420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5104723A Pending JPH06314134A (en) 1993-04-30 1993-04-30 Computer with suspending/resuming function

Country Status (1)

Country Link
JP (1) JPH06314134A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6457136B1 (en) 1998-06-29 2002-09-24 Nec Corporation Power management method detecting interruption of AC power in suspended state of computer system
WO2004061624A1 (en) * 2002-12-26 2004-07-22 Fujitsu Limited Resume entering method
JP2006163687A (en) * 2004-12-06 2006-06-22 Nissan Motor Co Ltd System and method for controlling start of computer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6457136B1 (en) 1998-06-29 2002-09-24 Nec Corporation Power management method detecting interruption of AC power in suspended state of computer system
WO2004061624A1 (en) * 2002-12-26 2004-07-22 Fujitsu Limited Resume entering method
JP2006163687A (en) * 2004-12-06 2006-06-22 Nissan Motor Co Ltd System and method for controlling start of computer
JP4645181B2 (en) * 2004-12-06 2011-03-09 日産自動車株式会社 Computer start control device and computer start control method

Similar Documents

Publication Publication Date Title
JP4281421B2 (en) Information processing system, control method therefor, and computer program
JPH077317B2 (en) System restart device
JPH1097353A (en) Computer system and resume processing method applied to the same system
JP4175838B2 (en) Information processing apparatus with standby mode, standby mode start method and standby mode cancel method
TW201011524A (en) Method and controller for power management
JP2004127040A (en) Information processor, control method, program and recording medium
JPH07101376B2 (en) System restart device
CN101599023A (en) Power source management controller and method
US6154846A (en) System for controlling a power saving mode in a computer system
JPH11242631A (en) Computer system and data preserving/restoring method for the same
US6851012B2 (en) Information processing system, information processing method and readable-by-computer recording medium
EP1420338A1 (en) Mobile computer and base station
JP4846553B2 (en) Resume method, program, and information processing apparatus
JP2000215100A (en) Power-saving memory management system
JP2003085041A (en) Disc cache system
JP2005115720A (en) Information processor and program for use in the same
JPH06314134A (en) Computer with suspending/resuming function
JP2011013775A (en) Information-processing device, method for controlling information-processing device, and program
KR20100041518A (en) Selective suspend resume method of reducing initial driving time in system, and computer readable medium thereof
JPH11259162A (en) Suspending/resuming method
JP2000172386A (en) Computer system and method for managing memory power supply
JP3961669B2 (en) Computer system and data transfer control method
JPH10240391A (en) Portable document display/processor and power management control method to be applied to the same
JPH06131082A (en) Computer adopting suspend/resume system
JPH0651858A (en) Program interrupting/restarting system