JPH04257018A - Storage system control system - Google Patents

Storage system control system

Info

Publication number
JPH04257018A
JPH04257018A JP3019037A JP1903791A JPH04257018A JP H04257018 A JPH04257018 A JP H04257018A JP 3019037 A JP3019037 A JP 3019037A JP 1903791 A JP1903791 A JP 1903791A JP H04257018 A JPH04257018 A JP H04257018A
Authority
JP
Japan
Prior art keywords
file
area
stored
storage means
buffer storage
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
Application number
JP3019037A
Other languages
Japanese (ja)
Other versions
JP2773986B2 (en
Inventor
Nobuyoshi Izawa
井沢 伸芳
Masao Sakai
酒井 昌男
Yoshinori Isomura
磯村 嘉伯
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP3019037A priority Critical patent/JP2773986B2/en
Publication of JPH04257018A publication Critical patent/JPH04257018A/en
Application granted granted Critical
Publication of JP2773986B2 publication Critical patent/JP2773986B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To improve the throughput of a system by sharply improving a hit ratio for a file stored in a buffer storage device. CONSTITUTION:The entire file of one part of the file stored in a secondary storage device 20, and one part of the file of one part of the residual part, are respectively stored in a file entire area 31 and a file one part area 32 of a buffer storage device 30. Then, when an access to the desired file is performed of, whether or not the desired file is stored in the buffer storage device 30 is judged, and when the entire desired file is stored in the file entire area 31, the file is read out from the file entire area 31. Then, when one part of the desired file is stored in the file one part area 32, the file is read out from the file one part area 32, and the residual part of the desired file is read out from the secondary storage device 20. Then, when the desired file is not stored in the buffer storage device, the file is read out from the secondary storage device.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、大容量低価格の2次記
憶装置とこの2次記憶装置に記憶されたファイルの写し
を記憶する高速バッファ記憶装置とを全体的に制御し、
アクセス要求元からのファイルアクセスに対して高速バ
ッファ記憶装置を効果的に使用する記憶システム制御方
式に関する。
FIELD OF INDUSTRIAL APPLICATION The present invention provides overall control of a large-capacity, low-cost secondary storage device and a high-speed buffer storage device that stores copies of files stored in the secondary storage device.
The present invention relates to a storage system control method that effectively uses a high-speed buffer storage device for file access from an access request source.

【0002】0002

【従来の技術】現在の記憶システムにおいては、大容量
低価格の記憶装置(光ディスク等)が実用化され、記憶
システムの一構成要素として商用に供されている。大容
量低価格の記憶装置を用いれば、大容量の記憶システム
を低価格で構成できる利点がある。しかし、磁気ディス
ク装置等に比較してアクセス速度や転送速度が遅く、磁
気ディスク装置で構成された記憶システムよりシステム
の性能は低下している。これを避けるため、記憶装置内
の一部のファイルの写しを保持する高速で小容量なバッ
ファ記憶装置を設け、要求ファイルがバッファ記憶装置
内に存在していたら、直ちにファイルを要求元に転送す
る方式(通常ステージング方式またはキャッシング方式
と呼ばれている)が採用されている。本発明では、ステ
ージング方式に基づき説明を行うため、大容量低価格の
記憶装置を2次記憶装置と呼ぶこととする。
2. Description of the Related Art In current storage systems, large-capacity, low-cost storage devices (such as optical disks) have been put into practical use and are commercially available as one component of the storage system. The advantage of using a large-capacity, low-cost storage device is that a large-capacity storage system can be constructed at a low cost. However, the access speed and transfer speed are slower than magnetic disk devices, etc., and the system performance is lower than that of storage systems configured with magnetic disk devices. To avoid this, we provide a high-speed, small-capacity buffer storage device that holds copies of some files in the storage device, and if the requested file exists in the buffer storage device, we immediately transfer the file to the requester. A method (usually called a staging method or a caching method) is adopted. In the present invention, since the description is based on a staging method, a large-capacity, low-cost storage device will be referred to as a secondary storage device.

【0003】ステージング方式においては、通常バッフ
ァ記憶装置内に2次記憶装置の一部のファイルの写しを
保持する方法が採られている。バッファ記憶装置は一般
的に高価であり小容量なため、記憶容量には制限があり
、保持しておくファイル数も制限される。したがって、
バッファ記憶装置内に要求されたファイルが存在しない
とき、2次記憶装置にアクセスする必要が生じる。
[0003] In the staging method, a method is usually adopted in which a copy of a part of the file in the secondary storage device is held in a buffer storage device. Buffer storage devices are generally expensive and have a small capacity, which limits their storage capacity and the number of files they can hold. therefore,
When a requested file is not present in buffer storage, a need arises to access secondary storage.

【0004】一方、一ファイルの容量は近年大きくなる
傾向にある。例えば、文書ファイリングシステムにおい
て、文書、表、図面等を統一的に管理するため、すべて
イメージデータとして記憶しておきたいという要求があ
る。このようなシステムにおいては、一文書がA4版で
100頁に及ぶ場合がある。イメージデータを圧縮して
も、一文書で10MB近くなり、一ファイル10MBの
容量になってしまう。このような大容量のファイルをバ
ッファ記憶装置に保持すると、バッファ記憶装置は小容
量のため、保持できるファイル数が益々少なくなってし
まう。
On the other hand, the capacity of one file has tended to increase in recent years. For example, in a document filing system, there is a demand for storing all documents, tables, drawings, etc. as image data in order to manage them in a unified manner. In such a system, one document may be up to 100 pages in A4 size. Even if the image data is compressed, one document will be nearly 10MB, and one file will have a capacity of 10MB. If such large-capacity files are held in a buffer storage device, the number of files that can be held will become smaller and smaller because the buffer storage device has a small capacity.

【0005】[0005]

【発明が解決しようとする課題】前述したように従来の
ステージング方式では、バッファ記憶装置は小容量のた
めに保持できるファイル数が少なく、要求されたファイ
ルがバッファ記憶装置内に存在しない場合が頻発する。 このような場合、2次記憶装置にアクセスする必要が生
じ、システムのスループットを低下させるという欠点が
あった。
[Problems to be Solved by the Invention] As mentioned above, in the conventional staging method, the buffer storage device can only hold a small number of files due to its small capacity, and there are many cases where the requested file does not exist in the buffer storage device. do. In such a case, it becomes necessary to access the secondary storage device, which has the disadvantage of reducing system throughput.

【0006】本発明は、上記に鑑みてなされたもので、
その目的とするところは、バッファ記憶装置に記憶され
たファイルに対するヒット率を大幅に向上し、システム
のスループットを向上した記憶システム制御方式を提供
することにある。
The present invention has been made in view of the above, and
The purpose is to provide a storage system control method that significantly improves the hit rate for files stored in a buffer storage device and improves system throughput.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
、本発明の記憶システム制御方式は、全ファイルを記憶
している大容量の2次記憶手段と、該2次記憶手段に記
憶されているファイルのうちの一部のファイルの全体お
よび前記2次記憶手段に記憶されているファイルのうち
の残りの一部のファイルの一部を記憶するバッファ記憶
手段と、所望のファイルに対してアクセスが生じたとき
、該所望のファイルが前記バッファ記憶手段内に記憶さ
れているか否かを判定する判定手段と、該判定手段の判
定結果に基づいて前記所望のファイルの全体が前記バッ
ファ記憶手段に記憶されていると判定されたとき、前記
所望のファイルの全体を前記バッファ記憶手段から読み
出し、前記所望のファイルの一部が前記バッファ記憶手
段に記憶されていると判定されたとき、前記所望のファ
イルの一部を前記バッファ記憶手段から読み出すととも
に該所望のファイルの残りの部分を前記2次記憶手段か
ら読み出し、前記所望のファイルが前記バッファ記憶手
段に記憶されていないと判定されたとき、前記所望のフ
ァイルを前記2次記憶手段から読み出すように制御する
読み出し制御手段とを有することを要旨とする。
[Means for Solving the Problems] In order to achieve the above object, the storage system control method of the present invention includes a large-capacity secondary storage means that stores all files, and a large-capacity secondary storage means that stores all files. buffer storage means for storing the whole of some of the files stored in the secondary storage means and a part of the remaining files stored in the secondary storage means, and accessing the desired files; a determination means for determining whether or not the desired file is stored in the buffer storage means; and a determination means for determining whether or not the desired file is stored in the buffer storage means; When it is determined that the desired file is stored, the entire desired file is read from the buffer storage means, and when it is determined that a part of the desired file is stored in the buffer storage means, the desired file is read out from the buffer storage means. reading a part of the file from the buffer storage means and reading the remaining part of the desired file from the secondary storage means, and when it is determined that the desired file is not stored in the buffer storage means; The gist of the present invention is to include readout control means for controlling reading of a desired file from the secondary storage means.

【0008】[0008]

【作用】本発明の記憶システム制御方式では、2次記憶
手段に記憶されているファイルのうちの一部のファイル
の全体および残りの一部のファイルの一部をバッファ記
憶手段に記憶し、所望のファイルに対してアクセスが生
じたとき、該所望のファイルが前記バッファ記憶手段内
に記憶されているか否かを判定し、所望のファイルの全
体がバッファ記憶手段に記憶されているとき、所望のフ
ァイルの全体をバッファ記憶手段から読み出し、所望の
ファイルの一部がバッファ記憶手段に記憶されていると
き、所望のファイルの一部をバッファ記憶手段から読み
出すとともに所望のファイルの残りの部分を2次記憶手
段から読み出し、所望のファイルがバッファ記憶手段に
記憶されていないとき、所望のファイルを2次記憶手段
から読み出すように制御している。
[Operation] In the storage system control method of the present invention, the entirety of some of the files stored in the secondary storage means and a portion of the remaining files are stored in the buffer storage means, and the desired When access occurs to a file, it is determined whether or not the desired file is stored in the buffer storage means, and when the entire desired file is stored in the buffer storage means, the desired file is accessed. When the entire file is read from the buffer storage means and a part of the desired file is stored in the buffer storage means, the part of the desired file is read out from the buffer storage means and the remaining part of the desired file is stored as a secondary file. When the desired file is read from the storage means and is not stored in the buffer storage means, the desired file is controlled to be read from the secondary storage means.

【0009】[0009]

【実施例】以下、図面を用いて本発明の実施例を説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Examples of the present invention will be described below with reference to the drawings.

【0010】図1は本発明の一実施例に係わる記憶シス
テム制御方式の構成を示すブロック図である。同図に示
す記憶システム制御方式は、1つ以上の制御装置10と
接続された2次記憶装置20、バッファ記憶装置30か
らなる。バッファ記憶装置30はファイル全体領域31
、ファイル一部領域32に分割されている。ファイル全
体領域31は一個のファイルの全体を複数ファイル保持
しておく領域、ファイル一部領域32は一個のファイル
の先頭からの一部を複数ファイル保持しておく領域であ
る。ファイルの先頭からの一部を保持しておく理由は次
のようである。制御装置10から2次記憶装置20へフ
ァイルアクセス要求をしてからファイルが制御装置10
に転送開始されるまでの時間と、制御装置10がファイ
ル要求元との間でファイルの先頭からの一部を処理する
時間とをほぼ等しくなるようにする。ファイルの先頭か
らの一部を処理している間に、それに引き続いたファイ
ルを2次記憶装置20から転送し、時間遅れを生じない
で一ファイルを連続的に処理する。この連続性を保つた
めに、必要なファイルの先頭からの一部をファイル一部
領域32に保持しておく。ファイルの先頭からの一部に
必要な記憶容量は、記憶システム全体の要求性能、機能
等、2次記憶装置20の性能、構成等、バッファ記憶装
置30の性能、容量等を勘案して決定する。
FIG. 1 is a block diagram showing the configuration of a storage system control method according to an embodiment of the present invention. The storage system control method shown in the figure includes a secondary storage device 20 and a buffer storage device 30 connected to one or more control devices 10. The buffer storage device 30 is the entire file area 31
, the file is divided into partial areas 32. The whole file area 31 is an area where the entirety of one file is held for a plurality of files, and the partial file area 32 is an area where a part from the beginning of one file is held for a plurality of files. The reason for retaining a portion from the beginning of the file is as follows. After a file access request is made from the control device 10 to the secondary storage device 20, the file is transferred to the control device 10.
The time it takes for the control device 10 to start transferring the file from the beginning to the time it takes for the control device 10 to process a part of the file from the beginning with the file request source is made approximately equal. While a part of the file from the beginning is being processed, the following file is transferred from the secondary storage device 20, and one file is continuously processed without any time delay. In order to maintain this continuity, a part of the necessary file from the beginning is held in the file partial area 32. The storage capacity required for a portion from the beginning of the file is determined by taking into consideration the required performance and functions of the entire storage system, the performance and configuration of the secondary storage device 20, and the performance and capacity of the buffer storage device 30. .

【0011】制御装置10と2次記憶装置20は、接続
線40で接続されている。制御装置10とバッファ記憶
装置30は接続線50で接続されている。制御装置10
はファイルテーブル11、バッファ記憶容量テーブル1
2を具備している。
The control device 10 and the secondary storage device 20 are connected by a connection line 40. The control device 10 and the buffer storage device 30 are connected by a connection line 50. Control device 10
is file table 11, buffer storage capacity table 1
It is equipped with 2.

【0012】図2は各テーブルの構成例を示したもので
ある。図2(a)はファイルテーブル11の構成を示す
。このファイルテーブル11は、記憶システムに保持さ
れている全ファイルに関し、ファイルのファイル名、バ
ッファ記憶装置30に該当ファイルが存在しているか否
かを示すステージング識別フラグ、該当ファイル全体の
容量、該当ファイルの先頭からの一部をファイル一部領
域32に保持すべき時の容量、該当ファイルへの最新ア
クセス時間、該当ファイルへのアクセス回数が記憶され
ている。ステージング識別フラグには、バッファ記憶装
置30が該当ファイルの写しを保持していない時には例
えば0を、該当ファイルの全体の写しを保持している(
ファイル全体領域31に保持している)時には例えば1
を、該当ファイルの先頭からの一部の写しを保持してい
る(ファイル一部領域32に保持している)時には例え
ば2を、該当ファイルがバッファ記憶装置30には保持
しているが2次記憶装置20には保持していない時には
例えば3を記憶する。また、該当ファイルをバッファ記
憶装置30と2次記憶装置20両方に保持しているが、
バッファ記憶装置30内のファイル全体領域31、ファ
イル一部領域32に保持しているファイルが更新されて
いる時には例えば各々4,5をステージング識別フラグ
に記憶する。該当ファイルへのアクセス回数は、2次記
憶装置20内のファイル、及びファイル一部領域32内
のファイルにアクセスしたときの通算回数を計数するも
のであり、後述するスレッシュホールドαが設けられて
いる。
FIG. 2 shows an example of the structure of each table. FIG. 2(a) shows the configuration of the file table 11. This file table 11 contains the file name of the file, a staging identification flag indicating whether or not the file exists in the buffer storage device 30, the total capacity of the file, and the file table 11 regarding all files held in the storage system. The capacity at which a part of the file from the beginning should be held in the partial file area 32, the latest access time to the file, and the number of times the file has been accessed are stored. The staging identification flag is set to 0, for example, when the buffer storage device 30 does not hold a copy of the file, and holds a copy of the entire file (
For example, 1
For example, 2 is used when a partial copy of the file from the beginning is held (held in the file partial area 32). For example, 3 is stored in the storage device 20 when it is not stored. In addition, although the relevant file is held in both the buffer storage device 30 and the secondary storage device 20,
When the files held in the entire file area 31 and partial file area 32 in the buffer storage device 30 are updated, for example, 4 and 5 are respectively stored in the staging identification flag. The number of accesses to the relevant file is calculated by counting the total number of times the file in the secondary storage device 20 and the file in the partial file area 32 are accessed, and a threshold α, which will be described later, is set. .

【0013】図2(b)はバッファ記憶容量テーブル1
2の構成を示す。ファイル全体領域31、ファイル一部
領域32の既使用容量と未使用容量が記憶されており、
既使用容量は後述する各々スレッシュホールドβ,γが
設けられている。
FIG. 2(b) shows buffer storage capacity table 1.
The configuration of No. 2 is shown below. The used capacity and unused capacity of the entire file area 31 and partial file area 32 are stored.
The used capacity is provided with thresholds β and γ, which will be described later.

【0014】図3はファイルの新規書き込み時における
制御フロー例を示したものである。新規ファイル61を
記憶システムに書き込む必要が生じた場合(ステップ6
00)、制御装置10はバッファ記憶容量テーブル12
を参照し、ファイル全体領域31の既使用容量があるス
レッシュホールドβを越えているか否かを判定する(ス
テップ601)。βを越えていなかったら、接続線50
を通じてバッファ記憶装置30内のファイル全体領域3
1の未使用領域に新規ファイル61を書き込み、ファイ
ルテーブル11、バッファ記憶容量テーブル12を更新
する(ステップ604)。以後、テーブル類の更新は必
要に応じて行うこととして記述を省略するが、特に説明
が必要な場合は記述する。
FIG. 3 shows an example of the control flow when writing a new file. If a new file 61 needs to be written to the storage system (step 6
00), the control device 10 stores the buffer storage capacity table 12
, it is determined whether the used capacity of the entire file area 31 exceeds a certain threshold β (step 601). If it does not exceed β, the connection line 50
The entire file area 3 in the buffer storage device 30 through
A new file 61 is written in the unused area of No. 1, and the file table 11 and buffer storage capacity table 12 are updated (step 604). Hereinafter, the description of updating of tables will be omitted as it will be done as necessary, but if a particular explanation is required, it will be described.

【0015】βを越えていたら、バッファ記憶容量テー
ブル12を参照し、ファイル一部領域32の既使用容量
があるスレッシュホールドγを越えているか否かを判定
する(ステップ602)。γを越えていなかったら、フ
ァイルテーブル11の最新アクセス時間を参照し、公知
のLRU(Least Recently Used)
アルゴリズム等を用いてファイル全体領域31からファ
イル一部領域32へ移す(デステージングと呼ぶ)べき
ファイル62を決定し、ファイル一部領域32の未使用
領域にファイル62の先頭から一部を書き込み、ファイ
ル全体領域31のファイル62の領域を未使用領域とし
、ファイルテーブル11のファイル62に関するアクセ
ス回数を0とする(ステップ603)。その後、新規フ
ァイル61をファイル全体領域31の未使用領域に書き
込む(ステップ604)。
If it exceeds β, the buffer storage capacity table 12 is referred to and it is determined whether the used capacity of the partial file area 32 exceeds a certain threshold γ (step 602). If it does not exceed γ, refer to the latest access time in the file table 11 and determine the known LRU (Least Recently Used)
The file 62 to be moved from the entire file area 31 to the partial file area 32 (referred to as destaging) is determined using an algorithm or the like, and a portion of the file 62 is written from the beginning to an unused area of the partial file area 32. The area of the file 62 in the entire file area 31 is set as an unused area, and the number of accesses regarding the file 62 in the file table 11 is set to 0 (step 603). Thereafter, the new file 61 is written into an unused area of the entire file area 31 (step 604).

【0016】γを越えていたら、LRUアルゴリズム等
を用いてファイル一部領域32から2次記憶装置20へ
デステージングすべきファイル63を決定し、ファイル
63の領域を未使用領域とし、ファイルテーブル11の
ファイル63に関するアクセス回数に1を減じて更新す
る(ステップ605)。その後、ファイル全体領域31
からファイル一部領域32の未使用領域にファイル62
の先頭から一部を書き込み、ファイル全体領域31のフ
ァイル62の領域を未使用領域とし、ファイルテーブル
11のファイル62に関するアクセス回数に1を減じて
更新する(ステップ603)。ファイル全体領域31の
未使用領域に新規ファイル61を書き込む(ステップ6
04)。
If the value exceeds γ, the file 63 to be destaged from the partial file area 32 to the secondary storage device 20 is determined using an LRU algorithm, the area of the file 63 is made an unused area, and the file table 11 is The number of accesses regarding file 63 is updated by subtracting 1 (step 605). After that, the entire file area 31
From file 62 to the unused area of file partial area 32
A part is written from the beginning of the file 62, and the area of the file 62 in the entire file area 31 is made an unused area, and the number of accesses regarding the file 62 in the file table 11 is updated by subtracting 1 (step 603). Write a new file 61 in the unused area of the entire file area 31 (step 6
04).

【0017】図4はファイルの読みだし時における制御
フロー例を示したものである。ファイル71を記憶シス
テムから読みだす必要が生じた場合(ステップ700)
、制御装置10はファイルテーブル11を参照し、ファ
イル全体領域31に該当ファイル71が存在するかを判
定する(ステップ701)。ファイル71が存在したら
、ファイル全体領域31からファイル71を読みだし、
必要な処理を行う(ステップ702)。
FIG. 4 shows an example of a control flow when reading a file. When it becomes necessary to read file 71 from the storage system (step 700)
, the control device 10 refers to the file table 11 and determines whether the corresponding file 71 exists in the entire file area 31 (step 701). If the file 71 exists, read the file 71 from the entire file area 31,
Necessary processing is performed (step 702).

【0018】ファイル71が存在しなかったら、ファイ
ルテーブル11を参照し、ファイル一部領域32にファ
イル71の先頭からの一部が存在するかを判定する(ス
テップ703)。ファイル71の先頭からの一部がファ
イル一部領域32に存在したら、ファイル一部領域32
からファイル71を読みだす(ステップ704)。これ
と同時に、ファイル一部領域32に記憶されているファ
イル71の一部に引き続いたファイル71の残りを読み
だすべく、接続線40を通じて2次記憶装置20へ命令
する(ステップ705)。2次記憶装置20はファイル
71の残りの部分を該当媒体から読みだして接続線40
を通じて制御装置10に転送し、制御装置10は必要な
処理を行う(ステップ706)。
If the file 71 does not exist, the file table 11 is referred to and it is determined whether a portion from the beginning of the file 71 exists in the file partial area 32 (step 703). If a part from the beginning of the file 71 exists in the file partial area 32, the file partial area 32
The file 71 is read from (step 704). At the same time, a command is given to the secondary storage device 20 through the connection line 40 to read out the rest of the file 71 following the part of the file 71 stored in the partial file area 32 (step 705). The secondary storage device 20 reads the remaining portion of the file 71 from the corresponding medium and transfers it to the connection line 40.
The information is transferred to the control device 10 through the control device 10, and the control device 10 performs necessary processing (step 706).

【0019】さらに、制御装置10はファイルテーブル
11のファイル71に関するアクセス回数に1を加えて
更新し、アクセス回数があるスレッシュホールドαを越
えているかを判定する(ステップ707)。αを越えて
いなかったら終了する。αを越えていたら、ファイル全
体領域31の既使用容量がβを越えているかを判定する
(ステップ708)。βを越えていなかったら、ファイ
ル71の全体をファイル全体領域31の未使用領域に書
き込む(ステップ709)。βを越えていたら、バッフ
ァ記憶容量テーブル12を参照し、ファイル一部領域3
2の既使用容量がγを越えていないかを判定する(ステ
ップ710)。γを越えていなかったら、LRUアルゴ
リズム等を用いてファイル全体領域31からファイル一
部領域32へデステージングすべきファイル72を決定
し、ファイル一部領域32の未使用領域にファイル72
の先頭から一部を書き込み、ファイル一部領域32のフ
ァイル72の領域を未使用領域とし、ファイルテーブル
11のファイル72に関するアクセス回数に1を減じて
更新する(ステップ711)。その後、ファイル71を
ファイル全体領域31の未使用領域に書き込む(ステッ
プ712)。
Furthermore, the control device 10 updates the number of accesses regarding the file 71 in the file table 11 by adding 1, and determines whether the number of accesses exceeds a certain threshold α (step 707). If it does not exceed α, terminate. If it exceeds α, it is determined whether the used capacity of the entire file area 31 exceeds β (step 708). If the value does not exceed β, the entire file 71 is written to an unused area of the entire file area 31 (step 709). If it exceeds β, refer to the buffer storage capacity table 12 and
It is determined whether the used capacity of No. 2 exceeds γ (step 710). If it does not exceed γ, the file 72 to be destaged from the entire file area 31 to the file partial area 32 is determined using an LRU algorithm, and the file 72 is transferred to an unused area of the file partial area 32.
A part is written from the beginning of the file 72 in the file partial area 32 as an unused area, and the number of accesses regarding the file 72 in the file table 11 is updated by subtracting 1 (step 711). Thereafter, the file 71 is written to an unused area of the entire file area 31 (step 712).

【0020】ステップ710においてγを越えていたら
、LRUアルゴリズム等を用いてファイル一部領域32
から2次記憶装置20へデステージングすべきファイル
73を決定し、ファイル73の領域を未使用領域とし、
ファイルテーブル11のファイル73に関するアクセス
回数に1を減じて更新する(ステップ713)。その後
、ファイル全体領域31からファイル一部領域32の未
使用領域にファイル72を書き込む。ファイル全体領域
31のファイル72の領域を未使用領域とし、ファイル
テーブル11のファイル72に関するアクセス回数に1
を減じて更新する(ステップ711)。ファイル全体領
域31の未使用領域にファイル71を書き込む(ステッ
プ712)。
If γ is exceeded in step 710, the partial file area 32 is removed using an LRU algorithm or the like.
Determine the file 73 to be destaged from to the secondary storage device 20, set the area of the file 73 as an unused area,
The number of accesses regarding the file 73 in the file table 11 is updated by subtracting 1 (step 713). Thereafter, the file 72 is written from the entire file area 31 to an unused area of the partial file area 32. The area of the file 72 in the entire file area 31 is set as an unused area, and the number of accesses regarding the file 72 in the file table 11 is increased by 1.
is updated by subtracting it (step 711). The file 71 is written in an unused area of the entire file area 31 (step 712).

【0021】ステップ703のチェックにおいて、ファ
イル71の一部がファイル一部領域32に存在しなかっ
たら、ファイル71を読みだすように2次記憶装置20
へ命令する(ステップ714)。2次記憶装置20はフ
ァイル71を読みだして制御装置10に転送し、制御装
置10は必要な処理を行う(ステップ715)。さらに
、制御装置10はバッファ記憶容量テーブル12を参照
し、ファイル一部領域32の既使用容量がγを越えてい
るかを判定する(ステップ716)。γを越えていなか
ったら、ファイル71の先頭の一部をファイル一部領域
32の未使用領域に書き込む(ステップ717)。γを
越えていたら、LRUアルゴリズム等を用いてファイル
一部領域32から2次記憶装置20へデステージングす
べきファイル73を決定する。ファイル73の領域を未
使用領域とし、ファイルテーブル11のファイル73に
関するアクセス回数に1を減じて更新する(ステップ7
18)。その後、ファイル一部領域32の未使用領域に
ファイル71の先頭の一部を書き込む(ステップ717
)。
In the check at step 703, if part of the file 71 does not exist in the partial file area 32, the secondary storage device 20 is instructed to read the file 71.
(step 714). The secondary storage device 20 reads the file 71 and transfers it to the control device 10, and the control device 10 performs necessary processing (step 715). Further, the control device 10 refers to the buffer storage capacity table 12 and determines whether the used capacity of the partial file area 32 exceeds γ (step 716). If it does not exceed γ, a portion of the beginning of the file 71 is written to an unused area of the partial file area 32 (step 717). If it exceeds γ, the file 73 to be destaged from the partial file area 32 to the secondary storage device 20 is determined using an LRU algorithm or the like. The area of file 73 is set as an unused area, and the number of accesses related to file 73 in the file table 11 is updated by subtracting 1 (step 7).
18). After that, a part of the beginning of the file 71 is written to an unused area of the file partial area 32 (step 717
).

【0022】図5はファイルの更新時における制御フロ
ー例を示したものである。ファイル81を更新する必要
が生じた場合(ステップ800)、制御装置10はファ
イルテーブル11を参照し、ファイル全体領域31に該
当ファイル81が存在するかを判定する(ステップ80
1)。ファイル81が存在したら、ファイル全体領域3
1のファイル81を更新する(ステップ802)。ファ
イル81が存在しなかったら、ファイルテーブル11を
参照し、ファイル一部領域32にファイル81の先頭か
らの一部が存在するかを判定する(ステップ803)。
FIG. 5 shows an example of the control flow when updating a file. When it becomes necessary to update the file 81 (step 800), the control device 10 refers to the file table 11 and determines whether the corresponding file 81 exists in the entire file area 31 (step 80).
1). If file 81 exists, the entire file area 3
1 file 81 is updated (step 802). If the file 81 does not exist, the file table 11 is referred to and it is determined whether a portion from the beginning of the file 81 exists in the file partial area 32 (step 803).

