JP2001117818A - Memory managing device, managing method, and recording medium recorded with managing program - Google Patents
Memory managing device, managing method, and recording medium recorded with managing programInfo
- Publication number
- JP2001117818A JP2001117818A JP29753299A JP29753299A JP2001117818A JP 2001117818 A JP2001117818 A JP 2001117818A JP 29753299 A JP29753299 A JP 29753299A JP 29753299 A JP29753299 A JP 29753299A JP 2001117818 A JP2001117818 A JP 2001117818A
- Authority
- JP
- Japan
- Prior art keywords
- address
- history
- access
- storage means
- information
- 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.)
- Granted
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明はメモリ管理装置及び
管理方法並びに管理プログラムを記録した記録媒体に関
し、特にソフトウェアをホストマシン上でシミュレート
実行するシミュレートデバッガに実装するシミュレーシ
ョンメモリを管理するメモリ管理装置及び管理方法並び
に管理プログラムを記録した記録媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory management device, a management method, and a recording medium on which a management program is recorded, and more particularly to a memory management for managing a simulation memory mounted on a simulated debugger that simulates and executes software on a host machine. The present invention relates to an apparatus, a management method, and a recording medium that records a management program.
【0002】[0002]
【従来の技術】図16は従来のメモリ管理装置の一例の
構成図である。このメモリ管理装置は、ソフトウェアを
シミュレート実行するシミュレータのシミュレーション
メモリを管理する。同図を参照すると、従来のメモリ管
理装置100は、アドレス変換部101と、ホストマシ
ンメモリ102と、キャッシュ制御部103と、ディス
ク入出力部104と、ディスク装置105とを含んで構
成されている。このディスク装置105には、シミュレ
ーションに必要なシミュレーションメモリの実体が格納
されている。2. Description of the Related Art FIG. 16 is a block diagram showing an example of a conventional memory management device. This memory management device manages a simulation memory of a simulator that simulates and executes software. Referring to FIG. 1, a conventional memory management device 100 includes an address conversion unit 101, a host machine memory 102, a cache control unit 103, a disk input / output unit 104, and a disk device 105. . The disk device 105 stores the actual simulation memory required for the simulation.
【0003】このような構成の中で、シミュレーション
メモリのアクセス要求時、アドレス変換部101は、ア
クセスアドレスをシミュレーションメモリの位置に変換
し、キャッシュ制御部103が、ホストマシンメモリ1
02上へのアクセスか、あるいは、ディスク装置105
上にあるシミュレーションメモリへのアクセスかを判定
する。In such a configuration, when an access to a simulation memory is requested, an address conversion unit 101 converts an access address into a position of the simulation memory, and the cache control unit 103 transmits a request to the host machine memory 1.
02 or the disk device 105
It is determined whether the access is to the upper simulation memory.
【0004】この際、ディスク装置105上のシミュレ
ーションメモリへのアクセスの場合、一旦、ディスク装
置105からホストマシンメモリ102への転送処理を
行い、ホストマシンメモリ102上でのアクセスを行え
るようにする。[0004] At this time, in the case of accessing the simulation memory on the disk device 105, a transfer process from the disk device 105 to the host machine memory 102 is performed once so that the access on the host machine memory 102 can be performed.
【0005】この様に、ディスク装置105上のシミュ
レーションメモリからホストマシンメモリ102への読
出し、あるいは、変更されたホストマシンメモリ102
の内容をディスク装置105上へ書戻す処理が行われ
る。As described above, the read from the simulation memory on the disk device 105 to the host machine memory 102 or the changed host machine memory 102
Is written back to the disk device 105.
【0006】[0006]
【発明が解決しようとする課題】しかし、従来の技術で
は、次のような問題点があった。第1の問題点は、ディ
スク装置105上のシミュレーションメモリからホスト
マシンメモリ102への読出しの際に、実際のシミュレ
ーション実行が中断されてしまうということである。そ
の理由は、従来のメモリ管理装置100では、シミュレ
ート対象ソフトウェアが、近い将来アクセスするページ
を予測出来ず、前もってディスク装置105からホスト
マシンメモリ102に転送しておくことができないため
である。アクセスするページが、ホストマシンメモリ1
02上に存在しない場合、シミュレーションを中断して
シミュレーションメモリをディスク装置105からホス
トマシンメモリ102上に転送しない限りシミュレーシ
ョンは行えない、従って、従来のメモリ管理装置100
ではシミュレーションの中断が増えてしまうのである。However, the prior art has the following problems. The first problem is that the actual simulation execution is interrupted when reading from the simulation memory on the disk device 105 to the host machine memory 102. The reason is that in the conventional memory management device 100, the simulation target software cannot predict the page to be accessed in the near future, and cannot transfer the page from the disk device 105 to the host machine memory 102 in advance. The page to be accessed is the host machine memory 1
02, the simulation cannot be performed unless the simulation is interrupted and the simulation memory is transferred from the disk device 105 to the host machine memory 102. Therefore, the conventional memory management device 100
Then, the interruption of the simulation increases.
【0007】第2の問題点は、ディスク装置105へ無
駄な書出し、読込みが多いということである。その理由
は、ホストマシンメモリ102からページをディスク装
置105へ書戻す際、近々使用されるかもしれないペー
ジが否かが判断出来ないために、近々使用されるのも関
わらず、書戻してしまう可能性がある。従って、この書
戻されたページに対してアクセスする場合に、再度、読
出し動作を行う必要があるためである。[0007] The second problem is that there is a lot of useless writing and reading to the disk device 105. The reason is that when a page is rewritten from the host machine memory 102 to the disk device 105, it cannot be determined whether or not there is a page that may be used in the near future. there is a possibility. Therefore, when accessing the rewritten page, it is necessary to perform the read operation again.
【0008】一方、先読みに関する技術が特開昭60−
230247号公報(以下、文献1という)、特開平4
−332053号公報(以下、文献2という)、特開平
6−289999号公報(以下、文献3という)、特開
平8−115259号公報(以下、文献4という)及び
特開平8−185272号公報(以下、文献5という)
に開示されている。On the other hand, Japanese Patent Application Laid-Open No.
230247 (hereinafter referred to as Reference 1),
JP-A-332053 (hereinafter referred to as Reference 2), JP-A-6-289999 (hereinafter referred to as Reference 3), JP-A-8-115259 (hereinafter referred to as Reference 4), and JP-A-8-185272 ( Hereinafter, it is referred to as Document 5.)
Is disclosed.
【0009】文献1開示の技術は、ホストより、あるシ
リンダ,ヘッドの2〜3セクタのアクセス要求があった
場合には、同一シリンダ,ヘッドの4〜7セクタについ
て先読みを行う、というものである。文献2開示の技術
は、CPUのシミュレーションを行った結果のメモリの
状態や、シミュレーションに従って状態の遷移する環境
をファイルし、そのファイルに保存した内容を読出して
メモリの状態やシミュレーションに従って状態の遷移す
る環境を復元する、というものである。文献3開示の技
術は、ホストシステムから読出し要求されたセクタと同
一の付属コードが書込まれているセクタのデータを先読
みバッファに先読みして登録する、というものである。
文献4開示の技術は、書込み要求がなされるたびに、そ
の要求アドレスと過去にアクセスが行われたアドレスと
の差を算出し、算出した差と一致するブロック数情報に
対応する数値情報がカウントアップされるようにすると
ともに、ブロック数情報と数値情報との対応関係を基
に、先読みを行うブロック数を決定する、というもので
ある。そして、文献5開示の技術は、本コマンドのアド
レスとレングスをアドレスレジスタに記録し、本コマン
ドのアドレスをキーとしてアドレステーブルをサーチ
し、次アクセスアドレスとレングス情報を取得する、と
いうものである。The technique disclosed in Reference 1 is to prefetch four to seven sectors of the same cylinder and head when a host requests access to two or three sectors of a certain cylinder and head. . In the technique disclosed in Document 2, the state of the memory as a result of the simulation of the CPU and the environment in which the state changes according to the simulation are filed, the contents stored in the file are read out, and the state changes according to the state of the memory and the simulation. Restoring the environment. The technique disclosed in Document 3 is to prefetch and register data of a sector in which the same auxiliary code as the sector requested to be read from the host system is written in a prefetch buffer.
The technique disclosed in Document 4 calculates a difference between a requested address and an address accessed in the past every time a write request is made, and counts numerical information corresponding to block number information that matches the calculated difference. In addition, the number of blocks to be prefetched is determined based on the correspondence between the block number information and the numerical information. The technique disclosed in Reference 5 records the address and length of this command in an address register, searches the address table using the address of this command as a key, and acquires the next access address and length information.
【0010】本発明は文献1〜5開示の先読み方式と全
く相違する先読み方式を提供する。又、前述の第2の問
題点を解決する手段は文献1〜5に開示されていない。
そこで本発明の目的は、近い将来アクセスするページの
予測が可能で、かつディスク装置への無駄な書出し及び
読込みを防止することが可能なメモリ管理装置及び管理
方法並びに管理プログラムを記録した記録媒体を提供す
ることにある。The present invention provides a look-ahead method that is completely different from the look-ahead methods disclosed in References 1 to 5. Further, means for solving the second problem is not disclosed in Documents 1 to 5.
Therefore, an object of the present invention is to provide a memory management device, a management method, and a recording medium on which a management program is recorded, which can predict a page to be accessed in the near future and can prevent useless writing and reading to a disk device. To provide.
【0011】[0011]
【課題を解決するための手段】前記課題を解決するため
に本発明による第1の発明は、第1記憶手段と第2記憶
手段とを含み、前記第2記憶手段に対するアクセス要求
に応じて前記第2記憶手段に記憶された情報のうちの所
定情報を前記第1記憶手段に転送し、この前記第1記憶
手段に転送された情報に基づいて情報処理を行わせるメ
モリ管理装置であって、そのメモリ管理装置は前記第2
記憶手段に対しアクセス要求のあったアドレス及びアク
セス回数の履歴を蓄積する履歴蓄積手段と、前記第2記
憶手段に対する最新のアクセス要求から所定数溯ったア
クセス要求までのアクセス履歴と前記履歴蓄積手段に蓄
積されたアドレス及びアクセス回数の履歴とから前記第
2記憶手段に対し次回アクセス要求されると予測される
アドレスを算出するアドレス先読み手段とを含むことを
特徴とする。According to a first aspect of the present invention, there is provided a first invention including a first storage means and a second storage means, wherein the first storage means is provided in response to an access request to the second storage means. A memory management device that transfers predetermined information of information stored in a second storage unit to the first storage unit and performs information processing based on the information transferred to the first storage unit, The memory management device is the second
History storing means for storing a history of the address and the number of times of access to the storage means, an access history from the latest access request to the second storage means to an access request going back a predetermined number, and the history storing means. Address prefetching means for calculating an address predicted to be requested to access the second storage device next time from the accumulated address and the history of the number of accesses.
【0012】又、本発明による第2の発明は、第1記憶
手段と第2記憶手段とを含み、前記第2記憶手段に対す
るアクセス要求に応じて前記第2記憶手段に記憶された
情報のうちの所定情報を前記第1記憶手段に転送し、こ
の前記第1記憶手段に転送された情報に基づいて情報処
理を行わせるメモリ管理装置におけるメモリ管理方法で
あって、そのメモリ管理方法は前記第2記憶手段に対し
アクセス要求のあったアドレス及びアクセス回数の履歴
を蓄積する履歴蓄積ステップと、前記第2記憶手段に対
する最新のアクセス要求から所定数溯ったアクセス要求
までのアクセス履歴と前記履歴蓄積手段に蓄積されたア
ドレス及びアクセス回数の履歴とから前記第2記憶手段
に対し次回アクセス要求されると予測されるアドレスを
算出するアドレス先読みステップとを含むことを特徴と
する。Further, a second invention according to the present invention includes a first storage means and a second storage means, wherein the information stored in the second storage means in response to an access request to the second storage means. A memory management method in a memory management device for transferring predetermined information to the first storage means and performing information processing based on the information transferred to the first storage means. A history accumulating step of accumulating a history of the address and the number of times of access to the second storage means, an access history from the latest access request to the second storage means to an access request going back a predetermined number, and the history accumulating means. For calculating an address predicted to be requested to access the second storage unit next time from the address stored in the storage unit and the history of the number of accesses. Characterized in that it comprises a reading step.
【0013】又、本発明による第3の発明は、第1記憶
手段と第2記憶手段とを含み、前記第2記憶手段に対す
るアクセス要求に応じて前記第2記憶手段に記憶された
情報のうちの所定情報を前記第1記憶手段に転送し、こ
の前記第1記憶手段に転送された情報に基づいて情報処
理を行わせるメモリ管理装置に用いられるメモリ管理プ
ログラムを記録した記録媒体であって、その記録媒体に
は前記第2記憶手段に対しアクセス要求のあったアドレ
ス及びアクセス回数の履歴を蓄積する履歴蓄積ステップ
と、前記第2記憶手段に対する最新のアクセス要求から
所定数溯ったアクセス要求までのアクセス履歴と前記履
歴蓄積手段に蓄積されたアドレス及びアクセス回数の履
歴とから前記第2記憶手段に対し次回アクセス要求され
ると予測されるアドレスを算出するアドレス先読みステ
ップとを含むメモリ管理プログラムが記録されることを
特徴とする。[0013] A third invention according to the present invention includes a first storage means and a second storage means, among the information stored in the second storage means in response to an access request to the second storage means. A recording medium for recording a memory management program used in a memory management device for transferring predetermined information to the first storage means and performing information processing based on the information transferred to the first storage means, A history storing step of storing a history of the address and the number of times of access to the second storage means in the recording medium, and a storage of a predetermined number of access requests from the latest access request to the second storage means; Based on the access history and the history of the addresses and the number of times of access stored in the history storage means, it is predicted that the next access request to the second storage means will be made. Memory management program and an address prefetching calculating the less is characterized in that it is recorded.
【0014】本発明による第1乃至第3の発明によれ
ば、アクセス要求のあったアドレス及びアクセス回数の
履歴に基づき次回アクセス要求されると予測されるアド
レスを算出するため、近い将来アクセスするページの予
測が可能で、かつディスク装置への無駄な書出し及び読
込みを防止することが可能となる。According to the first to third aspects of the present invention, a page to be accessed in the near future is calculated in order to calculate an address which is predicted to be requested next time on the basis of an address for which access has been requested and a history of the number of accesses. Can be predicted, and useless writing and reading to the disk device can be prevented.
【0015】[0015]
【発明の実施の形態】まず、本発明の概要について説明
する。図1は本発明に係るメモリ管理装置の一例の構成
図である。図1において、シミュレーションメモリ6
が、ホストマシンメモリ3上では実現出来ない大容量の
シミュレーションメモリを管理する場合、ページと呼ぶ
一定の大きさのメモリを単位として、ディスク装置6を
使用して管理する。シミュレーションメモリへのアクセ
スの際には、ホストマシンメモリ3に一旦読込み、ホス
トマシンメモリ3上で、シミュレーション実行を行う。
このシミュレーションメモリへのアクセスをページ単位
のアクセス履歴として記録し、記録したアクセス履歴を
基に、規定時間間隔に於けるページのアクセスパターン
を割り出して保存する。DESCRIPTION OF THE PREFERRED EMBODIMENTS First, an outline of the present invention will be described. FIG. 1 is a configuration diagram of an example of a memory management device according to the present invention. In FIG. 1, a simulation memory 6
However, when managing a large-capacity simulation memory that cannot be realized on the host machine memory 3, the management is performed using the disk device 6 in units of a memory of a certain size called a page. When accessing the simulation memory, the simulation memory is once read into the host machine memory 3 and the simulation is executed on the host machine memory 3.
The access to the simulation memory is recorded as an access history in page units, and based on the recorded access history, an access pattern of a page at a specified time interval is determined and stored.
【0016】シミュレーションメモリへのアクセスが要
求され、ホストマシンメモリ3上に該当するページが無
い場合、ディスク装置6から取出しが行われる。この
際、次のアクセスが予測されるページを予めディスク装
置6からホストマシン3のメモリへの転写を行うため
に、既に保存されているページのアクセスパターンを用
いて、次に使用されるページを予測し、ディスク装置6
からホストマシンメモリ3上への読出し、及びホストマ
シンメモリ3からディスク装置6への書出しを行う。If access to the simulation memory is requested and there is no corresponding page in the host machine memory 3, the page is fetched from the disk device 6. At this time, in order to transfer a page to be predicted next access from the disk device 6 to the memory of the host machine 3 in advance, a page to be used next is determined using the access pattern of the page already stored. Predict, disk device 6
From the host machine memory 3 and from the host machine memory 3 to the disk device 6.
【0017】以下、本発明の実施の形態について添付図
面を参照しながら説明する。図1は本発明の第1の実施
の形態の構成を示している。図1を参照すると、本発明
に係るメモリ管理装置1は、アドレス変換部2と、ホス
トマシンメモリ3と、キャッシュ制御部4と、ディスク
入出力部5と、ディスク装置6と、アクセスパターン蓄
積部7と、ページ先読み部8とを含んで構成されてい
る。Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 shows the configuration of the first embodiment of the present invention. Referring to FIG. 1, a memory management device 1 according to the present invention includes an address translation unit 2, a host machine memory 3, a cache control unit 4, a disk input / output unit 5, a disk device 6, an access pattern storage unit. 7 and a page prefetch unit 8.
【0018】これらの構成部分の概略は次のとおりであ
る。アドレス変換部2は、シミュレーション対象のソフ
トウェアからアクセスされるアドレスを、ディスク装置
6上のシミュレーションメモリの位置に変換する機能を
持っている。ホストマシンメモリ3は、実際のメモリへ
のアクセスをシミュレートする機能を持っている。キャ
ッシュ制御部4は、実際のメモリアクセスを行うホスト
マシンメモリ3に、シミュレーションメモリの一部を割
り当てる為の機能を持っている。ディスク入出力部5
は、シミュレーションメモリがディスク装置6上に格納
されている位置に変換する機能と、実際のディスク装置
6への入出力を行う機能を持っている。ディスク装置6
は、シミュレーションに必要なシミュレーションメモリ
の実体を格納している。アクセスパターン蓄積部7は、
シミュレーションメモリへのアクセスをパターン化して
蓄積する機能を持っている。ページ先読み部8は、アク
セスパターン蓄積部7によって得られたアクセスのパタ
ーンを使用してシミュレーションメモリの先読みを行う
機能を持っている。The outline of these components is as follows. The address converter 2 has a function of converting an address accessed from software to be simulated into a position of a simulation memory on the disk device 6. The host machine memory 3 has a function of simulating access to an actual memory. The cache control unit 4 has a function of allocating a part of the simulation memory to the host machine memory 3 that performs actual memory access. Disk input / output unit 5
Has a function of converting a simulation memory into a position stored on the disk device 6 and a function of inputting / outputting data to / from the actual disk device 6. Disk device 6
Stores the substance of the simulation memory required for the simulation. The access pattern storage unit 7
It has the function of patternizing and accumulating access to the simulation memory. The page prefetch unit 8 has a function of prefetching the simulation memory using the access pattern obtained by the access pattern storage unit 7.
【0019】次に、図1〜図7を参照して本実施例の全
体の動作について詳細に説明する。図2及び図6はメモ
リ管理装置の動作を示すフローチャート、図3はアクセ
スパタンの抽出を説明するための模式図、図4はアクセ
スパタンの保存を説明するための模式図、図5はアクセ
スパタンの更新を説明するための模式図、及び図7はア
クセスパタンの検索を説明するための模式図である。Next, the overall operation of this embodiment will be described in detail with reference to FIGS. 2 and 6 are flowcharts showing the operation of the memory management device, FIG. 3 is a schematic diagram for explaining extraction of an access pattern, FIG. 4 is a schematic diagram for explaining storage of an access pattern, and FIG. 5 is an access pattern. And FIG. 7 is a schematic diagram for explaining an access pattern search.
【0020】まず、シミュレーションメモリへのアクセ
ス要求がなされると(図2のステップA1)、アドレス
変換部2にてシミュレーションメモリの位置に変換され
る(図2のステップA2)。次に、アクセスパターン蓄
積部7でアクセスするページからアクセスパターンの抽
出と保存が行われる(ステップA3)。これと並行し
て、キャッシュ制御部4でシミュレーションメモリがホ
ストマシンメモリ3上に存在するか、あるいはディスク
装置6上に存在するかを判定し(ステップA4)、ホス
トマシンメモリ3上に存在する場合は(ステップA5に
て「有り」の場合)、シミュレーションメモリの位置を
ホストマシンメモリ3上の位置に変換し実際のアクセス
を行う(ステップA6)。First, when an access request to the simulation memory is made (step A1 in FIG. 2), the address is converted into a position in the simulation memory by the address conversion unit 2 (step A2 in FIG. 2). Next, the access pattern is extracted and stored from the page accessed by the access pattern storage unit 7 (step A3). In parallel with this, the cache control unit 4 determines whether the simulation memory exists on the host machine memory 3 or on the disk device 6 (step A4). (If "Yes" in step A5), the position of the simulation memory is converted to a position on the host machine memory 3 and an actual access is performed (step A6).
【0021】一方、ホストマシンメモリ3上に存在しな
い場合は(ステップA5にて「無し」の場合)、ディス
ク入出力部5でシミュレーションメモリのアドレスと一
致するディスク装置6上の格納位置に変換する(ステッ
プA7)。さらに、ディスク装置6から該当するアドレ
スのシミュレーションメモリの内容をキャッシュ制御部
4を通してホストマシンメモリ3に移し(ステップA
8)、シミュレーションメモリの位置をホストマシンメ
モリ3上の位置に変換し実際のアクセスを行う(ステッ
プA6)。この動作と並行してページ先読み部8にて、
現在アクセスしているページから次のページを予測し
て、ページの先読みを行う(ステップA9)。On the other hand, if it does not exist in the host machine memory 3 ("NO" in step A5), the disk input / output unit 5 converts it to a storage position on the disk device 6 which matches the address of the simulation memory. (Step A7). Further, the contents of the simulation memory at the corresponding address from the disk device 6 are transferred to the host machine memory 3 through the cache control unit 4 (step A).
8) The position of the simulation memory is converted to a position on the host machine memory 3 and an actual access is performed (step A6). In parallel with this operation, the page prefetch unit 8
The next page is predicted from the currently accessed page, and the page is prefetched (step A9).
【0022】次に、ページの先読み手順の詳細について
説明する。図3を参照すると、アクセスパターン蓄積部
7は、アクセス要求のあったページ番号、そのページへ
のアクセス回数、及びアクセスされたページ間の差を履
歴として取り出す。即ち、前々回のアクセスページ番号
とそのページをアクセスした回数、前回のアクセスペー
ジ番号とそのページをアクセスした回数、今回のアクセ
スページ番号とそのページをアクセスした回数等をペー
ジアクセス履歴として取り出し(図3(A)参照)、か
つアクセスされたページ間の差、即ち前々回のページ番
号と前回のページ番号との差及び前回のページ番号と今
回のページ番号との差等をページアクセス履歴として取
り出す(図3(B)参照)。なお、図3(A)の右側に
はディスク装置6のシミュレーションメモリ空間の構成
が示されている。又、図3(B)は縦軸がアクセスペー
ジ番号、横軸が経過時間を示している。即ち、図3
(B)は一例として前々回のアクセスページ番号が最も
大きく、前回のアクセスページ番号が最も小さく、今回
のアクセスページ番号がその中間であることを示してお
り、経過時間方向の矢印の長さ、即ち経過時間の長さは
各々のページ番号がアクセスされた回数を示している。Next, details of the page prefetching procedure will be described. Referring to FIG. 3, the access pattern storage unit 7 extracts as a history the page number for which an access request has been made, the number of times the page has been accessed, and the difference between the accessed pages. That is, the last access page number and the number of times the page has been accessed, the previous access page number and the number of times the page has been accessed, the current access page number and the number of times the page has been accessed are extracted as the page access history (FIG. 3). (A) and the difference between the accessed pages, that is, the difference between the page number two times before and the previous page number, the difference between the previous page number and the current page number, and the like are extracted as the page access history (FIG. 3 (B)). The configuration of the simulation memory space of the disk device 6 is shown on the right side of FIG. In FIG. 3B, the vertical axis indicates the access page number, and the horizontal axis indicates the elapsed time. That is, FIG.
(B) shows, as an example, that the access page number of the last access page is the largest, the previous access page number is the smallest, and the current access page number is in the middle, and the length of the arrow in the elapsed time direction, that is, The length of the elapsed time indicates the number of times each page number has been accessed.
【0023】さらに、アクセスパターン蓄積部7は、図
4に示すようにアクセス履歴を一定区間毎に分割し、ア
クセスパターン1,2,…として保存する。図4(A)
にはアクセス履歴を一定区間毎アクセスパターン1,
2,…に分割する例が示されており、図4(B)にはパ
ターン1として保存される内容が、図4(C)にはパタ
ーン2として保存される内容が夫々示されている。Further, the access pattern accumulating section 7 divides the access history into fixed sections as shown in FIG. 4, and stores the divided access histories as access patterns 1, 2,. FIG. 4 (A)
In the access history, access pattern 1,
4B, the content stored as pattern 1 is shown in FIG. 4 (B), and the content stored as pattern 2 is shown in FIG. 4 (C).
【0024】又、図5(A)に示すようなアクセスパタ
ーンがアクセスパターン蓄積部7に保存されており、格
納場所が一杯になった場合、使用頻度の少ないものを廃
棄対象として選択し、そこに新たにアクセスパターンを
追加する。即ち、図5(A)に示す例では、パターン3
の使用頻度が少ないので、これを廃棄対象としており、
図5(B)に示すようにこのパターン3の格納場所に更
新パターンを格納している。Further, an access pattern as shown in FIG. 5A is stored in the access pattern storage unit 7, and when the storage location is full, the one which is used less frequently is selected as a discard target. To add a new access pattern. That is, in the example shown in FIG.
Is used less frequently, so this is targeted for disposal.
As shown in FIG. 5B, the update pattern is stored in the storage location of this pattern 3.
【0025】次に、ページ先読み部8の動作を図6及び
図7を用いて詳細に説明する。まず、現在アクセスされ
ているページのアクセス履歴からアクセスパターンを作
成する(図6のステップA11)。図7(B)に現在の
アクセスパターンが示されている。現在のアクセスパタ
ーンの太線部分が現時刻に至るまでのアクセス履歴を示
しており、矢印の先端が現時刻を示している。現時刻か
ら先が予測ページの部分である。Next, the operation of the page prefetch section 8 will be described in detail with reference to FIGS. First, an access pattern is created from the access history of the currently accessed page (step A11 in FIG. 6). FIG. 7B shows the current access pattern. The thick line portion of the current access pattern indicates the access history up to the current time, and the tip of the arrow indicates the current time. The part ahead of the current time is the part of the prediction page.
【0026】次に、その作成したパターンがアクセスパ
ターン蓄積部7で既に蓄積されているアクセスパターン
と一致しているものを探す(図6のステップA12)。
図7(A)に既に蓄積されているアクセスパターンのう
ちの作成パターンと一致している一例を示す。この際、
蓄積されたアクセスパターンの値に幅を設け、その幅の
範囲内であれば一致したと判定する。そして、一致した
場合(図6のステップA13にて「有り」の場合)、探
し出したパターンから、現在のアクセス位置と一致した
箇所をアクセス回数で判定し、次にアクセスするページ
をアクセスパターン(図4(B)及び(C)で示したア
クセスパターン)に保存されているページ番号の差を用
いて次に読込むページのページ番号を求める(図6のス
テップA14)。予測したページを読出す為にホストマ
シンメモリ3の空きを判定し(図6のステップA1
5)、ホストマシンメモリ3に空きが無い場合(図6の
ステップA15にて「無し」の場合)、ホストマシンメ
モリ3からディスク入出力部5を介してディスク装置6
に書戻す(図6のステップA16)。一方、空きが有る
場合(図6のステップA15にて「有り」の場合)、先
読みするページをディスク入出力部5を介してディスク
装置6からホストマシンメモリ3に移す(図6のステッ
プA17)。尚、保存されたアクセスパターンと一致し
ない場合(図6のステップA13にて「無し」の場
合)、現在のアクセス履歴からアクセスパターン蓄積部
7にて、一定の間隔でアクセスパターンとして追加保存
する(図6のステップA18)。Next, a search is made for a pattern whose created pattern matches the access pattern already stored in the access pattern storage section 7 (step A12 in FIG. 6).
FIG. 7A shows an example in which the access pattern matches the creation pattern among the access patterns already stored. On this occasion,
A width is provided for the value of the stored access pattern, and it is determined that they match if the value is within the range of the width. Then, when they match (in the case of “Yes” in step A13 of FIG. 6), a location that matches the current access position is determined by the number of accesses from the found pattern, and the next page to be accessed is determined by the access pattern (FIG. 6). The page number of the next page to be read is obtained using the difference between the page numbers stored in the access patterns 4 (B) and (C) (step A14 in FIG. 6). In order to read the predicted page, the free space of the host machine memory 3 is determined (step A1 in FIG. 6).
5) If there is no free space in the host machine memory 3 (“No” in step A15 in FIG. 6), the disk device 6 is transferred from the host machine memory 3 via the disk input / output unit 5.
(Step A16 in FIG. 6). On the other hand, if there is a vacancy (in the case of “present” in step A15 in FIG. 6), the page to be prefetched is moved from the disk device 6 to the host machine memory 3 via the disk input / output unit 5 (step A17 in FIG. 6). . When the access pattern does not match the stored access pattern (in the case of "none" in step A13 of FIG. 6), the access pattern storage unit 7 additionally stores the access pattern as an access pattern at regular intervals based on the current access history (FIG. 6). Step A18 in FIG. 6).
【0027】次に、具体例について説明する。図8はペ
ージアクセス履歴の一例を示す模式図、図9は保存され
るアクセスパターンの一例を示す模式図、図10はペー
ジ先読みを行うためのページ番号算出の一例を示す模式
図、図11はページ先読みの具体例を示す模式図てあ
る。Next, a specific example will be described. FIG. 8 is a schematic diagram illustrating an example of a page access history, FIG. 9 is a schematic diagram illustrating an example of an access pattern to be stored, FIG. 10 is a schematic diagram illustrating an example of calculating a page number for performing page prefetching, and FIG. It is a schematic diagram which shows the specific example of page prefetch.
【0028】まず、図8に示すように、アドレス変換部
2に対し、シミュレーションメモリ空間の1番目(ペー
ジ番号10)から6番目(ページ番号18)まで順に要
求されたページ番号、ページのアクセス回数、及びペー
ジ番号差分(直前にアクセスされたページ番号と、現在
アクセスしているページ番号との差で、正負の値で保存
される)の値が、アクセスパターン蓄積部7でページア
クセス履歴として保存される。さらに、図9に示すよう
に、アクセスパターン蓄積部7で、アクセス履歴から、
生成された複数のアクセスパターン(図9の例ではパタ
ーン1〜3の3パターン)をパターン毎に分けて保存す
る。First, as shown in FIG. 8, the page number requested from the first (page number 10) to the sixth (page number 18) of the simulation memory space in order from the address translation unit 2 and the number of access times of the page. , And the value of the page number difference (the difference between the previously accessed page number and the currently accessed page number and stored as a positive or negative value) are stored in the access pattern storage unit 7 as a page access history. Is done. Further, as shown in FIG. 9, the access pattern storage unit 7 stores
The generated plurality of access patterns (three patterns of patterns 1 to 3 in the example of FIG. 9) are stored separately for each pattern.
【0029】次に、図10に示すように、ページ先読み
部8で、現在のアクセス履歴と、保存された複数のアク
セスパターンを比較し、アクセスされたページ番号、あ
るいは、ページ番号差分の値が同じか、あるいは、近似
値の値を持つアクセスパターンを検索する。図10
(A)の例では、現在のアクセス履歴のページ番号が1
3と27であり、ページ番号差分が0と14であるが、
この番号に近いページ番号10と25とを有し、かつこ
のページ番号差分に近いページ番号差分を0と15とを
有するパターン1が近似値の値を持つアクセスパターン
として検索されている(図10(B)のパターン1参
照)。Next, as shown in FIG. 10, the page look-ahead section 8 compares the current access history with a plurality of stored access patterns, and finds out the accessed page number or the value of the page number difference. An access pattern having the same or an approximate value is searched. FIG.
In the example of (A), the page number of the current access history is 1
3 and 27, and the page number difference is 0 and 14,
A pattern 1 having page numbers 10 and 25 close to this number and a page number difference close to this page number difference of 0 and 15 is searched as an access pattern having an approximate value (FIG. 10). (See pattern 1 in (B)).
【0030】次に、今後、アクセスされると予測される
ページ番号をアクセスパターン1に保存されているペー
ジ番号差分から算出する。図10(B)のパターン1を
参照すると、ページ番号25の次にはページ番号3が保
存されており、その差分は−22となっている。そこ
で、ページ先読み部8は現在アクセスしている27ペー
ジ(図10(A)参照)に−22を加算し、その加算結
果として得た数値5を次の予測ページとする。同様の計
算により、以後の予測ページとして15,17,20を
得る。Next, a page number predicted to be accessed in the future is calculated from the page number difference stored in the access pattern 1. Referring to pattern 1 in FIG. 10B, page number 3 is stored after page number 25, and the difference is −22. Therefore, the page prefetch unit 8 adds -22 to the currently accessed 27 pages (see FIG. 10A), and sets the numerical value 5 obtained as a result of the addition as the next predicted page. By the same calculation, 15, 17, and 20 are obtained as subsequent prediction pages.
【0031】ここで算出された予測ページ番号(図11
(A)参照)の情報は、図11(B)に示すように、デ
ィスク入出力部5を介して、ディスク装置6上のシミュ
レーションメモリからホストマシンメモリ3にキャッシ
ュ制御部4を介して読込まれる。これらの操作の結果、
現在アクセスしているページの次にアクセスされると予
測されるページを予めホストマシンメモリ3に載せてお
くことができる。The predicted page number calculated here (FIG. 11)
(A) is read from the simulation memory on the disk device 6 to the host machine memory 3 via the cache control unit 4 via the disk input / output unit 5 as shown in FIG. It is. As a result of these operations,
A page predicted to be accessed next to the currently accessed page can be stored in the host machine memory 3 in advance.
【0032】次に、第2の実施の形態について説明す
る。図12は第2の実施の形態の構成図である。なお、
同図において、第1の実施の形態の構成(図1参照)と
同様の構成部分には同一番号を付し、その説明を省略す
る。図12を参照すると、メモリ管理部10は、アドレ
ス変換部2と、ホストマシンメモリ3と,キャッシュ制
御部4と、ディスク入出力部5と、ディスク装置6と、
アクセスパターン蓄積部7と,ページ先読み部8とに加
え、書戻しページ決定部9を含んで構成されている。Next, a second embodiment will be described. FIG. 12 is a configuration diagram of the second embodiment. In addition,
In the figure, the same components as those in the configuration of the first embodiment (see FIG. 1) are denoted by the same reference numerals, and description thereof will be omitted. Referring to FIG. 12, the memory management unit 10 includes an address translation unit 2, a host machine memory 3, a cache control unit 4, a disk input / output unit 5, a disk device 6,
It includes a write-back page determination unit 9 in addition to the access pattern storage unit 7 and the page pre-reading unit 8.
【0033】第2の実施の形態で加えた書戻しページ決
定部9の機能は、ホストマシンメモリ3からディスク装
置6に書戻す際、近々アクセスが起こりうるページをペ
ージ先読み部8で算出したページ番号を基に、その値に
近くないページを選択してディスク入出力部5を介して
ディスク装置6に書戻す、というものである。The function of the write-back page determination unit 9 added in the second embodiment is that when writing back from the host machine memory 3 to the disk device 6, a page which is likely to be accessed soon is calculated by the page prefetch unit 8. Based on the number, a page not close to that value is selected and written back to the disk device 6 via the disk input / output unit 5.
【0034】この書戻しページ決定部9の動作を図13
を参照して詳細説明する。図13は第2の実施の形態の
動作を示すフローチャートである。まず、ディスク装置
6に書戻すページが現在使用しているアクセスパターン
上にあるか否かを検索する(図13のステップA2
1)。そして、アクセスパターン上に無い場合は(図1
3のステップA22にて「無し」の場合)、そのままデ
ィスク入出力部5を使用して該当ページをディスク装置
6に書戻す(図13のステップA25)。一方、アクセ
スパターン上に該当ページが存在した場合(図13のス
テップA22にて「有り」の場合)、ホストマシンメモ
リ3に残す(図13のステップA23)。さらに、他に
書き戻し候補となっているページが有る場合(図13の
ステップA24にて「有り」の場合)、ステップA21
〜ステップA23を繰り返す。一方、書戻し候補が無か
った場合(図13のステップA24にて「無し」の場
合)、ホストマシンメモリ3上の一番古いページをディ
スク装置6に書戻す(図13のステップA26)。この
第2の実施の形態によって、ディスク装置6へのアクセ
スを有効に使用することができる。The operation of the write-back page determination section 9 is shown in FIG.
This will be described in detail with reference to FIG. FIG. 13 is a flowchart showing the operation of the second embodiment. First, a search is performed to determine whether the page to be written back to the disk device 6 is on the currently used access pattern (step A2 in FIG. 13).
1). If the access pattern does not exist (see FIG. 1)
In the case of "No" in step A22 of step 3), the corresponding page is written back to the disk device 6 using the disk input / output unit 5 as it is (step A25 in FIG. 13). On the other hand, when the corresponding page exists on the access pattern (in the case of “present” in step A22 in FIG. 13), the page is left in the host machine memory 3 (step A23 in FIG. 13). Further, when there is another page that is a write-back candidate (in the case of “Yes” in step A24 of FIG. 13), step A21
Step A23 is repeated. On the other hand, when there is no write-back candidate (in the case of “none” in step A24 of FIG. 13), the oldest page on the host machine memory 3 is written back to the disk device 6 (step A26 of FIG. 13). According to the second embodiment, access to the disk device 6 can be effectively used.
【0035】次に、第2の実施の形態の動作の具体例を
図14に示す。図14は書戻しページ決定の具体例を示
す模式図である。同図を参照すると、書戻すページのリ
ストに書戻す候補であるページ番号100、5、60、
20、3、200が登録されている場合(図14(A)
の左側の図参照)、書戻しページ決定部9では、このリ
ストに入っているページ番号と、アクセスパターン蓄積
部7及びページ先読み部8によって作成されたアクセス
パターンから、先読みを行う候補のページと同一か否か
を比較する(図14(B)の上側の図参照)。そして、
同一のページ番号であった場合は、ホストマシンメモリ
3上に保持するリストに登録する様、キャッシュ制御部
4に指示する。図14の例では、書戻しリストに登録さ
れているページ番号5及び20(図14(A)の左側の
図参照)は現在のパターンに予測ページ番号として登録
されているため(図14(B)の上側の図参照)、この
ページ番号5及び20をホストマシンメモリ3上に登録
する(図14(A)の右側の図参照)。Next, a specific example of the operation of the second embodiment is shown in FIG. FIG. 14 is a schematic diagram showing a specific example of the write-back page determination. Referring to the figure, page numbers 100, 5, 60,
When 20, 3, and 200 are registered (FIG. 14A)
), The write-back page determination unit 9 determines the candidate page to be prefetched from the page numbers included in the list and the access patterns created by the access pattern storage unit 7 and the page prefetch unit 8. It is compared whether they are the same (see the upper diagram in FIG. 14B). And
If the page numbers are the same, the cache control unit 4 is instructed to register the same page number in the list held in the host machine memory 3. In the example of FIG. 14, the page numbers 5 and 20 registered in the write-back list (see the diagram on the left side of FIG. 14A) are registered as predicted page numbers in the current pattern (FIG. 14B ), The page numbers 5 and 20 are registered in the host machine memory 3 (see the figure on the right side of FIG. 14A).
【0036】一方、先読みを行う候補のページと同一で
無い場合は、そのまま書戻すリスト上に残す。又、ホス
トマシンメモリ3の保持リストが一杯になった場合は、
最も古いページ(例えば、図14(A)の右側の図にて
ページ番号13と30)を書出しページのリストに加
え、ホストマシンメモリ3からディスク装置6へ書戻
す。On the other hand, if the page is not the same as the candidate page to be pre-read, the page is left as it is on the list to be rewritten. Also, when the holding list of the host machine memory 3 is full,
The oldest page (for example, page numbers 13 and 30 in the diagram on the right side of FIG. 14A) is added to the list of pages to be written out, and the data is written back from the host machine memory 3 to the disk device 6.
【0037】次に、第3の実施の形態について説明す
る。第3の実施の形態はメモリ管理プログラムを記録し
た記録媒体に関するものである。図15は記録媒体及び
この記録媒体を駆動する駆動装置の一例の構成図であ
る。同図を参照すると、駆動装置はCPU(Centr
al Processing Unit)21と、入力
部22と、記憶部23とを含んで構成される。そして、
CPU21は前述のメモリ管理装置1及び10を制御す
る。一方、記録媒体24には前述の図2,図6,図13
のフローチャートに示される処理を実行するメモリ管理
プログラムが記録されている。Next, a third embodiment will be described. The third embodiment relates to a recording medium on which a memory management program is recorded. FIG. 15 is a configuration diagram of an example of a recording medium and a driving device that drives the recording medium. Referring to FIG. 1, the driving device is a CPU (Centr).
al Processing Unit) 21, an input unit 22, and a storage unit 23. And
The CPU 21 controls the memory management devices 1 and 10 described above. On the other hand, the recording medium 24 has the above-described FIGS.
The memory management program for executing the processing shown in the flowchart of FIG.
【0038】次に、この駆動装置の動作について説明す
る。まず、入力部22よりプログラムのロード命令がC
PU21に入力されると、CPU21は記録媒体24に
記録されたメモリ管理プログラムを読込み、その読込ん
だメモリ管理プログラムを記憶部23に書込む。次に、
入力部22よりプログラムの実行命令がCPU21に入
力されると、CPU21は記憶部23よりメモリ管理プ
ログラムを読込み、そのプログラムに従ってメモリ管理
装置1及び10を制御する。その制御の内容については
既に説明済みであるため説明を省略する。Next, the operation of the driving device will be described. First, a program load instruction is input from the input unit 22 to C
When input to the PU 21, the CPU 21 reads the memory management program recorded on the recording medium 24 and writes the read memory management program into the storage unit 23. next,
When a program execution instruction is input to the CPU 21 from the input unit 22, the CPU 21 reads a memory management program from the storage unit 23 and controls the memory management devices 1 and 10 according to the program. Since the contents of the control have already been described, the description is omitted.
【0039】[0039]
【発明の効果】本発明による第1の発明によれば、第1
記憶手段と第2記憶手段とを含み、前記第2記憶手段に
対するアクセス要求に応じて前記第2記憶手段に記憶さ
れた情報のうちの所定情報を前記第1記憶手段に転送
し、この前記第1記憶手段に転送された情報に基づいて
情報処理を行わせるメモリ管理装置であって、そのメモ
リ管理装置は前記第2記憶手段に対しアクセス要求のあ
ったアドレス及びアクセス回数の履歴を蓄積する履歴蓄
積手段と、前記第2記憶手段に対する最新のアクセス要
求から所定数溯ったアクセス要求までのアクセス履歴と
前記履歴蓄積手段に蓄積されたアドレス及びアクセス回
数の履歴とから前記第2記憶手段に対し次回アクセス要
求されると予測されるアドレスを算出するアドレス先読
み手段とを含むため、近い将来アクセスするページの予
測が可能で、かつディスク装置への無駄な書出し及び読
込みを防止することが可能となる。According to the first aspect of the present invention, the first aspect
A second storage unit configured to transfer predetermined information of information stored in the second storage unit to the first storage unit in response to an access request to the second storage unit; 1. A memory management device for performing information processing based on information transferred to one storage means, wherein the memory management device stores a history of an address for which an access request has been made to the second storage means and a history of the number of accesses. The storage means, the access history from the latest access request to the second storage means to an access request which has been advanced a predetermined number of times and the history of the addresses and access counts stored in the history storage means, Address prefetch means for calculating an address predicted to be requested to be accessed, so that a page to be accessed in the near future can be predicted, and It is possible to prevent unnecessary writing and reading of the disk device.
【0040】具体的には、第1の効果は、シミュレーシ
ョン速度の向上が図れることができることにある。その
理由は、シミュレートメモリを格納するディスク装置か
らキャッシュメモリ上への先読みを、実際のシミュレー
ションと並行して行うことにより、ディスク装置からホ
ストマシンのメモリへの転送待ち時間を短縮し、シミュ
レーションの中断を少なくできるからである。Specifically, the first effect is that the simulation speed can be improved. The reason for this is that the read-ahead from the disk device that stores the simulated memory to the cache memory is performed in parallel with the actual simulation, thereby reducing the transfer waiting time from the disk device to the memory of the host machine and reducing the simulation time. This is because interruption can be reduced.
【0041】第2の効果は、シミュレーション対象のソ
フトウェアがどの様に動作しているかを把握できること
にある。その理由は、アクセスしたページのパターンが
保存されていることから、シミュレーション対象のソフ
トウェアの実行履歴とシミュレートメモリへのアクセス
履歴を取り出すことができるからである。これによっ
て、シミュレーション対象のソフトウェアの一定区間で
の動きをトレースすることが可能となる。The second effect is that it is possible to grasp how the software to be simulated operates. The reason is that since the pattern of the accessed page is stored, the execution history of the software to be simulated and the access history to the simulated memory can be extracted. This makes it possible to trace the movement of the software to be simulated in a certain section.
【0042】第3の効果は、ディスク装置へのアクセス
を有効に使用することが可能となることにある。その理
由は、近々アクセスが起こり得るページを避けてディス
ク装置に書戻しを行うためである。A third effect is that access to the disk device can be used effectively. The reason for this is to write back to the disk device while avoiding pages that may be accessed shortly.
【0043】又、本発明による第2及び第3の発明にお
いても上述した第1の発明と同様の効果を奏する。Further, the second and third inventions according to the present invention have the same effect as the first invention.
【図1】本発明に係るメモリ管理装置の一例の構成図で
ある。FIG. 1 is a configuration diagram of an example of a memory management device according to the present invention.
【図2】メモリ管理装置の動作を示すフローチャートで
ある。FIG. 2 is a flowchart illustrating an operation of the memory management device.
【図3】アクセスパタンの抽出を説明するための模式図
である。FIG. 3 is a schematic diagram for explaining extraction of an access pattern.
【図4】アクセスパタンの保存を説明するための模式図
である。FIG. 4 is a schematic diagram for explaining storage of an access pattern.
【図5】アクセスパタンの更新を説明するための模式図
である。FIG. 5 is a schematic diagram for explaining updating of an access pattern.
【図6】メモリ管理装置の動作を示すフローチャートで
ある。FIG. 6 is a flowchart illustrating an operation of the memory management device.
【図7】アクセスパタンの検索を説明するための模式図
である。FIG. 7 is a schematic diagram for explaining search of an access pattern.
【図8】ページアクセス履歴の一例を示す模式図であ
る。FIG. 8 is a schematic diagram illustrating an example of a page access history.
【図9】保存されるアクセスパターンの一例を示す模式
図である。FIG. 9 is a schematic diagram showing an example of an access pattern to be stored.
【図10】ページ先読みを行うためのページ番号算出の
一例を示す模式図である。FIG. 10 is a schematic diagram illustrating an example of calculating a page number for performing page prefetching.
【図11】ページ先読みの具体例を示す模式図てある。FIG. 11 is a schematic diagram showing a specific example of page prefetching.
【図12】第2の実施の形態の構成図である。FIG. 12 is a configuration diagram of a second embodiment.
【図13】第2の実施の形態の動作を示すフローチャー
トである。FIG. 13 is a flowchart showing an operation of the second embodiment.
【図14】書戻しページ決定の具体例を示す模式図であ
る。FIG. 14 is a schematic diagram showing a specific example of a write-back page determination.
【図15】記録媒体及びこの記録媒体を駆動する駆動装
置の一例の構成図である。FIG. 15 is a configuration diagram of an example of a recording medium and a driving device that drives the recording medium.
【図16】従来のメモリ管理装置の一例の構成図であ
る。FIG. 16 is a configuration diagram of an example of a conventional memory management device.
1 メモリ管理装置 2 アドレス変換部 3 ホストマシンメモリ 4 キャッシュ制御部 5 ディスク入出力部 6 ディスク装置 7 アクセスパターン蓄積部 8 ページ先読み部 9 書戻しページ決定部 24 記録媒体 REFERENCE SIGNS LIST 1 memory management device 2 address conversion unit 3 host machine memory 4 cache control unit 5 disk input / output unit 6 disk device 7 access pattern storage unit 8 page read-ahead unit 9 write-back page determination unit 24 recording medium
Claims (27)
前記第2記憶手段に対するアクセス要求に応じて前記第
2記憶手段に記憶された情報のうちの所定情報を前記第
1記憶手段に転送し、この前記第1記憶手段に転送され
た情報に基づいて情報処理を行わせるメモリ管理装置で
あって、 前記第2記憶手段に対しアクセス要求のあったアドレス
及びアクセス回数の履歴を蓄積する履歴蓄積手段と、前
記第2記憶手段に対する最新のアクセス要求から所定数
溯ったアクセス要求までのアクセス履歴と前記履歴蓄積
手段に蓄積されたアドレス及びアクセス回数の履歴とか
ら前記第2記憶手段に対し次回アクセス要求されると予
測されるアドレスを算出するアドレス先読み手段とを含
むことを特徴とするメモリ管理装置。A first storage unit and a second storage unit;
In response to an access request to the second storage means, predetermined information among information stored in the second storage means is transferred to the first storage means, and based on the information transferred to the first storage means, A memory management device for performing information processing, wherein a history accumulating unit accumulating a history of an address and an access count of an access request to the second storage unit; Address prefetch means for calculating an address predicted to be requested next time to the second storage means from an access history up to a number of access requests up to the previous number and a history of addresses and access times stored in the history storage means; A memory management device comprising:
された予測アドレスに対応する情報を前記第2記憶手段
より読出し、その読出した情報を前記第1記憶手段に書
込む予測情報転送手段を含むことを特徴とする請求項1
記載のメモリ管理装置。And a prediction information transfer means for reading information corresponding to the predicted address calculated by the address prefetch means from the second storage means and writing the read information to the first storage means. Claim 1 characterized by the following:
A memory management device as described.
には今回のアドレスと前回のアドレスとのアドレスの差
分情報が含まれることを特徴とする請求項1又は2記載
のメモリ管理装置。3. The memory management device according to claim 1, wherein the address stored in said history storage means includes address difference information between a current address and a previous address.
及びアクセス回数の履歴は一定周期ごとに分割して蓄積
され、前記アドレス先読み手段は前記分割された履歴と
前記第2記憶手段に対する前記アクセス履歴とを照合し
予測アドレスを算出することを特徴とする請求項1乃至
3いずれかに記載のメモリ管理装置。4. The history of addresses and the number of accesses stored in the history storage means is divided and stored at regular intervals, and the address prefetching means stores the divided history and the access history to the second storage means. 4. The memory management device according to claim 1, wherein a predicted address is calculated by collating the memory address.
り前記第2記憶手段に対する前記アクセス履歴と一致す
る履歴を前記履歴蓄積手段にて分割された履歴の中から
抽出することを特徴とする請求項4記載のメモリ管理装
置。5. The apparatus according to claim 4, wherein the address prefetching means extracts a history that matches the access history to the second storage means from the histories divided by the history accumulating means by the collation. A memory management device as described.
手段にて分割された履歴のうち前記第2記憶手段に対す
る前記アクセス履歴と一致する履歴に含まれる差分情報
から予測アドレスを算出することを特徴とする請求項4
又は5記載のメモリ管理装置。6. The address prefetching unit calculates a predicted address from difference information included in a history that matches the access history to the second storage unit among the histories divided by the history accumulation unit. Claim 4
Or the memory management device according to 5.
報のうちどのアドレスの情報を前記第2記憶手段に書戻
すかを決定する書戻しアドレス決定手段を含み、 前記書戻しアドレス決定手段は前記アドレス先読み手段
にて算出された予測アドレスに該当しないアドレスを書
戻しアドレスとして選択することを特徴とする請求項1
乃至6いずれかに記載のメモリ管理装置。7. A write-back address determining means for determining which address information of the information written in said first storage means is to be written back to said second storage means, Selecting an address which does not correspond to the predicted address calculated by the address prefetch means as a write-back address.
7. The memory management device according to any one of claims 6 to 6.
ことを特徴とする請求項1乃至7いずれかに記載のメモ
リ管理装置。8. The memory management device according to claim 1, wherein the address is set for each page.
フトウエアをシミュレート実行するための情報であるこ
とを特徴とする請求項1乃至8いずれかに記載のメモリ
管理装置。9. The memory management device according to claim 1, wherein the information stored in said second storage means is information for simulating and executing software.
み、前記第2記憶手段に対するアクセス要求に応じて前
記第2記憶手段に記憶された情報のうちの所定情報を前
記第1記憶手段に転送し、この前記第1記憶手段に転送
された情報に基づいて情報処理を行わせるメモリ管理装
置におけるメモリ管理方法であって、 前記第2記憶手段に対しアクセス要求のあったアドレス
及びアクセス回数の履歴を蓄積する履歴蓄積ステップ
と、前記第2記憶手段に対する最新のアクセス要求から
所定数溯ったアクセス要求までのアクセス履歴と前記履
歴蓄積手段に蓄積されたアドレス及びアクセス回数の履
歴とから前記第2記憶手段に対し次回アクセス要求され
ると予測されるアドレスを算出するアドレス先読みステ
ップとを含むことを特徴とするメモリ管理方法。10. A storage device comprising: a first storage unit and a second storage unit, wherein predetermined information of information stored in the second storage unit in response to an access request to the second storage unit is stored in the first storage unit. A memory management method in a memory management device for performing information processing based on the information transferred to the first storage means, wherein an address and an access count for which an access request has been made to the second storage means A history accumulating step of accumulating the history of the second storage means; and an access history from the latest access request to the second storage means to an access request that goes back a predetermined number of times and a history of addresses and access counts accumulated in the history accumulation means. Address prefetching step of calculating an address predicted to be requested next time for access to the storage means. Method.
て算出された予測アドレスに対応する情報を前記第2記
憶手段より読出し、その読出した情報を前記第1記憶手
段に書込む予測情報転送ステップを含むことを特徴とす
る請求項10記載のメモリ管理方法。11. A prediction information transfer step of reading information corresponding to the predicted address calculated in the address prefetch step from the second storage means and writing the read information to the first storage means. 11. The memory management method according to claim 10, wherein:
アドレスには今回のアドレスと前回のアドレスとのアド
レスの差分情報が含まれることを特徴とする請求項10
又は11記載のメモリ管理方法。12. An address stored in the history storing step includes address difference information between a current address and a previous address.
Or the memory management method according to 11.
アドレス及びアクセス回数の履歴は一定周期ごとに分割
して蓄積され、前記アドレス先読みステップでは前記分
割された履歴と前記第2記憶手段に対する前記アクセス
履歴とが照合され予測アドレスが算出されることを特徴
とする請求項10乃至12いずれかに記載のメモリ管理
方法。13. The history of addresses and access counts accumulated in the history accumulation step is divided and accumulated at regular intervals, and in the address prefetching step, the divided history and the access to the second storage means are stored. 13. The memory management method according to claim 10, wherein a predicted address is calculated by collating with a history.
照合により前記第2記憶手段に対する前記アクセス履歴
と一致する履歴が前記履歴蓄積ステップにて分割された
履歴の中から抽出されることを特徴とする請求項13記
載のメモリ管理方法。14. The method according to claim 1, wherein in the address prefetching step, a history that matches the access history to the second storage means is extracted from the history divided in the history accumulation step by the collation. 14. The memory management method according to claim 13.
履歴蓄積ステップにて分割された履歴のうち前記第2記
憶手段に対する前記アクセス履歴と一致する履歴に含ま
れる差分情報から予測アドレスが算出されることを特徴
とする請求項13又は14記載のメモリ管理方法。15. In the address prefetching step, a predicted address is calculated from difference information included in a history that matches the access history to the second storage unit among the histories divided in the history accumulation step. The memory management method according to claim 13 or 14, wherein
情報のうちどのアドレスの情報を前記第2記憶手段に書
戻すかを決定する書戻しアドレス決定ステップを含み、 前記書戻しアドレス決定ステップでは前記アドレス先読
みステップにて算出された予測アドレスに該当しないア
ドレスが書戻しアドレスとして選択されることを特徴と
する請求項10乃至15いずれかに記載のメモリ管理方
法。16. A write-back address determining step of determining which address information of the information written in said first storage means is to be written back to said second storage means, 16. The memory management method according to claim 10, wherein an address that does not correspond to the predicted address calculated in the address prefetching step is selected as a write-back address.
ることを特徴とする請求項10乃至16いずれかに記載
のメモリ管理方法。17. The memory management method according to claim 10, wherein the address is set for each page.
ソフトウエアをシミュレート実行するための情報である
ことを特徴とする請求項10乃至17いずれかに記載の
メモリ管理方法。18. The memory management method according to claim 10, wherein the information stored in said second storage means is information for simulating and executing software.
み、前記第2記憶手段に対するアクセス要求に応じて前
記第2記憶手段に記憶された情報のうちの所定情報を前
記第1記憶手段に転送し、この前記第1記憶手段に転送
された情報に基づいて情報処理を行わせるメモリ管理装
置に用いられるメモリ管理プログラムを記録した記録媒
体であって、 前記第2記憶手段に対しアクセス要求のあったアドレス
及びアクセス回数の履歴を蓄積する履歴蓄積ステップ
と、前記第2記憶手段に対する最新のアクセス要求から
所定数溯ったアクセス要求までのアクセス履歴と前記履
歴蓄積手段に蓄積されたアドレス及びアクセス回数の履
歴とから前記第2記憶手段に対し次回アクセス要求され
ると予測されるアドレスを算出するアドレス先読みステ
ップとを含むメモリ管理プログラムを記録した記録媒
体。19. A storage device, comprising: a first storage unit and a second storage unit, wherein predetermined information of information stored in the second storage unit in response to an access request to the second storage unit is stored in the first storage unit. And a memory management program for use in a memory management device for performing information processing based on the information transferred to the first storage means, wherein an access request is issued to the second storage means. A history storing step of storing a history of the addresses and the number of times of access, a history of access from the latest access request to the second storage means to an access request going back a predetermined number, and the addresses and accesses stored in the history storage means. An address prefetching step of calculating an address predicted to be requested to access the second storage means next time from the history of the number of times. Recording medium recording a non-memory management program.
て算出された予測アドレスに対応する情報を前記第2記
憶手段より読出し、その読出した情報を前記第1記憶手
段に書込む予測情報転送ステップを含むことを特徴とす
る請求項19記載の記録媒体。20. A method according to claim 20, further comprising the step of reading information corresponding to the predicted address calculated in said address prefetching step from said second storage means and writing the read information into said first storage means. 20. The recording medium according to claim 19, wherein:
アドレスには今回のアドレスと前回のアドレスとのアド
レスの差分情報が含まれることを特徴とする請求項19
又は20記載の記録媒体。21. The address stored in the history storing step includes information on a difference between a current address and a previous address.
Or the recording medium of 20.
アドレス及びアクセス回数の履歴は一定周期ごとに分割
して蓄積され、前記アドレス先読みステップでは前記分
割された履歴と前記第2記憶手段に対する前記アクセス
履歴とが照合され予測アドレスが算出されることを特徴
とする請求項19乃至21いずれかに記載の記録媒体。22. The history of addresses and access counts accumulated in the history accumulation step is divided and accumulated at regular intervals, and in the address prefetching step, the divided history and the access to the second storage means are stored. 22. The recording medium according to claim 19, wherein a predicted address is calculated by collating with a history.
照合により前記第2記憶手段に対する前記アクセス履歴
と一致する履歴が前記履歴蓄積ステップにて分割された
履歴の中から抽出されることを特徴とする請求項22記
載の記録媒体。23. The apparatus according to claim 23, wherein in the address prefetching step, a history matching the access history to the second storage means is extracted from the history divided in the history accumulation step by the collation. 23. The recording medium according to 22.
履歴蓄積ステップにて分割された履歴のうち前記第2記
憶手段に対する前記アクセス履歴と一致する履歴に含ま
れる差分情報から予測アドレスが算出されることを特徴
とする請求項22又は23記載の記録媒体。24. The address prefetching step, wherein a predicted address is calculated from difference information included in a history that matches the access history to the second storage unit among the histories divided in the history accumulation step. 24. The recording medium according to claim 22, wherein:
情報のうちどのアドレスの情報を前記第2記憶手段に書
戻すかを決定する書戻しアドレス決定ステップを含み、 前記書戻しアドレス決定ステップでは前記アドレス先読
みステップにて算出された予測アドレスに該当しないア
ドレスが書戻しアドレスとして選択されることを特徴と
する請求項19乃至24いずれかに記載の記録媒体。25. A write-back address determining step of determining which address information of the information written in the first storage means is to be written back to the second storage means, 25. The recording medium according to claim 19, wherein an address that does not correspond to the predicted address calculated in the address prefetching step is selected as a write-back address.
ることを特徴とする請求項19乃至25いずれかに記載
の記録媒体。26. The recording medium according to claim 19, wherein said address is set in page units.
ソフトウエアをシミュレート実行するための情報である
ことを特徴とする請求項19乃至26いずれかに記載の
記録媒体。27. The recording medium according to claim 19, wherein the information stored in said second storage means is information for simulating and executing software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29753299A JP3555523B2 (en) | 1999-10-20 | 1999-10-20 | Memory management device, management method, and recording medium recording management program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29753299A JP3555523B2 (en) | 1999-10-20 | 1999-10-20 | Memory management device, management method, and recording medium recording management program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001117818A true JP2001117818A (en) | 2001-04-27 |
JP3555523B2 JP3555523B2 (en) | 2004-08-18 |
Family
ID=17847763
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP29753299A Expired - Fee Related JP3555523B2 (en) | 1999-10-20 | 1999-10-20 | Memory management device, management method, and recording medium recording management program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3555523B2 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008226025A (en) * | 2007-03-14 | 2008-09-25 | Fujitsu Ltd | Prefetch processor, prefetch processing program and prefetch processing method |
JP2010055458A (en) * | 2008-08-29 | 2010-03-11 | Fujitsu Ltd | Cache control method and cache controller |
CN102123168A (en) * | 2011-01-14 | 2011-07-13 | 广州市动景计算机科技有限公司 | Web page pre-reading and integration method and system based on relay server |
JP2017091512A (en) * | 2015-11-06 | 2017-05-25 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Method, system, and program for reducing reactivation time of services |
CN106897297A (en) * | 2015-12-17 | 2017-06-27 | 北京国双科技有限公司 | The determination method and device of access path between the column of website |
-
1999
- 1999-10-20 JP JP29753299A patent/JP3555523B2/en not_active Expired - Fee Related
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008226025A (en) * | 2007-03-14 | 2008-09-25 | Fujitsu Ltd | Prefetch processor, prefetch processing program and prefetch processing method |
JP2010055458A (en) * | 2008-08-29 | 2010-03-11 | Fujitsu Ltd | Cache control method and cache controller |
CN102123168A (en) * | 2011-01-14 | 2011-07-13 | 广州市动景计算机科技有限公司 | Web page pre-reading and integration method and system based on relay server |
JP2017091512A (en) * | 2015-11-06 | 2017-05-25 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Method, system, and program for reducing reactivation time of services |
US10834228B2 (en) | 2015-11-06 | 2020-11-10 | International Business Machines Corporation | Method to reduce reactivation time of cloud based services |
CN106897297A (en) * | 2015-12-17 | 2017-06-27 | 北京国双科技有限公司 | The determination method and device of access path between the column of website |
CN106897297B (en) * | 2015-12-17 | 2019-12-24 | 北京国双科技有限公司 | Method and device for determining access path between website columns |
Also Published As
Publication number | Publication date |
---|---|
JP3555523B2 (en) | 2004-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3522527B2 (en) | I / O control device and I / O control method | |
US7203815B2 (en) | Multi-level page cache for enhanced file system performance via read ahead | |
US7493450B2 (en) | Method of triggering read cache pre-fetch to increase host read throughput | |
JP4692678B2 (en) | Information processing device | |
JP4060506B2 (en) | Disk controller | |
US7117309B2 (en) | Method of detecting sequential workloads to increase host read throughput | |
US7383392B2 (en) | Performing read-ahead operation for a direct input/output request | |
JP3183993B2 (en) | Disk control system | |
EP2329361B1 (en) | Aggregation of write traffic to a data store | |
JPH03164840A (en) | Method and system for optimizing data caching in disk-base computer system | |
KR20080084948A (en) | Optimizing write and wear performance for a memory | |
JP2009539168A (en) | Predictive data loader | |
JP2007304691A (en) | Disk device and read-ahead control method for rotary type memory device | |
JP2007011523A (en) | Data look-ahead method and computer system | |
JP3555523B2 (en) | Memory management device, management method, and recording medium recording management program | |
JP3469383B2 (en) | Data prefetch control method and information processing apparatus | |
JPH08263380A (en) | Disk cache control system | |
JP4104283B2 (en) | Storage subsystem and information processing system | |
JP7170093B2 (en) | Improved read-ahead capabilities for storage devices | |
JP4506292B2 (en) | Cache control method, data processing system, and processing program therefor | |
JP5849268B1 (en) | Read transfer control method and auxiliary storage device controller | |
CN114450668A (en) | Circuit and method | |
JP3435176B2 (en) | Magnetic disk drive | |
JPH10124387A (en) | Unit and method for cache control | |
Chang et al. | A New Readahead Framework for SSD-based Caching Storage in IoT Systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040203 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040405 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040420 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040503 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090521 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100521 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110521 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |