JPH03218545A - Pre-loading system for main storage - Google Patents

Pre-loading system for main storage

Info

Publication number
JPH03218545A
JPH03218545A JP2014077A JP1407790A JPH03218545A JP H03218545 A JPH03218545 A JP H03218545A JP 2014077 A JP2014077 A JP 2014077A JP 1407790 A JP1407790 A JP 1407790A JP H03218545 A JPH03218545 A JP H03218545A
Authority
JP
Japan
Prior art keywords
pages
buffer
log
index
main memory
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
JP2014077A
Other languages
Japanese (ja)
Inventor
Yasuo Yamane
康男 山根
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2014077A priority Critical patent/JPH03218545A/en
Publication of JPH03218545A publication Critical patent/JPH03218545A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To shorten response time by pre-loading pages on a system buffer based on the order of the pages in an index memory when a system rises. CONSTITUTION:Index information showing the order of the pages which are pre-loaded in a main storage 16 is stored in the index memory 13 and log information showing to which page access is actually made is stored in a log buffer 19 at the time of operation. Then, index information is updated at a prescribed timing by log information. When the system rises, the pages are pre-loaded on the system buffer 18 based on updated index information. Thus, the number of input/output times at the time of initially reading the pages is reduced and response time is shortened.

Description

【発明の詳細な説明】 [概要] ディスク装置から主記憶へページをプレローディングす
るプレローディング方式に関し、よく使用されるページ
を主記憶上にプレローディングすることで、応答時間の
短縮を図ることができる主記憶へのプレローディング方
式を提供することを目的とし、 ディスク装置から計算機の主記憶にプレローディングす
るページの順番を記憶しておくインデックスメモリを前
記ディスク装置内に有し、運用時にどのページにアクセ
スされたかを記憶し前記インデックスメモリを更新する
ログバッファを前記計算機内に有するとともに、アクセ
スされたページを保持しておくシステムバッファを前記
主記憶内に備え、システム立ち上げ時に前記インデック
スメモリ内のページの順番に基づいて前記システムバッ
ファにページをプレローディングするように構成した。
[Detailed Description of the Invention] [Summary] Regarding the preloading method of preloading pages from a disk device to main memory, response time can be shortened by preloading frequently used pages onto main memory. The purpose of this system is to provide a method for preloading pages into main memory that can be preloaded from a disk device to the main memory of a computer. The computer has a log buffer that stores information on whether pages have been accessed and updates the index memory, and a system buffer that stores accessed pages in the main memory. The system buffer is configured to preload pages into the system buffer based on the order of the pages.

[産業上の利用分野] 本発明は、ディスク装置から主記憶へページをプレロー
ディングするプレローディング方式に関する。
[Industrial Application Field] The present invention relates to a preloading method for preloading pages from a disk device to a main memory.

計算機のアプリケーションの内データベースやファイル
を用いるものは、入出力回数を減らし、応答時間を速く
することが以前から求められている。したがって、シス
テム立上げ時にも入出力回数を減らして、さらに応答時
間を短縮することが望ましい。
Computer applications that use databases and files have long been required to reduce the number of inputs and outputs and speed up response times. Therefore, it is desirable to reduce the number of inputs and outputs even when starting up the system to further shorten the response time.

[従来の技術] 従来の主記憶へのローディング方式としては、例えば第
4図に示すようなものがある。
[Prior Art] As a conventional main memory loading method, there is one shown in FIG. 4, for example.

第4図において、1は計算機、2はCPU,3は入出力
制御装置、4は主記憶である。5はディスク装置であり
、ディスク装置5は計算機1の指示よりデータを読み出
し、またはデータを記録する。
In FIG. 4, 1 is a computer, 2 is a CPU, 3 is an input/output control device, and 4 is a main memory. 5 is a disk device, and the disk device 5 reads data or records data according to instructions from the computer 1.