【0023】ファイル81の先頭からの一部がファイル
一部領域32に存在したら、ファイル一部領域32のフ
ァイル81の先頭からの一部を更新する(ステップ80
4)。もしファイル81の先頭からの一部に引き続いた
ファイル81の残りの部分を更新する必要があれば、フ
ァイル81の残りの部分を読みだすように2次記憶装置
20へ命令する(ステップ805)。2次記憶装置20
はファイル81の残りの部分を読みだして制御装置10
に転送し、制御装置10はファイル81の残りの部分を
更新する(ステップ806)。さらに、制御装置10は
ファイルテーブル11のファイル81に関するアクセス
回数に1を加えて更新し、アクセス回数がαを越えてい
るかを判定する(ステップ807)。αを越えていなか
ったら終了する。
If the part from the beginning of the file 81 exists in the partial file area 32, the part from the beginning of the file 81 in the partial file area 32 is updated (step 80).
4). If it is necessary to update the remaining part of the file 81 following the part from the beginning of the file 81, the secondary storage device 20 is commanded to read the remaining part of the file 81 (step 805). Secondary storage device 20
reads the remaining part of the file 81 and sends it to the control device 10.
The control device 10 updates the remaining portion of the file 81 (step 806). Further, the control device 10 updates the number of accesses regarding the file 81 in the file table 11 by adding 1, and determines whether the number of accesses exceeds α (step 807). If it does not exceed α, terminate.

