JPS6222162A - Disk cash control system - Google Patents

Disk cash control system

Info

Publication number
JPS6222162A
JPS6222162A JP60162694A JP16269485A JPS6222162A JP S6222162 A JPS6222162 A JP S6222162A JP 60162694 A JP60162694 A JP 60162694A JP 16269485 A JP16269485 A JP 16269485A JP S6222162 A JPS6222162 A JP S6222162A
Authority
JP
Japan
Prior art keywords
management information
data management
disk device
data
cache 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
JP60162694A
Other languages
Japanese (ja)
Inventor
Makoto Shibuya
誠 渋谷
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP60162694A priority Critical patent/JPS6222162A/en
Publication of JPS6222162A publication Critical patent/JPS6222162A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To enable a rapid readout and to prevent the loss of data even in power failure by storing data management information at both a cash memory and a disk device. CONSTITUTION:In a start-up time, all of the data management information stored at an i-list area within a disk device 1 is stored at a cash memory 2. And when the readout of the data management information is requested by a system unit (CPU main memory) 4, the data management information within the memory 2 is read out and transferred to the unit 4. Also, when the write of the data management information is requested from the unit 4, the data management information is written on both the i-list area in the disk unit and the memory 2. Thereby, the rapid readout of the data management information can be realized. Also, the data management information is not lost even in the power failure of a power source.

Description

【発明の詳細な説明】 (概要〕 ファイルシステムにおけるデータ管理情報をキャッシュ
メモリに保持させてアクセスするディスクキャッシュ制
御方式において、データおよびデータ管理情報を格納す
るディスク装置と、データ管理情報を少なくとも保持す
るためのキャッシュメモリと、ディスク装置およびキャ
ッシュメモリをアクセスするディスクコントローラとを
設け。
Detailed Description of the Invention [Summary] In a disk cache control method in which data management information in a file system is stored in a cache memory and accessed, a disk device that stores data and data management information, and at least the data management information are stored. and a disk controller for accessing the disk device and cache memory.

起動時にデータ管理情報をキャッシュメモリに格納し、
かつデータ管理情報の読み出し要求があった場合に、キ
ャッシュメモリから読み出したデー夕管理情報を転送す
るよう制?ルし、あるいはデータ管理情報の書き込み要
求があった場合に、ディスク装置およびキャッシュメモ
リに夫々書き込むよう制御している。
Stores data management information in cache memory at startup,
And when there is a request to read data management information, is there a system to transfer the data management information read from the cache memory? When there is a request to write data management information or data management information, the data management information is controlled to be written to the disk device and cache memory, respectively.

〔産業上の利用分野〕[Industrial application field]

本発明は、ファイルシステムにおけるデータ管理情報を
、キャッシュメモリに保持させてアクセスするよう制御
を行うディスクキャッシュ制御方式に関するものである
The present invention relates to a disk cache control method that controls data management information in a file system to be held in a cache memory and accessed.

〔従来の技術〕[Conventional technology]

従来1例えば、UNIX型のファイルシステムを構築し
、当該システムを構成するディスク装置にデータを書き
込む場合、あるいはデータを読み出す場合に、その都度
このデータを管理するデータ管理情報をディスク装置か
ら読み出してこの情報に対応した管理を行っていた。
Conventional 1 For example, when building a UNIX-type file system and writing data to or reading data from a disk device that makes up the system, data management information for managing this data is read from the disk device each time. The information was managed accordingly.

また、ディスク装置からデータ管理情報を迅速に読み出
し、所定のアクセス処理を実行させるために、当該デー
タ管理情報を格納するディスク装置の領域(アドレス領
域)に対応した領域を、半導体メモリ(RAMなど)を
用いて構成し、電源投入後は当該領域に対してデータ管
理情報のアクセスを行う、そして、電源スィッチをOF
Fにした場合に、当該RA Mに格納されているデータ
管理情報を、対応するディスク装置の所定領域に格納す
るいわゆるRAMディスク装置を構成する方式もある。
In addition, in order to quickly read data management information from a disk device and execute predetermined access processing, an area corresponding to the area (address area) of the disk device that stores the data management information is stored in a semiconductor memory (RAM, etc.). After turning on the power, access the data management information for the area, and then turn off the power switch.
In the case of F, there is also a method of configuring a so-called RAM disk device in which data management information stored in the RAM is stored in a predetermined area of the corresponding disk device.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ファイルシステムを構築しデータをアクセスするその都
度、データ管理情報をディスク装置からアクセスしてい
たのでは、当該データ管理情報をまとめて格納した領域
であるいわゆる“i−リスト領域”を頻繁にアクセスす
る必要が生じてしまい、データを迅速にアクセスするこ
とが困難となってしまうという問題点があった。
If data management information was accessed from a disk device each time a file system was constructed and data was accessed, the so-called "i-list area", which is an area where all the data management information is stored, would be frequently accessed. There is a problem in that it becomes difficult to quickly access data when the need arises.

また、ディスク装置に格納した′″ll−リスト領域対
応する領域にいわゆるRAMディスクを配置した場合に
は、当該RAMディスク中に格納した“i−リスト領域
°内のデータ管理情報を迅速にアクセスして、所望のデ
ータをアクセスすることが可能となる。しかし、何等か
の原因によって例えば電源が停電した場合には、′iミ
ーリスト域”に格納されたデータ管理情報が失われてし
まい、信鎖性に欠けるという問題点があった。
In addition, if a so-called RAM disk is placed in an area corresponding to the ``i-list area'' stored in the disk device, data management information in the ``i-list area'' stored in the RAM disk can be quickly accessed. This makes it possible to access desired data. However, if there is a power outage for some reason, for example, the data management information stored in the ``i-me list area'' will be lost, resulting in a problem of lack of reliability.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、前記問題点を解決するために、キャッシュメ
モリを設け、起動時にディスク装置内の“i−リスト領
域”に格納されているデータ管理情報をキャッシュメモ
リに全部格納する構成を採用し、かつホストからデータ
管理情報の読み出し要求があった場合に、当該キャッシ
ュメモリに格納されているデータ管理情報を読み出して
ホストに転送するよう制御すると共に、ホストからデー
タ管理情報の書き込み要求があった場合に、データ管理
情報をディスク装置およびキャッシュメモリの両者に書
き込むように制御している。
In order to solve the above-mentioned problems, the present invention provides a cache memory and adopts a configuration in which all data management information stored in the "i-list area" in the disk device is stored in the cache memory at the time of startup, And when there is a request to read data management information from the host, it controls to read the data management information stored in the cache memory and transfer it to the host, and when there is a request from the host to write data management information In addition, the data management information is controlled to be written to both the disk device and the cache memory.

第1図に示す本発明の1実施例構成を用いて問題点を解
決するための手段を説明する。
Means for solving the problems will be explained using the configuration of one embodiment of the present invention shown in FIG.

第1図図中、1はディスク装置、1−1はデータ管理情
報をまとめて格納するi−リス)fil域。
In FIG. 1, 1 is a disk device, and 1-1 is an i-list file area that collectively stores data management information.