このようなディスク装置5によるデータベースやファイ
ルを用いるシステムでは、主記憶4上にシステムバッフ
ァ6が設けられ、ディスク装置5から一旦主記憶4に読
み込まれたページは再度アクセスされる可能性が高いた
め、システムバッファ6上に確保される。そして、再度
そのページにアクセスがかかったときは、入出力が不要
となるようにしている。こうして、応答時間を速くする
ようにしている。
In a system that uses databases and files using such a disk device 5, a system buffer 6 is provided on the main memory 4, and pages once read from the disk device 5 into the main memory 4 are likely to be accessed again. , are secured on the system buffer 6. Then, when that page is accessed again, no input/output is required. In this way, response time is made faster.

[発明が解決しようとする課題] しかしながら、このような従来の主記憶へのローディン
グ方式にあっては、一旦主記憶へ読み込まれたページを
システムバッファ上に保持するようにしているが、前も
って主記憶上にページをプレローディングすることは行
なっていないため、最初にページを読み込むときは、ど
うしてもページの入出力を行なわなければならないので
、応答時間がかかるという問題点があった。
[Problems to be Solved by the Invention] However, in such conventional main memory loading methods, pages once read into main memory are held in the system buffer; Since the page is not preloaded into memory, the first time the page is loaded, the page must be input/outputted, resulting in a long response time.

本発明は、このような従来の問題点に鑑みてなされたも
のであって、よく使用されるページを主記憶上にプレロ
ーディングすることで、応答時間の短縮を図ることがで
きる主記憶へのプレローディング方式を提供することを
目的としている。
The present invention has been made in view of these conventional problems, and provides a main memory storage system that can shorten response time by preloading frequently used pages onto the main memory. It is intended to provide a preloading method.

[課題を解決するための手段] 第1図は本発明の原理説明図である。[Means to solve the problem] FIG. 1 is a diagram explaining the principle of the present invention.

第1図において、11は計算機、12はディスク装置、
13はディスク装置12から計算機11の主記憶16に
プレローディングするページの順番を記憶しておくイン
デックスメモリ、19は運用時にどのページにアクセス
されたかを記憶し前記インデックスメモリ13を更新す
るログバッファ、18はアクセスされたページを保持し
、システム立ち上げ時に前記インデックスメモリ13内
のページの順番に基づいてページがプレローディングさ
れるシステムバッファである。
In FIG. 1, 11 is a computer, 12 is a disk device,
13 is an index memory that stores the order of pages to be preloaded from the disk device 12 to the main memory 16 of the computer 11; 19 is a log buffer that stores which pages have been accessed during operation and updates the index memory 13; A system buffer 18 holds accessed pages and is preloaded with pages based on the order of pages in the index memory 13 when the system is started up.

[作用] 本発明においては、主記憶にプレローディングするペー
ジの順番を示すインデックス情報をインデックスメモリ
に記憶しておき、一方、運用時に実際にどのページにア
クセスしたかを示すログ情報をログバッファに記憶し、
このログ情報によって所定のタイミングで前記インデッ
クス情報を更新する。システムの立上げ時は更新された
インデックス情報に基づいてページをシステムバッファ
にプレローディングする。
[Operation] In the present invention, index information indicating the order of pages to be preloaded into the main memory is stored in the index memory, while log information indicating which pages were actually accessed during operation is stored in the log buffer. remember,
The index information is updated at a predetermined timing using this log information. When the system is started up, pages are preloaded into the system buffer based on the updated index information.

したがって、最初にページを読み込むときに、入出力回
数を減らすことができ、その結果、応答時間を短縮する
ことができる。
Therefore, when loading a page for the first time, the number of inputs and outputs can be reduced, and as a result, response time can be shortened.

[実施例] 以下、本発明の実施例を図面に基づいて説明する。[Example] Embodiments of the present invention will be described below based on the drawings.

第2図および第3図は本発明の一実施例を示す図である
FIGS. 2 and 3 are diagrams showing one embodiment of the present invention.