【0024】αを越えていたら、ファイル全体領域31
がβを越えているかを判定する(ステップ808)。β
を越えていなかったら、ファイル81の全体をファイル
全体領域31の未使用領域に書き込む(ステップ809
)。βを越えていたら、ファイルテーブル11を参照し
、ファイル一部領域32の既使用領域がγを越えている
かを判定する(ステップ810)。γを越えていなかっ
たら、LRUアルゴリズム等を用いてファイル全体領域
31からファイル一部領域32へデステージングすべき
ファイル82を決定し、ファイル一部領域32の未使用
領域にファイル82の先頭から一部を書き込む。ファイ
ル一部領域32のファイル82の領域を未使用領域とし
、ファイルテーブル11のファイル82に関するアクセ
ス回数に1を減じて更新する(ステップ811)。その
後、ファイル81をファイル全体領域31の未使用領域
に書き込む(ステップ812)。ステップ810のチェ
ックでγを越えていたら、LRUアルゴリズム等を用い
てファイル一部領域32から2次記憶装置20へデステ
ージングすべきファイル83を決定する。ファイル83
の領域を未使用領域とし、ファイルテーブル11のファ
イル83に関するアクセス回数に1を減じて更新する(
ステップ813)。その後、ファイル全体領域31から
ファイル一部領域32の未使用領域にファイル82を書
き込み、ファイル全体領域31のファイル82の領域を
未使用領域とし、ファイルテーブル11のファイル82
に関するアクセス回数に1を減じて更新する(ステップ
811)。ファイル全体領域31の未使用領域にファイ
ル81を書き込む(ステップ812)。
[0024] If it exceeds α, the entire file area 31
It is determined whether or not exceeds β (step 808). β
If it has not exceeded the limit, the entire file 81 is written to an unused area of the entire file area 31 (step 809).
). If it exceeds β, the file table 11 is referred to and it is determined whether the used area of the partial file area 32 exceeds γ (step 810). If it does not exceed γ, the file 82 to be destaged from the entire file area 31 to the partial file area 32 is determined using an LRU algorithm, etc. Write the part. The area of the file 82 in the file partial area 32 is set as an unused area, and the number of accesses regarding the file 82 in the file table 11 is updated by subtracting 1 (step 811). Thereafter, the file 81 is written to an unused area of the entire file area 31 (step 812). If γ is exceeded in the check at step 810, the file 83 to be destaged from the file partial area 32 to the secondary storage device 20 is determined using an LRU algorithm or the like. File 83
The area is set as an unused area, and the number of accesses related to file 83 in the file table 11 is updated by subtracting 1 (
step 813). After that, the file 82 is written from the entire file area 31 to the unused area of the partial file area 32, the area of the file 82 of the entire file area 31 is made an unused area, and the file 82 of the file table 11 is
The number of accesses related to the process is updated by subtracting 1 from the number of accesses (step 811). The file 81 is written in an unused area of the entire file area 31 (step 812).

