JPH0283755A - Information processor - Google Patents

Information processor

Info

Publication number
JPH0283755A
JPH0283755A JP63235049A JP23504988A JPH0283755A JP H0283755 A JPH0283755 A JP H0283755A JP 63235049 A JP63235049 A JP 63235049A JP 23504988 A JP23504988 A JP 23504988A JP H0283755 A JPH0283755 A JP H0283755A
Authority
JP
Japan
Prior art keywords
page
file
virtual memory
memory
access
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
JP63235049A
Other languages
Japanese (ja)
Inventor
Tomihisa Hatano
富久 幡野
Tadashi Matsuo
正 松尾
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63235049A priority Critical patent/JPH0283755A/en
Publication of JPH0283755A publication Critical patent/JPH0283755A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To increase the access speed to a page file and to decrease the access frequency to an external memory by preparing a page file access part, a virtual memory file control part, and an automatic page-out part, storing all data into a virtual memory, and using a program that processes the virtual memory only. CONSTITUTION:A page file 161 is set at an entire or partial fixed area of an external memory and requires no control as a file. Thus a page file access part can give an access to the file 161 only at a high speed. While a virtual memory file control part 130 controls a series of pages in the form of a memory file. An automatic page-out part 150 outputs automatically all pages which are updated via a main storage 120 and not reflected on the file 161 at shut- down. The contents of a virtual memory are held while the operation of a system is halted. Thus all information on the process objects are stored in the virtual memory, and only the virtual memory is processed with omission of the input/output of an information file required before and after the process. Thus the processing effect is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、仮想記憶方式を採用した情報処理装置。[Detailed description of the invention] [Industrial application field] The present invention is an information processing device that employs a virtual storage method.

置に関するものであり、特にページファイルのアクセス
速度の向上と外部記憶のアクセス回数の削減に関するも
のである。
In particular, it relates to improving the access speed of page files and reducing the number of accesses to external storage.

〔従来の技術〕[Conventional technology]

従来のこの種の情報処理装置は、外部記憶上の通常のフ
ァイルのアクセスや管理を行う、ファイル管理部を用い
てページファイルをアクセスするものである。
A conventional information processing device of this type accesses a page file using a file management unit that accesses and manages normal files on external storage.

仮想記憶方式とはCPUに対して、主記憶の容量を実際
よりも大きくみせろ手法であり、CPUが、主記憶上に
格納できないほど大きなプログラムやデータをアクセス
できるようにするものである。また、マルチプロセスの
システムにおいてプロセスごとに別々の記憶空間を用意
したり、メモリアクセスの保護を行う場合にも利用され
る。
The virtual memory method is a method of making the main memory capacity appear larger than it actually is to the CPU, and allows the CPU to access programs and data that are too large to be stored in the main memory. It is also used to prepare separate storage spaces for each process in a multi-process system and to protect memory access.

第2図は従来の仮想記憶方式全採用した情報処理装置の
メモリアクセス関連部分の構氏の例を示す図で、100
はCPU、110はアドレス変換部、120は主記憶、
200はファイル管理部、160は外部記憶、161は
ページファイルを表している。
FIG. 2 is a diagram showing an example of the structure of the memory access-related part of an information processing device that fully adopts the conventional virtual memory method.
is a CPU, 110 is an address conversion unit, 120 is a main memory,
200 represents a file management section, 160 represents an external storage, and 161 represents a page file.

ここでは仮想記憶空間は外部記憶160上にベジファイ
ル161として格納されており、一定の大きさのページ
に区切られている。仮想記憶をアクセスする際には必要
な部分を主記憶120へ移動しなければならない。移動
はページ単位に行われるので、主記憶はこのページを格
納するペジフレームの集まりとして扱われろ。ページフ
ァイル161のページをページフレームへ読み込む処理
全ページインと呼ぶ。主記憶120上で更新されたペー
ジは、逆にページファイル161へ反映する必要がある
。この操作をページアウトと呼ぶ。CPU100はメモ
リ上のデータをアクセスする時、仮想記憶のアドレスで
ある論理アドレスをアドレス変換部110に渡す。論理
アドレスは、仮想記憶のページ番号とページ内のバイト
オフセットから構成されている。アドレス変換部110
は指定されたページが現在主記憶120上にない場合、
ページファイル161がら空いているページインする。
Here, the virtual storage space is stored as a vegetable file 161 on the external storage 160, and is divided into pages of a certain size. When accessing the virtual memory, the necessary portion must be moved to the main memory 120. Since movement is performed page by page, main memory should be treated as a collection of page frames that store this page. The process of reading the pages of the page file 161 into the page frame is called full page in. Conversely, pages updated on the main memory 120 need to be reflected in the page file 161. This operation is called page out. When accessing data on memory, the CPU 100 passes a logical address, which is a virtual memory address, to the address translation unit 110. A logical address consists of a virtual memory page number and a byte offset within the page. Address conversion unit 110
If the specified page is not currently on the main memory 120,
Input an empty page from the page file 161.