第2図において、11は計算機、12は磁気ディスク装
置、光ディスク装置などのディスク装置であり、ディス
ク装置12は計算機11に接続され、計算機11の指示
によりデータの読み出し、書き込みを行なう。ディスク
装置12内にはインデックスメモリ13とログファイル
14が設けられている。
In FIG. 2, 11 is a computer, and 12 is a disk device such as a magnetic disk device or an optical disk device.The disk device 12 is connected to the computer 11 and reads and writes data according to instructions from the computer 11. An index memory 13 and a log file 14 are provided within the disk device 12.

インデックスメモリ13はどういう順番でぺ一ジをプレ
ローディングするかを記憶しておくためのものである。
The index memory 13 is for storing the order in which pages are to be preloaded.

ログファイル14は、運用時のページアクセスに関する
ログ情報を保持するためのものである。
The log file 14 is for holding log information regarding page access during operation.

すなわち、ページアクセスに関するログ情報は後述する
ログバッファ内に一旦保持されるが、ログバッファが一
杯になったときには、ログファイル14に書き出される
That is, log information regarding page accesses is temporarily held in a log buffer, which will be described later, but is written to the log file 14 when the log buffer becomes full.

計算機11は、CPU15と主記憶16と入出力制御装
置17を有し、主記憶16内にはシステムバッフ:71
8が設けられている。
The computer 11 has a CPU 15, a main memory 16, and an input/output control device 17, and the main memory 16 includes a system buffer: 71
8 is provided.

システムバッファ18はアクセスされたページを主記憶
16上に保持するためのものである。また、システム立
上げ時には、インデックスメモリ13内のページの順番
に基づいて、そのシステムバッファ分のページがシステ
ムバツファ18上にプレローディングされる。
The system buffer 18 is for holding accessed pages in the main memory 16. Furthermore, when the system is started up, pages corresponding to the system buffer are preloaded onto the system buffer 18 based on the order of the pages in the index memory 13.

19は計算機11内に設けられた前記口グバッファであ
り、ログバッフ719は運用時にどのぺ一ジにアクセス
がかかったかを記憶してお《ためのものである。このペ
ージアクセスに関するログ情報は、前述したように、一
旦、ログバッファ19内に保持されるが、ログバッファ
19が一杯になったときは、ログファイル14に書き出
される。
19 is the log buffer provided in the computer 11, and the log buffer 719 is for storing which pages are accessed during operation. As described above, log information regarding this page access is temporarily held in the log buffer 19, but when the log buffer 19 becomes full, it is written to the log file 14.

インデックスメモリ13のインデックス情報は、ログバ
ッファ19またはログファイル14のログ情報に基づい
て運用されているアプリケーションとは無関係にパック
ジョブとして更新される。更新されるタイミングとして
は、例えば、ログ情報がある量に達したときとか、また
はある時間が経過したごとなどいろいろなタイミングが
考えられる。
The index information in the index memory 13 is updated as a packed job regardless of the application being operated based on the log information in the log buffer 19 or log file 14. Various timings can be considered for updating, such as when the amount of log information reaches a certain amount, or every time a certain amount of time has elapsed.

次に、動作を説明する。Next, the operation will be explained.

アクセスされたページを主記憶16上に保持しておくシ
ステムバッファ18は、例えば5枚あるものとする。ま
た、システム立上げ時のインデックスメモリ13のイン
デックス情報は、第3図(A)に示す通りであるとする
。なお、第3図中の数字はページIDを示す。
It is assumed that there are, for example, five system buffers 18 that hold accessed pages in the main memory 16. It is also assumed that the index information in the index memory 13 at the time of system startup is as shown in FIG. 3(A). Note that the numbers in FIG. 3 indicate page IDs.

したがって、システム立上げ時には、システムバッファ
18にはインデックス情報の先頭から5ページ分、すな
わちページIDが55.  3.  28.15.86
のものがプレローディングされる。
Therefore, at the time of system startup, the system buffer 18 contains five pages from the beginning of the index information, that is, page ID 55. 3. 28.15.86
will be preloaded.