【0025】ステップ803のチェックにおいてファイ
ル81の一部がファイル一部領域32に存在しなかった
ら、ファイル81を読みだすように2次記憶装置20へ
命令する(ステップ814)。2次記憶装置20はファ
イル81を読みだして制御装置10に転送する。制御装
置10はファイル81を更新し、ファイルテーブル11
のファイル81に関するアクセス回数に1を加えて更新
する(ステップ815)。さらに、制御装置10はバッ
ファ記憶容量テーブル12を参照し、ファイル一部領域
32の既使用容量がγを越えていないかを判定する(ス
テップ816)。γを越えていなかったら、ファイル8
1の先頭の一部をファイル一部領域32の未使用領域に
書き込む(ステップ817)。γを越えていたら、LR
Uアルゴリズム等を用いてファイル一部領域32から2
次記憶装置20へデステージングすべきファイル83を
決定する。ファイル83の領域を未使用領域とし、ファ
イルテーブル11のファイル83に関するアクセス回数
に1を減じて更新する(ステップ818)。その後、フ
ァイル一部領域32の未使用領域にファイル81の先頭
の一部を書き込む(ステップ817)。
If it is determined in step 803 that part of the file 81 does not exist in the partial file area 32, the secondary storage device 20 is commanded to read the file 81 (step 814). The secondary storage device 20 reads the file 81 and transfers it to the control device 10. The control device 10 updates the file 81 and updates the file table 11.
The number of accesses regarding file 81 is updated by adding 1 (step 815). Further, the control device 10 refers to the buffer storage capacity table 12 and determines whether the used capacity of the partial file area 32 does not exceed γ (step 816). If it does not exceed γ, file 8
1 is written into an unused area of the partial file area 32 (step 817). If it exceeds γ, LR
From file partial area 32 to 2 using U algorithm etc.
The file 83 to be destaged to the next storage device 20 is determined. The area of the file 83 is set as an unused area, and the number of accesses regarding the file 83 in the file table 11 is updated by subtracting 1 (step 818). Thereafter, a portion of the beginning of the file 81 is written into an unused area of the partial file area 32 (step 817).