1−2はデータを格納するデータ領域、2はキャッシュ
メモリ、3はディスクコントローラ、4はシステムユニ
ットを表す。
1-2 represents a data area for storing data, 2 represents a cache memory, 3 represents a disk controller, and 4 represents a system unit.

第1図において、ディスク装置1には、データ管理情報
をまとめて格納するi−リスト領域(斜線を施した部分
) 1−1と、データを格納するデータ領域1−2とが
設けである。
In FIG. 1, a disk device 1 is provided with an i-list area (shaded area) 1-1 for collectively storing data management information, and a data area 1-2 for storing data.

キャッシュメモリ2は、起動時に、ディスク装置FI内
のl−リスト領域l−1に格納されているデータ管理情
報を少なくとも格納するものである。
The cache memory 2 stores at least the data management information stored in the l-list area l-1 in the disk device FI at the time of startup.

ディスクコントローラ3は、システムユニット4からの
アクセス要求に対応して、キャッシュメモリ2およびデ
ィスク装置1をアクセス制御するためのものである。
The disk controller 3 is for controlling access to the cache memory 2 and the disk device 1 in response to access requests from the system unit 4.

〔作用〕[Effect]

第1図に示す構成を採用することにより、ディスク装置
1中のi−リスト領域IL−1に格納されているデータ
管理情報と同一のものをキャッシュメモリ2から迅速に
読み出すことができる。この結果、システムユニット4
からディスクコントローラ3に対して通知したアクセス
要求例えば“読み出しコマンド”に対して、所定のアク
セス処理を終了するまでの平均時間が短縮される。
By adopting the configuration shown in FIG. 1, the same data management information stored in the i-list area IL-1 in the disk device 1 can be quickly read from the cache memory 2. As a result, system unit 4
The average time required to complete a predetermined access process in response to an access request, such as a "read command", notified to the disk controller 3 from the disk controller 3 is shortened.