その後システムの運用が行なわれ、この運用時にアクセ
スされたページの順番がページIDで示すとき、 7,35,22,28,7,86.55.8であったと
する、これらのページIDは、ログ情報としてログバッ
ファ19またはログファイル14に記憶される。ログ情
報がある量に達すると、または一定時間が経過するごと
に、ログ情報に基づいてインデックスメモリ13のイン
デックス情報は、例えばLRU (Least Rec
entl7 Used )に基づいて更新される。すな
わち、ログ情報はLRUと考えればページの優先度は、 8.55.86.7.28.22.35であるから、イ
ンデックス情報は、 8,55,86,7,28,22,35,3,15,・
・・と更新される(第3図(B)、参照)。
After that, the system is operated, and when the order of pages accessed during this operation is indicated by page IDs, these page IDs are 7, 35, 22, 28, 7, 86, 55.8. It is stored in the log buffer 19 or log file 14 as log information. When a certain amount of log information is reached or every time a certain amount of time elapses, the index information in the index memory 13 is changed to, for example, LRU (Least Rec) based on the log information.
entl7Used ). In other words, if we consider log information to be LRU, the page priorities are 8.55.86.7.28.22.35, so index information is 8, 55, 86, 7, 28, 22, 35, 3,15,・
... (see Figure 3 (B)).

そして、次のシステムの立上げ時には、8,55.86
.7.28のものがシステムバッファ18にプレローデ
ィングされる。
Then, when the next system is started up, 8,55.86
.. 7.28 is preloaded into the system buffer 18.

このように、前もってよく使用されるページがシステム
バッファ18にローディングされるので、最初のページ
を読み込むときに、入出力回数を減らすことができ、応
答時間を短縮することができる。なお、インデックス情
報の更新は、バックアップジ白ブとして行なうことが可
能であるため、オーバヘッドとなる可能性を減少させる
ことができる。また、このインデックス情報は効率に関
するものであるため、一貫性保持に関するわずらわしい
処理を行なう必要もない。
In this way, frequently used pages are loaded into the system buffer 18 in advance, so that when reading the first page, the number of inputs and outputs can be reduced and the response time can be shortened. Incidentally, since updating of index information can be performed as a backup job, the possibility of causing overhead can be reduced. Furthermore, since this index information is related to efficiency, there is no need to perform troublesome processing related to maintaining consistency.

[発明の効果] 以上説明してきたように、本発明によれば、ページアク
セスのログ情報に基づいてプレローディングするページ
の順番を示すインデックス情報を更新し、システムの立
上げ時には、インデックス情報によりページをシステム
バッファ上にプレローディングするようにしたため、最
初にページを読み込むときに、入出力回数を減らすこと
ができ、その結果、応答時間の短縮を図ることができる
[Effects of the Invention] As described above, according to the present invention, index information indicating the order of pages to be preloaded is updated based on page access log information, and when the system is started up, pages are updated based on the index information. By preloading the page into the system buffer, it is possible to reduce the number of inputs and outputs when the page is first read, and as a result, the response time can be shortened.

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

第1図は本発明の原理説明図、 第2図は本発明の一実施例を示す図、 第3図(A).(B)はインデックス情報を示す図、 第4図は従来例を示す図である。 図中、 11・・・計算機、 12・・・ディスク装置、 13・・・インデックスメモリ、 14・・・ログファイル、 15・・・CPU, 6・・・主記憶、 7・・・入出力制御装置、 8・・・システムバッファ、 9・・・ログバッファ。 FIG. 1 is a diagram explaining the principle of the present invention, FIG. 2 is a diagram showing an embodiment of the present invention; Figure 3 (A). (B) is a diagram showing index information, FIG. 4 is a diagram showing a conventional example. In the figure, 11... Calculator, 12... Disk device, 13...index memory, 14...Log file, 15...CPU, 6...main memory, 7... Input/output control device, 8... System buffer, 9...Log buffer.

Claims (1)