【0026】なお、新規ファイル61、更新ファイル8
1の2次記憶装置20への書き込みは、ファイルテーブ
ル11のステージング識別フラグを参照し、システムの
要求性能等を勘案してリアルタイムで行うかオフライン
で行うかを決めれば良い。
[0026] Note that the new file 61 and the updated file 8
For writing to the secondary storage device 20 of No. 1, it may be determined whether to perform it in real time or off-line by referring to the staging identification flag of the file table 11 and taking into consideration the required performance of the system.

【0027】以上本実施例では、2次記憶装置20は固
定媒体記憶装置のように述べたが、可換媒体を自動的に
交換する媒体自動交換型記憶装置(駆動装置、媒体自動
交換装置、媒体格納庫等から構成される)でも、本実施
例により当業者に容易に理解されるであろう。また、本
実施例で用いたテーブル類の書式、制御フロー例は一例
であって、本発明の具体的な実施方法に応じて任意に設
計し得るものである。
In this embodiment, the secondary storage device 20 has been described as a fixed media storage device, but it may also be an automatic media exchange type storage device (drive device, automatic media exchange device, etc.) that automatically exchanges removable media. (consisting of a media storage, etc.) will be easily understood by those skilled in the art from this embodiment. Furthermore, the table formats and control flow examples used in this embodiment are merely examples, and can be arbitrarily designed according to the specific implementation method of the present invention.