空いているページフレームがない場合には適当なページ
フレームを選X7で、もし内容が更新されていればペー
ジファイル161ヘフアイル管理部200を使ってペー
ジアウトした上で、ベージインを行う。このようにして
、アドレス変換部110は必要なページ全主記憶120
に割り付け、CPU100から渡された論理アドレスを
主記憶のアドレスである物理アドレスに変換する。
If there is no vacant page frame, select an appropriate page frame (X7), and if the contents have been updated, use the file management unit 200 to page out the page file 161, and then page in. In this way, the address translation unit 110 converts all necessary pages into the main memory 120.
, and converts the logical address passed from the CPU 100 into a physical address, which is the address of the main memory.

物理アドレスは論理アドレスのページ番号部分を、その
ページ全格納しているページフレームの番号に置き換え
たものである。
The physical address is obtained by replacing the page number part of the logical address with the number of the page frame that stores all of the pages.

従来技術では、仮想記憶へのアクセスの効率を向上する
ために、ページアウトするページの選択アルゴリズムや
ページ管理方法、ベージ割ジ刺は方法等に特別な工夫を
する場合が多かった。このような工夫の一例としてたと
えば特開昭62−162154号公報等がある。
In the prior art, in order to improve the efficiency of accessing virtual memory, special improvements have often been made to the algorithm for selecting pages to be paged out, the page management method, the page allocation method, etc. An example of such a device is, for example, Japanese Unexamined Patent Publication No. 162154/1982.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術による情報処理装置においては、憶上にフ
ァイルとして持っていたため、ページインクページアウ
ト処理はファイル管理部を用いていた。このファイル管
理部は、複数の外部記憶装置上に存在する多数のファイ
ルの管理を目的としているため処理のオーバーヘッドが
太き(、このためページファイルのアクセスが遅かった
In the information processing apparatus according to the above-mentioned prior art, since the information is stored as a file in memory, the file management section is used for page ink page out processing. Since this file management section aims to manage a large number of files existing on a plurality of external storage devices, the processing overhead is large (this causes page file access to be slow).

また、仮想記憶はあくまで主記憶の延長として位置付け
られているため、仮想記憶空間はシステムの起動のたび
に、主記憶同様初期化されていた。
Furthermore, since virtual memory is positioned as an extension of main memory, the virtual memory space is initialized like main memory every time the system is started.

このためデータ等保存全必要とするものは、ファイルと
して外部記憶に格納する必要があり、処理プログラムは
まずファイルから仮想記憶−・データを読み込み、仮想
記憶上でこれ全処理した後に、再びファイルへ書き戻す
という処理手順を踏んでいた。しかしこの1式では5テ
ータの大きさに対して十分な主記憶容量がない場合、デ
ータの読み込み中にすでに読み込んだデータのページア
ウトが発生し、処理に当たって再びベージインする必要
が生じる等、外部記憶全アクセスする回数が多とあいま
って、システムの性能を著しく低下させろことになった
For this reason, all data that needs to be saved needs to be stored in external memory as a file, and the processing program first reads the data from virtual memory from the file, processes all of it on virtual memory, and then writes it back to the file. The procedure was to write it back. However, with this one system, if there is not enough main memory capacity for the size of 5 data, data that has already been read may be paged out while data is being read, and it may be necessary to page in again for processing, etc. Combined with the large number of full accesses, the performance of the system was significantly degraded.

本発明の目的は、ページファイルのアクセス速度全向上
するとともに、外部記憶全アクセスする回数を削減する
ことにある。
An object of the present invention is to improve the page file access speed and reduce the number of times external storage is accessed.

〔課題を解決するだめの手段] 上記目的は、外部記憶の全体、または一部の固定された
領域に置かれたページファイル全アクセスするページフ
ァイルアクセス部と、該ページファイル内の、一連のペ
ージからなる仮想メモリファイルを管理する仮想メモリ
フ゛rイル管理部と、シャットダウン時に主記憶上で更
新されたすべてのページを自動的にページアウトする自
動ページアウト部と全備え、すべてのデータ金仮想記憶
上に置いて、仮想記憶のみ全対象として処理全行う処理
プログラムを用いることを可能とする情報処理装置によ
り達成されろ。
[Means for Solving the Problem] The above purpose is to provide a page file access unit that accesses all page files placed in the entire external storage or a fixed area of a part, and a page file access unit that accesses all page files located in the entire external storage or a fixed area of a part, and A virtual memory file management section that manages virtual memory files consisting of a This can be achieved by an information processing apparatus that makes it possible to use a processing program that performs all processing only on virtual memory.