また、データ管理情報をキャッシュメモリ2に格納する
場合には、併せてディスク装置1中のi−リスト領域に
も格納する構成を採用しているため1例え電源が停電し
ても、データ管理情報を喪失することがなく、偉績性を
確保することができる。
In addition, when data management information is stored in the cache memory 2, it is also stored in the i-list area of the disk device 1, so even if the power goes out, the data management information It is possible to secure greatness without losing any of the above.

〔実施例〕〔Example〕

第2図は起動時に行う初期設定の動作を説明するフロー
チャートを示す。
FIG. 2 shows a flowchart illustrating the initial setting operation performed at startup.

図中■は、システムユニット4がディスクコントローラ
3に対して“初期設定コマンド”を通知した場合に、デ
ィスクコントローラ3は以下の制御を行うことを示す。
In the figure, ■ indicates that when the system unit 4 notifies the disk controller 3 of an "initial setting command," the disk controller 3 performs the following control.

図中■は、ディスク装置1の初期設定を行う状態を示す
In the figure, ■ indicates a state in which the initial settings of the disk device 1 are performed.

図中■は、ディスク装置1中の“i−リスト領域”1−
1に格納されている全てのデータ管理情報をキャッシュ
メモリ2に転送する状態を示す。
■ in the figure indicates the "i-list area" 1- in the disk device 1.
1 shows a state in which all data management information stored in cache memory 2 is transferred to cache memory 2.

これにより、ディスク装置!中のi−リスト領域1−1
に格納されていた全てのデータ管理情報と同一のものが
、キャッシュメモリ2中に格納されることとなる。
This allows the disk device! i-list area 1-1 inside
The same data management information as that stored in the cache memory 2 will be stored in the cache memory 2.

第3図はデータ管理情報およびデータを読み出す場合の
動作を説明するフローチャートを示す。
FIG. 3 shows a flowchart illustrating operations when reading data management information and data.

図中■は、システムユニット4がディスクコントローラ
3に対して“読み出しコマンド”を通知した場合に、デ
ィスクコントローラ3は以下の制御を行うことを示す。
In the figure, ■ indicates that when the system unit 4 notifies the disk controller 3 of a "read command," the disk controller 3 performs the following control.

図中0は、i−リスト領域の読み出しか否かを判別する
状態を示す、YESの場合には9図中■を実行する。N
oの場合には1図中■を実行する。
In the figure, 0 indicates a state in which it is determined whether or not to read the i-list area.If YES, 9 in the figure is executed. N
In case o, execute ■ in Figure 1.

図中■は、指定されたデータ管理情報をキャッシュメモ
リ2から読み出し、システムユニット4に転送する状態
を示す。
In the figure, ■ indicates a state in which designated data management information is read from the cache memory 2 and transferred to the system unit 4.

図中■は、指定されたデータをディスク装置1内のデー
タ領域1−2から読み出し、システムユニット4に転送
する状態を示す。
In the figure, ■ indicates a state in which designated data is read from the data area 1-2 in the disk device 1 and transferred to the system unit 4.

以上の手順によって、データ管理情報を読み出す場合に
は、キャッシュメモリ2中から読み出されたデータ管理
情報がシステムユニット4に転送される。また、データ
を読み出す場合には、ディスク装置1中のデータ領域1
−2に格納されていたデータがシステムユニット4に転
送される。
According to the above procedure, when reading data management information, the data management information read from cache memory 2 is transferred to system unit 4. In addition, when reading data, data area 1 in disk device 1
The data stored in -2 is transferred to system unit 4.

第4図はデータ管理情報およびデータを書き込む場合の
動作を説明するフローチャートを示す。
FIG. 4 shows a flowchart for explaining the operation when writing data management information and data.

図中■は、システムユニット4がディスクコントローラ
3に対して“書き込みコマンド”を通知した場合に、デ
ィスクコントローラ3は以下の制御を行うことを示す。
In the figure, ■ indicates that when the system unit 4 notifies the disk controller 3 of a "write command," the disk controller 3 performs the following control.

図中■は、システムユニット4からデータあるいはデー
タ管理情報を転送して、ディスク装置1内のデータ領域
1−2あるいはi−リスト領域に書き込む状態を示す。
In the figure, ■ indicates a state in which data or data management information is transferred from the system unit 4 and written to the data area 1-2 or i-list area in the disk device 1.