【特許請求の範囲】[Claims] ディスク装置(12)から計算機(11)の主記憶(1
6)にプレローディングするページの順番を記憶してお
くインデックスメモリ(13)を前記ディスク装置(1
2)内に有し、運用時にどのページにアクセスされたか
を記憶し前記インデックスメモリ(13)を更新するロ
グバッファ(19)を前記計算機(11)内に有すると
ともに、アクセスされたページを保持しておくシステム
バッファ(18)を前記主記憶(16)内に備え、シス
テム立ち上げ時に前記インデックスメモリ(13)内の
ページの順番に基づいて前記システムバッファ(18)
にページをプレローディングするようにしたことを特徴
とする主記憶へのプレローディング方式。
From the disk device (12) to the main memory (1) of the computer (11)
An index memory (13) for storing the order of pages to be preloaded in the disk device (13) is connected to the disk device (13).
2) has a log buffer (19) in the computer (11) that stores which pages are accessed during operation and updates the index memory (13), and also stores accessed pages. A system buffer (18) is provided in the main memory (16) to store data, and the system buffer (18)
A preloading method to main memory characterized by preloading pages.
JP2014077A 1990-01-24 1990-01-24 Pre-loading system for main storage Pending JPH03218545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014077A JPH03218545A (en) 1990-01-24 1990-01-24 Pre-loading system for main storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014077A JPH03218545A (en) 1990-01-24 1990-01-24 Pre-loading system for main storage

Publications (1)

Publication Number Publication Date
JPH03218545A true JPH03218545A (en) 1991-09-26

Family

ID=11851049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014077A Pending JPH03218545A (en) 1990-01-24 1990-01-24 Pre-loading system for main storage

Country Status (1)

Country Link
JP (1) JPH03218545A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835305A (en) * 1993-12-07 1998-11-10 Hitachi, Ltd. Magnetic disk apparatus employing liquid bearing type or physical contact type magnetic head slider
JPH1196015A (en) * 1997-09-19 1999-04-09 Nec Corp Language processing method based on cache optimization and recording medium recording language processing
JP2016033745A (en) * 2014-07-31 2016-03-10 京セラドキュメントソリューションズ株式会社 Information processor and information processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835305A (en) * 1993-12-07 1998-11-10 Hitachi, Ltd. Magnetic disk apparatus employing liquid bearing type or physical contact type magnetic head slider
JPH1196015A (en) * 1997-09-19 1999-04-09 Nec Corp Language processing method based on cache optimization and recording medium recording language processing
JP2016033745A (en) * 2014-07-31 2016-03-10 京セラドキュメントソリューションズ株式会社 Information processor and information processing program

Similar Documents

Publication Publication Date Title
US7383392B2 (en) Performing read-ahead operation for a direct input/output request
KR940005775B1 (en) Method of opening disk file
US5890208A (en) Command executing method for CD-ROM disk drive
KR880011667A (en) How personal computers work
US7330947B2 (en) Method and apparatus for backing up data in virtual storage medium
JPH0113571B2 (en)
JPS619722A (en) Apparatus for rearranging page with track in disc memory
JPH03160534A (en) Access control system for shared file
CN106897311B (en) Database batch updating method, data reduction log generating method and storage device
JPS62177621A (en) Disk device
US10430287B2 (en) Computer
JPH03218545A (en) Pre-loading system for main storage
JP3180336B2 (en) Data access method using multilayer buffer
JP2912657B2 (en) File access processor
KR0181487B1 (en) Driving apparatus and method of program using buffer ram
JPS603224B2 (en) Data creation method for adjusting the number of page storage areas in page buffer memory
KR19980063328A (en) Data output method of external storage device
JPH05158792A (en) Batch reading system for cache buffer
JPS59195753A (en) Control system of disc cache memory
JPS61276040A (en) File access system
JPH02213962A (en) Cache memory control system for disk cache
JPH01220047A (en) Load system for dasd cash
JPH02138646A (en) Processing system for addition of record
JPH04344953A (en) File management method for storage medium
JPH01129334A (en) Data control system for cache memory