〔作用〕[Effect]

ページファイルは外部記憶の全体、または一部の固定さ
れた領域に置かれろため、ファイルとして管理する必要
がない。これによりページファイルアクセス部は、ペー
ジファイルのアクセスのみを目的として、外部記憶上に
ファイル管理のための情報を持ちこれを用いてページフ
ァイルをアクセスするファイル管理よりも高速に、ペー
ジファイル全アクセスすることができろ。
Since the page file can be placed in the entire external storage or in a fixed area in part, there is no need to manage it as a file. This allows the page file access unit to access all page files faster than file management, which has file management information on external storage and uses this information for the sole purpose of accessing the page file. Be able to do that.

また、仮想メモリファイル管理部は、ひとかたまりのデ
ータ等の一連のページの集まりに仮想メモリファイルと
して管理し、自動ページアウト部はシャットダウン時に
、主記憶上で更新されたまま、ページファイルに反映さ
れていないすべてのページを、自動的にページアウトし
て、仮想記憶の内y全システム停止中も保持する。これ
によって、処理の対象となるすべてのデータを仮想記憶
上に置いて、仮想記憶のみを対象としてデータ処理全行
うことかり能となり、処理の前後でデータファイルの人
−力金行5必要がな(なる。
In addition, the virtual memory file management section manages a collection of pages such as a set of data as a virtual memory file, and the automatic page-out section allows the automatic page-out section to update the data in the main memory and reflect it in the page file at shutdown. All pages that are not available are automatically paged out and retained in virtual memory even when the entire system is stopped. This makes it possible to place all the data to be processed on the virtual memory and perform all data processing only on the virtual memory, eliminating the need for manpower and financial resources in data files before and after processing. (Become.

〔実施・列〕[Implementation/Column]

以下、本発明の一実施例2図によ!ll説明する。 The following is a second example of the present invention! I will explain.

第1図は本発明の実施例のメモリアクセス関連部分の構
成を示すブロック図であり、100はCPU、110は
アドレス変換部、120は主記憶、130は仮想メモリ
ファイル管理部、161は仮想メモリファイル管理テー
ブル、140はページファイルアクヤス部、150は自
動ページアウト部、160は外部記憶、161はページ
ファイルを表している。
FIG. 1 is a block diagram showing the configuration of memory access-related parts in an embodiment of the present invention, in which 100 is a CPU, 110 is an address conversion section, 120 is a main memory, 130 is a virtual memory file management section, and 161 is a virtual memory. In the file management table, 140 represents a page file aqueous section, 150 represents an automatic page out section, 160 represents an external storage, and 161 represents a page file.

以下に本発明で従来の構成に加えた、仮想メモリファイ
ル管理g((13Q、ページファイルアクセス部140
、自動ページアウト部150の各々の働きを説明する。
The following describes the virtual memory file management g ((13Q, page file access unit 140) added to the conventional configuration according to the present invention.
, the function of the automatic page-out section 150 will be explained.

仮想メモリファイル管理部160は、CPU1o。The virtual memory file management unit 160 is the CPU 1o.

の要求によυページファイルアクセス部140を用いて
仮想メモリファイルの新規作成、削除を行う。また、個
々の仮想メモリファイルについて、その開始ページ番号
を収めた仮想メモリファイル管理テーブル131を維持
り、C,PUlooから指定された仮想メモリファイル
の開始ページ番号を返すといった、仮想メモリファイル
管理デープル131の照会処理も行う。仮想メモリファ
イル管理テーブル161はそれ自身仮想メモリファイル
であるが、ページアウトの対象とならない常駐ページで
あり、主記憶の固定された場所に置かれる。
Upon request, a new virtual memory file is created or deleted using the υ page file access unit 140. The virtual memory file management table 131 also maintains a virtual memory file management table 131 containing the starting page number of each virtual memory file, and returns the starting page number of the virtual memory file specified by C, PUloo. It also handles inquiries. The virtual memory file management table 161 is itself a virtual memory file, but it is a resident page that is not subject to page-out, and is placed in a fixed location in the main memory.

このため仮想メモリファイル管理部130は、直接主記
憶の仮想メモリファイル管理テーブル161をアクセス
することができる。
Therefore, the virtual memory file management unit 130 can directly access the virtual memory file management table 161 in the main memory.

第6図は仮想メモリファイル管理テーブルの一例を示し
た図で、300は先頭ページ番号項目、310はページ
数項目を表している。この例では仮想メそリファイル全
仮想メモリファイル番号で管理しており、各仮想メモリ
ファイルごとに先頭ページ番号項目600には、その仮
想メモリファイルの最初のページのページ番号を、ペー
ジ数項目310には、その仮想メモリファイルのページ
数を格納している。第4図は仮想メモリファイルWIM
160のコマンドインターフェースの一例を示した図で
、400fi仮想メモリファイル管理部130に対する
命令、410は仮想メモリファイル管理部160が返す
結果、401は館令408のコマンレ揶分、402は命
令400のパラメタ部分、411は結果410のエラー
識別子部分。
FIG. 6 is a diagram showing an example of a virtual memory file management table, where 300 represents a first page number item and 310 represents a page number item. In this example, the virtual memory file is managed using all virtual memory file numbers, and the page number of the first page of the virtual memory file is stored in the first page number field 600 for each virtual memory file, and the page number of the first page of that virtual memory file is stored in the page number field 310. stores the number of pages in the virtual memory file. Figure 4 shows the virtual memory file WIM
160 is a diagram showing an example of the command interface of 400fi, the command to the virtual memory file management unit 130, 410 is the result returned by the virtual memory file management unit 160, 401 is the command reference of the command 408, and 402 is the parameter of the command 400. The part 411 is the error identifier part of the result 410.

412は結果410のデータ部分、420は仮想メモリ
ファイル作成命令、421は仮想メモリファイル削除命
令、422は仮想メモリファイル管理テーブル131の
照会命令を表している。なお命令421に対応する結果
には、エラー識別子部分411しかない。エラー識別子
部分411には、処理が正常に終了した場合も含めて、
処理中に検出されたエラーに対応するコードが格納され
ている。
412 represents a data portion of the result 410, 420 represents a virtual memory file creation command, 421 represents a virtual memory file deletion command, and 422 represents a virtual memory file management table 131 inquiry command. Note that the result corresponding to the instruction 421 has only the error identifier portion 411. The error identifier part 411 includes the following information, including when the process ends normally.
Contains codes corresponding to errors detected during processing.

第4図の各命令について、以下にその働きを簡単に説明
する。
The function of each command shown in FIG. 4 will be briefly explained below.

命令420は仮想メモリファイルを新規作成するための
命令で、パラメータとして作成する仮想メモリファイル
の大きさ全ページ数として格納している。結果としてエ
ラー識別子と、作成した仮想メモリファイルの仮想メモ
リファイル番号と先頭ページ番号を返す。この命令を受
取ると、仮想メモリファイル管理部160はページファ
イル161上で十分な広さを持った空きエリアを探して
初期化し、仮想メモリファイル管理テーブル131に登
録する。命令421は既存の仮想メモリファイルを削除
する命令で、パラメータとして削除する仮想メモリファ
イル番号を格納している。結果としてエラー識別子を返
す。この命令を受取ると、仮想メモリファイル管理部1
30は仮想メモリファイル管理テーブル131の指定さ
れた仮想メモリファイルに関する情報を削除する。削除
された仮想メモリファイルが占めていたページファイル
上のエリアは空きエリアとナク、他の仮想メモリファイ
ルの作成に使われろ。命令422は仮想メモリファイル
管理テーブル131に対する照会命令で、パラメータと
して照会する仮想メモリファイル番号全格納している。
Command 420 is a command for creating a new virtual memory file, and the size of the virtual memory file to be created is stored as the total number of pages as a parameter. As a result, an error identifier, virtual memory file number, and first page number of the created virtual memory file are returned. Upon receiving this command, the virtual memory file management unit 160 searches for a sufficiently large free area on the page file 161, initializes it, and registers it in the virtual memory file management table 131. Command 421 is a command to delete an existing virtual memory file, and stores the virtual memory file number to be deleted as a parameter. Returns an error identifier as the result. Upon receiving this command, the virtual memory file management unit 1
30 deletes information regarding the specified virtual memory file from the virtual memory file management table 131. The area on the page file occupied by the deleted virtual memory file can be used as free space to create other virtual memory files. Command 422 is an inquiry command for the virtual memory file management table 131, and stores all virtual memory file numbers to be inquired as parameters.

結果としてエラー識別子と指定された仮想メモリファイ
ルの先頭ページ番号とページ数金返す。
As a result, it returns an error identifier, the first page number of the specified virtual memory file, and the page number.

このようにして、仮想メモリファイル管理部130は複
数の仮想メモリファイル全仮想記憶に持ち、CPU10
0 が任意の仮想メモリファイルに対してアクセスする
ことを可能とする。
In this way, the virtual memory file management unit 130 has a plurality of virtual memory files in all virtual memories, and the CPU 10
0 allows access to any virtual memory file.

ページファイルアクセス部140は、アドレス変換部1
10、仮想メモリファイル管理部130、自動ページア
ウト部150から要求を受け、ページファイル格納専用
の外部記憶160を制御して、ページファイル161の
アクセスを行う。第5図ハヘーシファイルアクセス部1
40のコマンドインターフー−スの一例全示した図で、
500は方向指示部分、510はページ番号部分、52
0はページフレーム番号部分を表している。方向指示部
分500には、外部記憶160から主記憶120ヘベー
ジインするのか、あるいは主記憶120から外部記憶1
60ヘページアウトするのかを表すコードが格納されて
いる。ページ番号部分510とページフレーム番号部分
520には、各々対象と116ペ一ジフアイル1610
ページ番号と主記憶120のページフレーム番号が格納
されている。
The page file access unit 140 includes the address conversion unit 1
10. Upon receiving a request from the virtual memory file management unit 130 and the automatic page out unit 150, the external storage 160 dedicated to storing page files is controlled to access the page file 161. Figure 5 Hahesh file access section 1
This is a diagram showing an example of the 40 command interfaces.
500 is a direction indicating part, 510 is a page number part, 52
0 represents the page frame number part. The direction indicating portion 500 has information on whether the main memory 120 is heaved in from the external memory 160 or the external memory 1 is input from the main memory 120.
A code indicating whether to page out to 60 is stored. The page number portion 510 and the page frame number portion 520 contain the target and 116 page files 1610, respectively.
A page number and a page frame number of the main memory 120 are stored.

一般に外部記ffl装置はセクタと呼ばれろブロック単
位で入出力?行うが、本実施例ではこのセクタと仮想記
憶のページが直接対応する。すなわちセクタ全指足する
ために各セクタにつけた論理セクタ番号とページ番号が
直接対応するので、ベジファイルアクセス部140は指
定されたページ番号を用いて、外部記憶160のページ
ファイル161を直接アクセスすることができる。また
指定されたページフレーム番号とページ内ツバイトオフ
セットを組み合わせろことにより、主記憶120の物理
アドレスが得られるので、主記憶120も直接アクセス
できる。
In general, external storage FFL devices are called sectors. Is input/output performed in blocks? However, in this embodiment, this sector and the page of the virtual memory directly correspond. In other words, since the logical sector number assigned to each sector and the page number directly correspond to each other in order to add all fingers of the sector, the vegetable file access unit 140 can directly access the page file 161 of the external storage 160 using the specified page number. Can be done. Furthermore, by combining the specified page frame number and the intra-page 3-byte offset, the physical address of the main memory 120 can be obtained, so the main memory 120 can also be accessed directly.

このようにして、ページファイルアクセス部140は、
ファイルの管理に伴うオーバーヘッドをかけることす<
、ページファイルをアクセスすることができる。
In this way, the page file access unit 140
Incurring overhead associated with file management
, the page file can be accessed.

自動ページアウト部150は、システムのシャットダウ
ン時に、主記憶120上で更新されたままページファイ
ル161に反映されていないペジ全、ページファイルア
クセス部140を用いてページファイル161へ誉き出
す。常駐ページも更新されていればページアウトする。
When the system is shut down, the automatic page-out unit 150 uses the page file access unit 140 to honor all pages that have been updated on the main memory 120 but have not been reflected in the page file 161 to the page file 161. If the resident page has also been updated, it will be paged out.

自動ページアウト部150は、起動されるとアドレス変
換部110が持っているページ管理テーブルを参照して
、ページアウトするときページを探す。ページ管理テー
ブルは、アドレス変換部110が主記憶120上にペー
ジインされているページアウトするために使用するテー
ブルで、ページ番号とベジ7レーム番号の対応表である
。また、ページ管理テーブルには、常駐ページであろか
どうかのフラグや、そのページが主記+[120にベー
ジインされた後、更新されたか否かといった情報も格納
されている。自動ページアウト部150は、このページ
管理テーブルを参照し、主記憶120上で更新されたペ
ージがあれば、常駐ページであるかどうかにかかわらず
、ページ番号とページフレム番号音、 ページファイル
アクセス部140へ渡してページアウトする。
When activated, the automatic page-out unit 150 refers to the page management table held by the address conversion unit 110 and searches for a page when performing page-out. The page management table is a table used by the address conversion unit 110 to page out pages that have been paged in on the main memory 120, and is a correspondence table between page numbers and frame numbers. The page management table also stores information such as a flag indicating whether the page is a resident page and whether the page has been updated after being paged in to the main page 120. The automatic page out section 150 refers to this page management table, and if there is a page updated on the main memory 120, regardless of whether it is a resident page or not, the automatic page out section 150 outputs the page number, page frame number sound, and page file access section. 140 and page out.

シャットダウン時に、実際に電源が切れて主記憶120
の内容が失われてしまう前にページアウト全行うために
は、一連の処理が終了するたびにO8でこれ全検出し自
動ページアウト部150全起動するとともに、利用者に
、処理中+′i戒源電源らないようにしてもらう方法、
利用者にシャツトダウンに先だって、シャットダウン予
告コマンドといったコマンドを発行してもらい、このコ
マンドの処理として自動ページアウト部150を起動す
る方法、利用者が操作する電源スィッチと電源部を切り
離し、その間に電源スィッチがオフになると、自動ペー
ジアウト部を起動し、ページアウト終了後に電源を落と
す゛電源コントロール部を設ける方法、無停電の副電源
を持ち、主電源が切れると瞬時に電源ラインを副電源に
切り換えて自動ページアウト部150を起動し、ページ
アウト後に副電源を切る方法等が考えられる。第6図は
、電源スィッチと電源部の間に電源コントロール部を設
けろ方法の一例を示した図で、600は利用者が操作す
る電源スィッチ、610は電源コントロール部、620
は電源部、611は電源スィッチ600の状態の変化全
検出する0N10FF検出部、612は電源スイッチ6
00に代わって電源部620をオンオフする電子スイッ
チ全表している。ここで、利用者が電源スイッチ600
を閉じると、電源コントロール部610のON/(JF
F検出部611がこれを検出しオン通知信号を電子スイ
ッチ612へ与えて電源部620をオンにする。
During shutdown, the power is actually turned off and the main memory 120
In order to completely page out before the contents of How to get rid of Kaigen power,
A method is to ask the user to issue a command such as a shutdown notice command before shutting down, and to start the automatic page-out section 150 as a process for this command. When the switch is turned off, the automatic page-out section is started, and the power is turned off after the page-out is completed.A method of providing a power control section, having an uninterruptible sub power supply, and instantly turning the power line into a sub power supply when the main power is turned off. Possible methods include switching to start the automatic page-out unit 150 and turning off the sub power supply after page-out. FIG. 6 is a diagram showing an example of a method for providing a power control section between a power switch and a power supply section, in which 600 is a power switch operated by the user, 610 is a power control section, and 620 is a power control section.
is a power supply unit, 611 is an 0N10FF detection unit that detects all changes in the state of the power switch 600, and 612 is a power switch 6.
The electronic switch that turns on and off the power supply unit 620 is fully represented in place of 00. Here, the user presses the power switch 600.
When you close the power supply control section 610, turn on/(JF
The F detection unit 611 detects this and provides an on notification signal to the electronic switch 612 to turn on the power supply unit 620.

また、利用者が電源スイッチ600を開くと、0N10
FF検出部611はオフ通知信号を自動ページアウト部
150に与える。自動ページアウト部150はこの信号
により起動されろ。自動ページアウト部150はページ
アウトが終了すると、終了通知信号(!:電子スイッチ
612に与えて電源部620をオフにする。
Also, when the user opens the power switch 600, 0N10
The FF detection section 611 provides an off notification signal to the automatic page out section 150. The automatic pageout section 150 is activated by this signal. When the automatic page-out section 150 completes the page-out, it gives a completion notification signal (!: to the electronic switch 612 to turn off the power supply section 620.

このようにして、自動ページアウト部150は、シャッ
トダウンにより主記憶120上のデータが失われること
全防ぎ、仮想記憶の内容をシステム停止中も保持するこ
とを可能とする。
In this way, the automatic pageout unit 150 completely prevents data on the main memory 120 from being lost due to shutdown, and makes it possible to retain the contents of the virtual memory even when the system is stopped.

本実施例で説明した情報処理装置においては、ファイル
管理部は必須ではない。データやプログラムを外部から
持ち込んだり持ちだす必要がある場合、伺だかの入出力
手段が必要となるが、たとえは外部のシステムとの情報
のJPジと9ヲ通信回線によってのみ行うような情報処
理装置の場合、ファイル管理部は不要となり、システム
の簡略化15・ の効果がある。
In the information processing apparatus described in this embodiment, the file management section is not essential. When it is necessary to bring in or take out data or programs from outside, some kind of input/output means is required, but for example, information processing that can only be carried out through communication lines between the external system and the information system. In the case of a device, a file management section is not required, resulting in system simplification15.

以上の実施例においては、同時にはひとつの処理しか実
行しないシングルタスクの情報処理装置の場合を示した
が、同時に複数の処理を並行して実行できるマルチタス
クの情報処理装置において、処理ごとに仮想メモリファ
イル管理テーブルを持つ等の方法で、個々の処理に対し
て本発明の効果が現れるようにすることも、本発明の他
の実施例として容易に実現可能であり説明は省略する。
In the above embodiment, the case of a single-task information processing device that executes only one process at a time was shown, but in a multi-task information processing device that can execute multiple processes in parallel, virtual It is also possible to easily achieve the effects of the present invention on individual processes by providing a memory file management table, etc., as another embodiment of the present invention, and a description thereof will be omitted.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、以下のような効
果が得られる。
As explained above, according to the present invention, the following effects can be obtained.

(1)  ページファイルアクセス部によってページフ
ァイルをアクセスすることによりページインやページア
ウト処理に、オーバーヘッドが大きいファイル管理を使
う必要がな(なるので、仮想メモリのアクセス速度が向
上する。
(1) By accessing the page file using the page file access unit, there is no need to use file management, which has a large overhead, for page-in and page-out processing, thereby improving virtual memory access speed.

(21仮想メモリファイル管理部により仮想記憶上の複
数のデータを任意に指定でき、自動ページアウト部によ
りシステム停止中もそれらのデータが保持されるので、
従来の処理プログラムが含んでいたデータファイルの入
出力処理がなくなり、外部記憶へのアクセス回数が減少
する。
(21 The virtual memory file management section allows you to specify multiple pieces of data on the virtual memory, and the automatic pageout section retains that data even when the system is stopped.
Data file input/output processing included in conventional processing programs is eliminated, and the number of accesses to external storage is reduced.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例のメモリアクセス関連部分の構
成を示すブロック図、第2図は従来の仮想記憶方式を採
用した情報処理装置のメモリアクセス関連部分の構成の
例を示す図、WJ3図は仮想メモリファイル管理テーブ
ルの一例を示した図、第4図は仮想メモリファイル管理
部130のコマンドインターフェースの一例を示した図
、第5図はページファイルアクセス部140のコマンド
インターフェースの一例を示した図、第6図は電源スィ
ッチと電源部の間に電源コントロール部を設ける方法の
一例を示した図である。 100・・・CPU、110・・・アドレス変換部、1
20・・・主記憶、130・・・仮想メモリファイル管
理部、131・・・仮想メモリファイル管理テーブル、
140・・・ページファイルアクセス部、150・・・
自動べ−ファイル、200・・・ファイル管理部、60
0・・先頭ページ番号項目、310・・・ページ数項目
、4゜O・・・命令、410・・結果、401 コマン
ド部分、402・・・パラメータ部分、411・・・エ
ラー識別子部分、412・・データ部分、420・・・
仮想メモリファイル作成命令、421・・・仮想メモリ
ファイル削除命令、422・・・仮想メモリファイル管
理テーブル照会命令、500・・方向指示部分、510
・・・ページ番号部分、520・・・ページフレーム番
号部分、600・・・′電源スイッチ、610・・・電
源コントロール部、620・・・電源部、611・・・
0N10FF’検出部、612・・パ電子スイッチ。
FIG. 1 is a block diagram showing the configuration of a memory access-related portion in an embodiment of the present invention, and FIG. 2 is a diagram showing an example of the configuration of a memory access-related portion of an information processing apparatus that employs a conventional virtual storage method. The figure shows an example of a virtual memory file management table, FIG. 4 shows an example of the command interface of the virtual memory file management section 130, and FIG. 5 shows an example of the command interface of the page file access section 140. FIG. 6 is a diagram showing an example of a method of providing a power control section between a power switch and a power supply section. 100...CPU, 110...Address translation unit, 1
20... Main memory, 130... Virtual memory file management section, 131... Virtual memory file management table,
140...Page file access section, 150...
Automatic base file, 200...File management department, 60
0...First page number item, 310...Page number item, 4°O...Command, 410...Result, 401 Command part, 402...Parameter part, 411...Error identifier part, 412...・Data part, 420...
Virtual memory file creation instruction, 421...Virtual memory file deletion instruction, 422...Virtual memory file management table inquiry instruction, 500...Direction instruction part, 510
...Page number part, 520...Page frame number part, 600...'Power switch, 610...Power control section, 620...Power supply section, 611...
0N10FF' detection section, 612...P electronic switch.

Claims (1)

【特許請求の範囲】[Claims] 主記憶と外部記憶との間でページ単位のスワツピングを
行う仮想記憶方式を採用した情報処理装置において、外
部記憶の全体、または一部の固定された領域に置かれた
ページフアイルをアクセスするページファイルアクセス
部と、該ページファイル内の、一連のページからなる仮
想メモリファイルを管理する仮想メモリファイル管理部
と、シヤツトダウン時に主記憶上で更新されたすべての
ページを自動的にページアウトする自動ページアウト部
とを備え、すべてのデータを仮想記憶上に置いて、仮想
記憶のみを対象として処理を行う処理プログラムを用い
ることを可能とする情報処理装置。
In an information processing device that employs a virtual memory method that performs page-by-page swapping between main memory and external memory, a page file that accesses a page file located in a fixed area of the entire external memory or part of the external memory an access section, a virtual memory file management section that manages a virtual memory file consisting of a series of pages within the page file, and an automatic page out section that automatically pages out all pages updated in main memory at the time of shutdown. 1. An information processing device that allows the use of a processing program that stores all data on a virtual memory and processes only the virtual memory.
JP63235049A 1988-09-21 1988-09-21 Information processor Pending JPH0283755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63235049A JPH0283755A (en) 1988-09-21 1988-09-21 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63235049A JPH0283755A (en) 1988-09-21 1988-09-21 Information processor

Publications (1)

Publication Number Publication Date
JPH0283755A true JPH0283755A (en) 1990-03-23

Family

ID=16980330

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63235049A Pending JPH0283755A (en) 1988-09-21 1988-09-21 Information processor

Country Status (1)

Country Link
JP (1) JPH0283755A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008251036A (en) * 1997-09-24 2008-10-16 Microsoft Corp Application programming interface for controlling assignment of physical memory in virtual storage system by application program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008251036A (en) * 1997-09-24 2008-10-16 Microsoft Corp Application programming interface for controlling assignment of physical memory in virtual storage system by application program

Similar Documents

Publication Publication Date Title
JP2635058B2 (en) Address translation method
US6021408A (en) Methods for operating a log device
US7302517B2 (en) Apparatus and method for controlling execute-in-place (XIP) in serial flash memory, and flash memory chip using the same
US6272611B1 (en) Computer data storage medium having a virtual disk drive and memory management method therefor
JPS6367686B2 (en)
JPH03110652A (en) Computer device
JP3527765B2 (en) Program cache device
US5414842A (en) External sorting using virtual storage as a work device
JPH02150940A (en) Virtual memory system
US5745749A (en) Method and system of file version clustering of object blocks using a compiler and database and having a predetermined value
JPS63132355A (en) Memory controller
JPH0283755A (en) Information processor
US11461225B2 (en) Storage device, control method of storage device, and storage medium
JPH06110743A (en) System for parallel processing of data base rearrangement
JP3373360B2 (en) Disk array device
JPH0430062B2 (en)
JPH01303547A (en) Control system for information memory
Weinberger Database Systems: Making UNIX* Operating Systems Safe for Databases
JPH0863397A (en) Method for controlling disk cache
JP2912657B2 (en) File access processor
JPS589452B2 (en) Firmware broom
JPH02165354A (en) Auxiliary storage device
JPH0816471A (en) Memory device and cache memory device
JPH07152574A (en) Program loading system
JP2003036201A (en) Memory access management device