図中[相]は、ディスク装置1内のi−リスト領域にデ
ータ管理情報を書き込んだか否かを判別する状態を示す
、YESの場合には、i−リスト領域にデータ管理情報
を書き込んだので2図中■を実行する。NOの場合には
、データをディスク装置1内のデータ領域に書き込んだ
ので、一連の書き込みを終了する。
In the figure, [phase] indicates a state for determining whether data management information has been written to the i-list area in the disk device 1. If YES, data management information has been written to the i-list area. 2 Execute ■ in the figure. If NO, the data has been written to the data area in the disk device 1, so the series of writes ends.

図中■は、ディスク装置lに書き込んだデータ(データ
管理情報)をキャッシュメモリ2中にも併せて書き込む
状態を示す、これにより、ディスク装置1内のi−リス
ト領域に格納されたデータ管理情報と、同一のデータ管
理情報がキャッシュメモリ2中にも格納されることとな
る。
■ in the figure shows a state in which the data (data management information) written to the disk device 1 is also written into the cache memory 2. As a result, the data management information stored in the i-list area in the disk device 1 is Then, the same data management information is also stored in the cache memory 2.

以上の手順によって、システムユニットから転送された
データは、ディスク装置l内のデータ領域1−2に書き
込まれる。また、システムユニットから転送されたデー
タ管理情報は、ディスク装置1のi−リスト領域および
キャッシュメモリ2に夫々書き込まれる。
Through the above procedure, the data transferred from the system unit is written to the data area 1-2 in the disk device I. Further, data management information transferred from the system unit is written to the i-list area of the disk device 1 and the cache memory 2, respectively.

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

以上説明したように1本発明によれば、キャッシュメモ
リを設け、起動時にディスク装置内の“i−リスト領域
”に格納されているデータ管理情報をキャッシュメモリ
に全部格納する構成を採用し、かつホストからデータ管
理情報の読み出し要求があった場合に、当該キャッシュ
メモリに格納されているデータ管理情報を読み出してホ
ストに転送するよう制御すると共に、ホストからデータ
管理情報の書き込み要求があった場合に、データ管理情
報をディスク装置およびキャッシュメモリの両者に書き
込むよう制御しているため1例えば“読み出しコマンド
”の通知がされてからデータ管理情報を読み出すまでの
時間を短縮することができる。このため結果として、所
望のデータを迅速にディスク装置から読み出すことがで
きる。
As explained above, according to one aspect of the present invention, a cache memory is provided and all data management information stored in the "i-list area" in the disk device is stored in the cache memory at startup, and When there is a request to read data management information from the host, the data management information stored in the cache memory is controlled to be read and transferred to the host, and when there is a request from the host to write the data management information, Since the data management information is controlled to be written to both the disk device and the cache memory, for example, the time from when a "read command" is notified to when the data management information is read can be shortened. As a result, desired data can be quickly read from the disk device.

また、データ管理情報をキャッシュメモリに書き込むと
共に併せてディスク装置にも書き込んでいるため、たと
え電源が一時的に停電した場合にもデータ管理情報が失
われることがなく、信頼性を確保することができる。
In addition, data management information is written to the cache memory and also to the disk device, so even if the power goes out temporarily, the data management information will not be lost, ensuring reliability. can.

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

第1図は本発明の1実施例構成図、第2図は初期設定の
動作を説明するフローチャート、第3図は読み出す場合
の動作を説明するフローチャート第4図は書き込む場合
の動作を説明するフローチャートを示す。 図中、lはディスク装置、1−1はデータ管理情報をま
とめて格納するi−リスト領域、l−2はデータを格納
するデータ領域、2はキャッシュメモリ、3はディスク
コントローラ、4はシステムユニットを表す。 特許出願人  アルプス電気株式会社 代理人弁理士 森1)寛(外3名) 、ト肥13トI焚鍵ゾ列鐸い万 61 国 1、!!ν5f、・すも令の11乍を鮎εり川Tるフロ
ーチャート巣 4I¥1
FIG. 1 is a configuration diagram of one embodiment of the present invention, FIG. 2 is a flowchart explaining the initial setting operation, FIG. 3 is a flowchart explaining the reading operation, and FIG. 4 is a flowchart explaining the writing operation. shows. In the figure, l is a disk device, 1-1 is an i-list area that collectively stores data management information, l-2 is a data area that stores data, 2 is a cache memory, 3 is a disk controller, and 4 is a system unit. represents. Patent Applicant Alps Electric Co., Ltd. Patent Attorney Hiroshi Mori 1) (3 others), Tohi 13 To I Fired Key Zo Series Iman 61 Country 1,! ! ν5f, Flowchart nest of 11 steps of Sumo Rei Ayu Erikawa Tru 4I ¥1

