JPS63247821A - Ram disk controller - Google Patents
Ram disk controllerInfo
- Publication number
- JPS63247821A JPS63247821A JP7966087A JP7966087A JPS63247821A JP S63247821 A JPS63247821 A JP S63247821A JP 7966087 A JP7966087 A JP 7966087A JP 7966087 A JP7966087 A JP 7966087A JP S63247821 A JPS63247821 A JP S63247821A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- task
- image area
- disk image
- data
- 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
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000001994 activation Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、磁気ディスク装置を有さない計算機システム
、特にRAMディスク制御装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer system without a magnetic disk device, and particularly to a RAM disk control device.
従来のRAMディスク装置は、「日経バイト」(198
6年、4第74頁から第81頁)に記載されている様に
、RAMディスク内のタスクや共有デ、−夕などはCP
Uから直接アクセス不可能であり、機能上、RAMディ
スクと主記憶装置は完全に分離している。RAMディス
ク内のタスクや共有データをアクセスする場合には、タ
スク、共有データをRAMデ6イスクから主記憶に転送
する処理が必要であり、そのための専用ドライバプログ
ラムが必要である。The conventional RAM disk device is "Nikkei Byte" (198
6, 4, pages 74 to 81), tasks and shared data in the RAM disk are stored in the CP.
It cannot be accessed directly from U, and the RAM disk and main storage are completely separate in function. When accessing the tasks and shared data in the RAM disk, it is necessary to transfer the tasks and shared data from the RAM disk to the main memory, and a dedicated driver program is required for this purpose.
また、ユニックス・ユーザーズマニュアル リリース3
、0 (1980、6)の第4−1頁(UNIX U
ser’sManual Re1ease 3.0(J
une 1980) PP4−1)にソフト的に主記憶
をコアイメージもリード・ライト可能な機能についての
記載がある。但しこのシステムは磁気ディスクを有する
。Also, Unix User's Manual Release 3
, 0 (1980, 6), pages 4-1 (UNIX U
ser'sManual Release 3.0(J
1980) PP4-1) describes a function that allows software to read and write the main memory and the core image. However, this system has a magnetic disk.
上記従来技術のRAMディスク方式はメモリの使用効率
とシステムのオーバヘッドについて配慮がなされていな
い。なぜならタスクを実行する場合や共有データを使用
する場合には、ディスクイメージ領域から、CPUから
直接可能な主記憶上へ、タスクや共有データを転送する
処理が必要でありシステムのオーバヘッドを増大させ、
さらにタスクや共有データは、ディスクイメージ領域と
主記憶の両方に存在しなければならず、2倍のメモリを
使用しメモリの使用効率を下げる。The conventional RAM disk system described above does not take into account memory usage efficiency and system overhead. This is because when executing a task or using shared data, it is necessary to transfer the task or shared data from the disk image area to the main memory, which can be directly accessed from the CPU, which increases system overhead.
Furthermore, tasks and shared data must exist in both the disk image area and main memory, which uses twice as much memory and reduces memory usage efficiency.
本発明の目的はメモリの使用効率の向上とシステムオー
バヘッドの削減したRAMディスク制御装置を提供する
にある。An object of the present invention is to provide a RAM disk control device that improves memory usage efficiency and reduces system overhead.
本発明は、主記憶上のディスクイメージ領域内のタスク
や共有データ等をCPUから直接アクセス可能とする機
能をO8に持たせることとした。In the present invention, the O8 is provided with a function that allows the CPU to directly access tasks, shared data, etc. in the disk image area on the main memory.
即ち、本発明では、CPUから直接アクセス可能な主記
憶上に従来の磁気ディスクと同様の手段でリード・ライ
ト可能なディスクイメージ領域を設け、ディスクイメー
ジ領域の先頭アドレスとサイズを記憶するテーブルとそ
の領域に登録されたタスクや共有データなどのディスク
イメージ領域内の位置を記憶するテーブルを持たせた。That is, in the present invention, a readable/writable disk image area is provided on the main memory that can be directly accessed by the CPU using the same means as a conventional magnetic disk, and a table for storing the start address and size of the disk image area and the area are provided. It has a table that stores the positions in the disk image area of registered tasks and shared data.
本発明によれば、タスクや共有データなどがCPUから
直接アクセス可能となり、磁気ディスクレスシステムに
おいて、タスクを実行するため、または共有メモリを参
照するために生じるタスク。According to the present invention, tasks, shared data, etc. can be directly accessed by the CPU, and tasks are generated to execute tasks or refer to shared memory in a magnetic diskless system.
共有メモリの転送時間を最小化し、メモリの使用効率の
向上を達成した。そして主記憶上に確保された磁気ディ
スクイメージ領域は、磁気ディスクと同様の手段でリー
ド・ライト可能であり、CPUから直接アクセス可能で
ある。それにより、タスクの実行時、共有データ使用時
の主記憶のメモリ使用効率は上がり、タスクスイッチン
グの際のディスクイメージ領域、主記憶間の転送時間が
削減される。The shared memory transfer time was minimized and memory usage efficiency was improved. The magnetic disk image area secured on the main memory can be read and written by the same means as a magnetic disk, and can be directly accessed by the CPU. This improves the memory usage efficiency of the main memory when executing tasks and using shared data, and reduces the transfer time between the disk image area and the main memory during task switching.
以下、本発明の一実施例を説明する。 An embodiment of the present invention will be described below.
第2図は1本発明の適用されるシステム構成を示す、中
央処理装置1 (CPU)21は主記憶装置J22とメ
モリバス23に接続され、システムバス23を介して各
入出力装置24を接続が可能である・O8(オペレーテ
ィングシステム)及びタスク、共有データなどは、入出
力袋[124よりシステムバス23を通して主記憶装置
i22に転送される。ディスクイメージ領域は、主記憶
装置22内、に存在する。FIG. 2 shows a system configuration to which the present invention is applied. A central processing unit 1 (CPU) 21 is connected to a main storage device J22 and a memory bus 23, and each input/output device 24 is connected via the system bus 23. O8 (operating system), tasks, shared data, etc. are transferred from the input/output bag [124] to the main storage device i22 through the system bus 23. The disk image area exists within the main storage device 22.
第1図は、RAMディスク制御方式の概略を主記憶の使
用状況に視点をおいて示している。FIG. 1 shows an outline of the RAM disk control method, focusing on the usage status of the main memory.
第4図は、各関連テーブルを示す。FIG. 4 shows each related table.
第4図(イ)のディスクイメージ領域構成テーブルは、
ディスクイメージ領域1つに対し1個存在する。The disk image area configuration table in Figure 4 (a) is
One exists for each disk image area.
第4図(ロ)のディスクイメージ領域管理テーブルは、
ディスクイメージ領域内のタスク、共有データなど1つ
に対し1個存在する。第4図(ハ)のヘッダ部はディス
クイメージ領域内のテキスト部の先頭に存在しタスク毎
に1個存在する。第4図(ニ)のPCBはタスク毎に1
個存在し、ディスクイメージのアドレス値を持つ、第4
図(ホ)のタスクアドレス管理テーブルは、タスク毎に
1個持ち、各要素の先頭アドレスとサイズを持つ。The disk image area management table in Figure 4 (b) is
There is one for each task, shared data, etc. in the disk image area. The header section shown in FIG. 4(c) exists at the beginning of the text section within the disk image area, and one header section exists for each task. The PCB in Figure 4 (d) is one for each task.
The fourth one exists and has the address value of the disk image.
The task address management table in Figure (E) has one for each task, and has the start address and size of each element.
第5図は、主記憶使用管理テーブルを示す、このテーブ
ルは主記憶内の一定の大きさの領域の使用・未使用をフ
ラグで管理している。FIG. 5 shows a main memory usage management table. This table manages the use/unuse of a certain size area in the main memory using flags.
第6図(イ)、(ロ)は、タスク・共有データ登録処理
の流れ図、第7図は、タスク起動処理の流れ図を示す。6(a) and 6(b) show a flowchart of task/shared data registration processing, and FIG. 7 shows a flowchart of task activation processing.
第1図(イ)のディスクイメージ定義済の図は、主記憶
22上にディスクイメージ領域3を確保した後の状態を
示している。主記憶22はO8などが存在する固定割付
領域2とディスクイメージ領域3.可変割付領域4の3
つに分割される。ディスクイメージ領域5の先頭アドレ
スは、第4図(イ)に示すディスクイメージ領域構成テ
ーブルT□内に格納されている。The disk image defined diagram in FIG. 1(A) shows the state after the disk image area 3 has been secured on the main memory 22. The main memory 22 includes a fixed allocation area 2 where O8 etc. exist, a disk image area 3. Variable allocation area 4-3
divided into. The start address of the disc image area 5 is stored in the disc image area configuration table T□ shown in FIG. 4(a).
第1図(ロ)はタスク・共有データが登録後の主記憶の
状態を示している。タスクや共有データは、第4図(ロ
)のディスクイメージ領域管理テーブルT2の検索より
得られた空きエリアへ、デイスクイメージ領域のドライ
バプログラムを通して、登録される。イメージ領域3内
の6はタスクのテキスト部、7はタスクの初期値有りデ
ータ、8は共有データを示す。この時点で共有データ8
は、ディスクイメージ領域管理テーブルT2に記憶され
たアドレスを参照することにより、アクセス可能である
。FIG. 1(b) shows the state of the main memory after the task/shared data is registered. Tasks and shared data are registered in the free area obtained by searching the disk image area management table T2 in FIG. 4(b) through the disk image area driver program. In the image area 3, 6 indicates the text part of the task, 7 indicates data with an initial value of the task, and 8 indicates shared data. At this point, shared data 8
can be accessed by referring to the address stored in the disk image area management table T2.
第1図(ハ)はタスク実行時の主記憶の状態を示してい
る。9はタスクの初期有り・無しデータ部を示し、10
はタスクのスタック部を示している。タスクの構成要素
はテキスト部、データ部。FIG. 1(c) shows the state of the main memory when a task is executed. 9 indicates the initial presence/absence data part of the task; 10
indicates the stack part of the task. The components of a task are a text part and a data part.
スタック部の3つである。ディスクイメージ領域内のタ
スクのテキスト部6の先頭には第4図(ハ)に示すヘッ
ダ部Hがあり、タスクの構成要素の容量を記憶している
。データ部に関して説明すればヘッダと第4図(ニ)の
PCBテーブルT3 を参照し、タスクの初期値有りデ
ータ部、初期値無しデータ部の容量を求め、第5図のメ
モリ使用管理テーブルT5からデータ部のサイズ分の空
きメモリを検索して、データ部用のメモリを確保し、そ
して初期値有りデータをディスクイメージ領域より転送
する。There are three stack parts. At the beginning of the text section 6 of the task in the disk image area is a header section H shown in FIG. 4(c), which stores the capacity of the constituent elements of the task. Regarding the data section, refer to the header and the PCB table T3 in FIG. 4(d), find the capacity of the data section with initial value and the data section without initial value of the task, and use the memory usage management table T5 in FIG. A free memory corresponding to the size of the data section is searched, memory for the data section is secured, and data with initial values is transferred from the disk image area.
スタック部に関しては、ヘッダ部よりスタックサイズを
求め、メモリ使用管理テーブルT、よりサイズ分の空き
を確保する。Regarding the stack section, the stack size is determined from the header section, and a free space corresponding to the size is secured from the memory use management table T.
テキスト部に関しては、ディスクイメージ領域内のテキ
スト部をタスク実行の際に活用する。さらに、各画素に
関して第4図(イ)〜(ニ)のテーブルを参照し、第4
図(ホ)に示すタスクのアドレス管理テーブルT4に各
リスク構成要素のアドレスとサイズを格納し、タスクの
実行が可能な状態にする。タスクスイッチングの際には
、この処理を繰り返す。Regarding the text part, the text part in the disk image area is used when executing the task. Furthermore, referring to the tables in FIGS. 4(a) to (d) for each pixel,
The address and size of each risk component are stored in the task address management table T4 shown in Figure (E), and the task is made ready for execution. This process is repeated during task switching.
第3図は従来方式を説明している。FIG. 3 explains the conventional method.
ディスクイメージ領域31と主記憶32が機能上分離し
ており、タスクの構成要素33,34゜36.37,3
8、共有データ35,39、ディスクイメージ領域内と
主記憶内の両方に存在することを示す、この点で本発明
の実施例と大きな差異を持つ。The disk image area 31 and the main memory 32 are functionally separated, and task components 33, 34, 36, 37, 3
8. The shared data 35 and 39 exist both in the disk image area and in the main memory, which is a major difference from the embodiment of the present invention.
本発明によれば、ディスクイメージ領域をCPUから直
接アクセス可能な主記憶上に設けることにより、磁気デ
ィスクレスシステムのタスク実行時や、共有データ使用
時のメモリ効率を上げ、タスク実行時、共有データ使用
時のメモリ転送処理を最小化しシステムオーバヘッドを
減削する効果がある。According to the present invention, by providing a disk image area on the main memory that can be accessed directly from the CPU, memory efficiency is improved when executing tasks or using shared data in a magnetic diskless system, and when executing tasks or using shared data. This has the effect of minimizing memory transfer processing and reducing system overhead.
また、ディスクイメージ領域のリード・ライトプログラ
ムを、磁気ディスクドライバプログラムとロジックを同
様にすることにより、磁気ディスク付システムのO8の
磁気ディスクレスシステムのO8への移植を容易にする
効果がある。Furthermore, by making the read/write program for the disk image area similar in logic to the magnetic disk driver program, there is an effect of facilitating the porting of a system with a magnetic disk (O8) to a system without a magnetic disk (O8).
第1図はRAMディスク制御方式概略図、第2図は本発
明のシステム構成図、第3図は従来方式説明図、第4図
及び第5図は関連テーブル図、第6図はタスク・共有デ
ータ登録処理説明図、第7図はタスク起動処理説明図で
ある。
21・・・中央処理装置、22・・・主記憶装置、23
・・・システムバス、24・・・入出力装置、25・・
・メモリバス。Figure 1 is a schematic diagram of the RAM disk control method, Figure 2 is a system configuration diagram of the present invention, Figure 3 is an explanatory diagram of the conventional method, Figures 4 and 5 are related table diagrams, and Figure 6 is task/sharing. FIG. 7 is an explanatory diagram of the data registration process, and FIG. 7 is an explanatory diagram of the task activation process. 21... Central processing unit, 22... Main storage device, 23
...System bus, 24...I/O device, 25...
・Memory bus.
Claims (1)
しない計算機システムにおいて、 上記CPUから直接アクセス可能な主記憶装置上に設け
られてなり、磁気ディスクドライバプログラムと同様の
ロジックのプログラムを用いてリード・ライト可能なデ
ィスクイメージ領域と、該ディスクイメージ領域のディ
スクイメージ領域構成を指示する管理テーブルと、該デ
ィスクイメージ領域内のタスク及び共有データ管理用の
管理テーブルと、を有するRAMディスク制御装置。[Claims] 1. In a computer system that has a CPU and a main storage device but does not have a magnetic disk, the program is provided on the main storage device that can be directly accessed from the CPU, and is similar to a magnetic disk driver program. a disk image area that can be read and written using a logic program; a management table that instructs the disk image area configuration of the disk image area; and a management table for managing tasks and shared data in the disk image area; A RAM disk control device having:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7966087A JPH0654464B2 (en) | 1987-04-02 | 1987-04-02 | Computer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7966087A JPH0654464B2 (en) | 1987-04-02 | 1987-04-02 | Computer system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS63247821A true JPS63247821A (en) | 1988-10-14 |
JPH0654464B2 JPH0654464B2 (en) | 1994-07-20 |
Family
ID=13696306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7966087A Expired - Lifetime JPH0654464B2 (en) | 1987-04-02 | 1987-04-02 | Computer system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0654464B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2891638A1 (en) * | 2005-10-05 | 2007-04-06 | Giga Byte Tech Co Ltd | Hard disk simulating device for computer system, has core logic chip controlling read/write of data of main memory module, and conversion interface controller converting hard disk read/write signal to memory read/write signal |
-
1987
- 1987-04-02 JP JP7966087A patent/JPH0654464B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2891638A1 (en) * | 2005-10-05 | 2007-04-06 | Giga Byte Tech Co Ltd | Hard disk simulating device for computer system, has core logic chip controlling read/write of data of main memory module, and conversion interface controller converting hard disk read/write signal to memory read/write signal |
Also Published As
Publication number | Publication date |
---|---|
JPH0654464B2 (en) | 1994-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63247821A (en) | Ram disk controller | |
JPS62126451A (en) | Initial program load system for distributed processor | |
JPS5856058A (en) | Daso common-use control system for virtual computer system cp resident volume | |
JP2004185561A (en) | Data conversion method, and computer system therefor | |
JPH01220060A (en) | Application program linkage system between sub-systems | |
JPH07146809A (en) | Information processor | |
JP2574537B2 (en) | Process management equipment | |
JPS58168168A (en) | Swap-in and swap-out system of terminal | |
JPH04181420A (en) | Data input/output system for designated data set | |
JPH05346867A (en) | Processor for restarting data transfer | |
JPH0394346A (en) | Method for expanding buffer | |
JPH03194641A (en) | Application program sharing system | |
JPH05274091A (en) | Magnetic tape device | |
JPH05100934A (en) | Plural magnetic disk file managing functions | |
JPS58117041A (en) | Pattern information storage and control system | |
JPS63213043A (en) | File processing system for external memory | |
JP2002189620A (en) | Media-changeable recorder and access controlling method therefor | |
JPH01297740A (en) | File recall system | |
JPS63314642A (en) | Control processing system for selected product | |
JPS63216121A (en) | Auxiliary storage file access system | |
JPH0397029A (en) | On-line system start-up processing system | |
JPS61279931A (en) | Parameter analysis system | |
JPH07334403A (en) | Method for managing file and picture data processor utilizing the method | |
JPH03255554A (en) | Temporary file input/output control system | |
JPH03105571A (en) | Drawing master file controller |