【0028】[0028]

【発明の効果】以上説明したように、本発明によれば、
2次記憶手段に記憶されているファイルのうちの一部の
ファイルの全体および残りの一部のファイルの一部をバ
ッファ記憶手段に記憶し、所望のファイルに対してアク
セスが生じたとき、該所望のファイルが前記バッファ記
憶手段内に記憶されているか否かを判定し、所望のファ
イルの全体がバッファ記憶手段に記憶されているとき、
所望のファイルの全体をバッファ記憶手段から読み出し
、所望のファイルの一部がバッファ記憶手段に記憶され
ているとき、所望のファイルの一部をバッファ記憶手段
から読み出すとともに所望のファイルの残りの部分を2
次記憶手段から読み出し、所望のファイルがバッファ記
憶手段に記憶されていないとき、所望のファイルを2次
記憶手段から読み出すように制御しているので、従来の
方式に比較して、大量のファイルをバッファ記憶手段に
記憶することができ、バッファ記憶手段に記憶されたフ
ァイルに対するヒット率を飛躍的に高めることができ、
更に所望のファイルの一部がバッファ記憶手段に記憶し
ているときには、所望のファイルをバッファ記憶手段か
ら読み出している間に、2次記憶手段をアクセスして、
該2次記憶手段から該所望のファイルの残りの部分を遅
れなく読み出すことができ、システムの性能の低下を防
止することができる。また、バッファ記憶手段に記憶す
るファイルはアクセス回数により決定されるので、例え
ば間違ったファイルへのアクセス(このようなアクセス
は通常1回のみである)に対して、間違ったファイルを
バッファ記憶手段にステージングすることを防止し、バ
ッファ記憶手段を有効に活用することができる。
[Effects of the Invention] As explained above, according to the present invention,
The entirety of some of the files stored in the secondary storage means and a portion of the remaining files are stored in the buffer storage means, and when a desired file is accessed, the corresponding determining whether a desired file is stored in the buffer storage means, and when the entire desired file is stored in the buffer storage means;
When the entire desired file is read from the buffer storage means and a part of the desired file is stored in the buffer storage means, the part of the desired file is read from the buffer storage means and the remaining part of the desired file is stored. 2
When the desired file is read from the secondary storage means and the desired file is not stored in the buffer storage means, the desired file is read from the secondary storage means, so compared to the conventional method, a large number of files can be stored. can be stored in the buffer storage means, and the hit rate for files stored in the buffer storage means can be dramatically increased;
Furthermore, when a part of the desired file is stored in the buffer storage means, the secondary storage means is accessed while the desired file is being read from the buffer storage means,
The remaining portion of the desired file can be read out from the secondary storage means without delay, and system performance can be prevented from deteriorating. In addition, since the files to be stored in the buffer storage means are determined by the number of accesses, for example, if the wrong file is accessed (usually only once), the wrong file is stored in the buffer storage means. Staging can be prevented and buffer storage means can be effectively utilized.

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