Claims (1)

【特許請求の範囲】 ファイルシステムにおけるデータ管理情報をキャッシュ
メモリに保持させてアクセスするよう制御するディスク
キャッシュ制御方式において、ファイルシステムに用い
られるデータおよびこのデータを管理するデータ管理情
報を格納するディスク装置と、 このディスク装置に格納されているデータ管理情報を少
なくとも転送されて保持するためのキャッシュメモリと
、 ディスク装置およびキャッシュメモリをアクセスするデ
ィスクコントローラとを備え、 起動時にディスク装置に格納されているデータ管理情報
をキャッシュメモリに少なくとも転送して格納し、かつ
ホストからこのディスクコントローラに対してデータ管
理情報の読み出し要求があった場合に、キャッシュメモ
リから読み出したデータ管理情報を転送するよう制御し
、あるいはデータ管理情報の書き込み要求があった場合
に、ディスク装置およびキャッシュメモリに夫々書き込
むよう制御することを特徴とするディスクキャッシュ制
御方式。
[Claims] In a disk cache control method that controls data management information in a file system to be held in a cache memory and accessed, a disk device that stores data used in the file system and data management information that manages this data. and a cache memory for transferring and retaining at least the data management information stored in this disk device, and a disk controller for accessing the disk device and the cache memory, and the data stored in the disk device at startup. At least transfers and stores management information to the cache memory, and controls the transfer of the data management information read from the cache memory when a host requests this disk controller to read the data management information, or A disk cache control method characterized in that when there is a request to write data management information, control is performed to write data to a disk device and a cache memory, respectively.
JP60162694A 1985-07-23 1985-07-23 Disk cash control system Pending JPS6222162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60162694A JPS6222162A (en) 1985-07-23 1985-07-23 Disk cash control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60162694A JPS6222162A (en) 1985-07-23 1985-07-23 Disk cash control system

Publications (1)

Publication Number Publication Date
JPS6222162A true JPS6222162A (en) 1987-01-30

Family

ID=15759518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60162694A Pending JPS6222162A (en) 1985-07-23 1985-07-23 Disk cash control system

Country Status (1)

Country Link
JP (1) JPS6222162A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63247853A (en) * 1987-03-30 1988-10-14 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン Dasd cash management
JPS6410358A (en) * 1987-07-03 1989-01-13 Hitachi Ltd Data transfer control system
JP2013222434A (en) * 2012-04-19 2013-10-28 Nec Corp Cache control device, cache control method, and program therefor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63247853A (en) * 1987-03-30 1988-10-14 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン Dasd cash management
JPH0564814B2 (en) * 1987-03-30 1993-09-16 Ibm
JPS6410358A (en) * 1987-07-03 1989-01-13 Hitachi Ltd Data transfer control system
JP2013222434A (en) * 2012-04-19 2013-10-28 Nec Corp Cache control device, cache control method, and program therefor
US9268700B2 (en) 2012-04-19 2016-02-23 Nec Corporation Cache control device, cache control method, and program thereof

Similar Documents

Publication Publication Date Title
US8650339B2 (en) Control of data transfer
JP2005182781A (en) Persistent memory device for backup process checkpoint state
JP2001100925A (en) Disk controller
JPH06236241A (en) Hard disk device using flash memory
JPS6222162A (en) Disk cash control system
JPH0518143B2 (en)
KR910008678B1 (en) System which controls memory contents
JPH0239256A (en) Memory system
JP2000148404A (en) Computer system
JPH0520196A (en) Disk cache controller
JPS59226958A (en) Memory device
JP3772003B2 (en) Memory management system and data management method
JPS62130440A (en) Cache subsystem
JP2011018237A (en) Disk array device and method for controlling the same
JP3940701B2 (en) Disk array device and cache matching control method applied to the same
JP2854667B2 (en) Disk cache control method
JP2005316697A (en) Disk array system and method for data backup
JPH0411897B2 (en)
JPH05158815A (en) Memory device
JPH09244932A (en) Disk array device
JP3594202B2 (en) External storage controller
US5594909A (en) File I/O control device writing blocks to faster device first and canceling exclusive lock as each block is written
JPH0552538B2 (en)
JPS6349952A (en) Memory control system
JPH02501602A (en) Mirror disk RAM system