【図1】本発明の一実施例に係わる記憶システム制御方
式の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a storage system control method according to an embodiment of the present invention.

【図2】図1に示した記憶システム制御方式に使用され
るファイルテーブルおよびバッファ記憶容量テーブルの
構成を示す図である。
FIG. 2 is a diagram showing the configuration of a file table and a buffer storage capacity table used in the storage system control method shown in FIG. 1;

【図3】図1の記憶システム制御方式のファイル書き込
み時の作用を示すフローチャートである。
FIG. 3 is a flowchart showing the operation of the storage system control method of FIG. 1 when writing a file;

【図4】図1の記憶システム制御方式のファイル読み出
し時の作用を示すフローチャートである。
4 is a flowchart showing the operation of the storage system control method of FIG. 1 when reading a file; FIG.

【図5】図1の記憶システム制御方式のファイル更新時
の作用を示すフローチャートである。
FIG. 5 is a flowchart showing the operation of the storage system control method of FIG. 1 when updating a file.

【符号の説明】[Explanation of symbols]

10  制御装置 11  ファイルテーブル 12  バッファ記憶装置テーブル 30  バッファ記憶装置 31  ファイル全体領域 32  ファイル一部領域 10 Control device 11 File table 12 Buffer storage device table 30 Buffer storage device 31 Entire file area 32 File part area

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  全ファイルを記憶している大容量の2
次記憶手段と、該2次記憶手段に記憶されているファイ
ルのうちの一部のファイルの全体および前記2次記憶手
段に記憶されているファイルのうちの残りの一部のファ
イルの一部を記憶するバッファ記憶手段と、所望のファ
イルに対してアクセスが生じたとき、該所望のファイル
が前記バッファ記憶手段内に記憶されているか否かを判
定する判定手段と、該判定手段の判定結果に基づいて前
記所望のファイルの全体が前記バッファ記憶手段に記憶
されていると判定されたとき、前記所望のファイルの全
体を前記バッファ記憶手段から読み出し、前記所望のフ
ァイルの一部が前記バッファ記憶手段に記憶されている
と判定されたとき、前記所望のファイルの一部を前記バ
ッファ記憶手段から読み出すとともに該所望のファイル
の残りの部分を前記2次記憶手段から読み出し、前記所
望のファイルが前記バッファ記憶手段に記憶されていな
いと判定されたとき、前記所望のファイルを前記2次記
憶手段から読み出すように制御する読み出し制御手段と
を有することを特徴とする記憶システム制御方式。
[Claim 1] A large-capacity storage device that stores all files.
a second storage means, the whole of some of the files stored in the secondary storage means, and a part of the remaining files of the files stored in the secondary storage means; a buffer storage means for storing; a determination means for determining whether or not a desired file is stored in the buffer storage means when a desired file is accessed; and a determination result of the determination means. When it is determined that the entire desired file is stored in the buffer storage means, the entire desired file is read out from the buffer storage means, and a part of the desired file is stored in the buffer storage means. When it is determined that the desired file is stored in the buffer storage means, a part of the desired file is read out from the buffer storage means and the remaining part of the desired file is read out from the secondary storage means, and the desired file is stored in the buffer storage means. 1. A storage system control method, comprising read control means for controlling the desired file to be read from the secondary storage means when it is determined that the desired file is not stored in the storage means.
【請求項2】  ファイルへのアクセス回数に基づいて
前記バッファ記憶手段に記憶されるファイルを決定する
手段を有することを特徴とする請求項1記載の記憶シス
テム制御方式。
2. The storage system control method according to claim 1, further comprising means for determining the file to be stored in the buffer storage means based on the number of accesses to the file.
JP3019037A 1991-02-12 1991-02-12 Storage system control method Expired - Fee Related JP2773986B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3019037A JP2773986B2 (en) 1991-02-12 1991-02-12 Storage system control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3019037A JP2773986B2 (en) 1991-02-12 1991-02-12 Storage system control method

Publications (2)

Publication Number Publication Date
JPH04257018A true JPH04257018A (en) 1992-09-11
JP2773986B2 JP2773986B2 (en) 1998-07-09

Family

ID=11988241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3019037A Expired - Fee Related JP2773986B2 (en) 1991-02-12 1991-02-12 Storage system control method

Country Status (1)

Country Link
JP (1) JP2773986B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011521356A (en) * 2008-05-16 2011-07-21 パラセル,インコーポレイテッド Optimize storage performance

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0283614A (en) * 1988-09-20 1990-03-23 Fujitsu Ltd Storage information readout system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0283614A (en) * 1988-09-20 1990-03-23 Fujitsu Ltd Storage information readout system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011521356A (en) * 2008-05-16 2011-07-21 パラセル,インコーポレイテッド Optimize storage performance
US8924357B2 (en) 2008-05-16 2014-12-30 Paraccel Llc Storage performance optimization

Also Published As

Publication number Publication date
JP2773986B2 (en) 1998-07-09

Similar Documents

Publication Publication Date Title
US6148367A (en) Controller limiting modification of cache based upon amount of dirty lines in the cache
US5226141A (en) Variable capacity cache memory
US5257352A (en) Input/output control method and system
JPH0427580B2 (en)
JPS6367686B2 (en)
US5727232A (en) Disk system having buffer with designated area to be used for repeat access data
US5420983A (en) Method for merging memory blocks, fetching associated disk chunk, merging memory blocks with the disk chunk, and writing the merged data
US4419725A (en) Cache/disk subsystem with tagalong copy
US6219750B1 (en) Disk drive having control mechanism to reduce or eliminate redundant write operations and the method thereof
US7434026B2 (en) Disk array device and virtual volume management method using a logical table and a physical table
JP2773986B2 (en) Storage system control method
JP3882461B2 (en) Storage device system and backup acquisition method thereof
EP0656588B1 (en) Storage device
JP2636470B2 (en) Data transfer path selection method
JP3200252B2 (en) Disk cache control method
JP4197547B2 (en) Data storage device and data management method
JP2005166073A (en) Control device and control method of storage device
JP3157673B2 (en) Virtual storage system
JPS62130440A (en) Cache subsystem
JP2634867B2 (en) Disk cache data transfer control method
JPH08137753A (en) Disk cache device
JP2973474B2 (en) Magneto-optical disk drive
JP3721338B2 (en) Storage device control device and control method
JP2569773B2 (en) Storage subsystem
JP4059469B2 (en) Data management control apparatus, control method, and recording medium recording program for executing control process

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees