Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0776935B2 - Record storage method - Google Patents
[go: Go Back, main page]

JPH0776935B2 - Record storage method - Google Patents

Record storage method

Info

Publication number
JPH0776935B2
JPH0776935B2 JP2006470A JP647090A JPH0776935B2 JP H0776935 B2 JPH0776935 B2 JP H0776935B2 JP 2006470 A JP2006470 A JP 2006470A JP 647090 A JP647090 A JP 647090A JP H0776935 B2 JPH0776935 B2 JP H0776935B2
Authority
JP
Japan
Prior art keywords
page
storage device
pages
record
stored
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.)
Expired - Lifetime
Application number
JP2006470A
Other languages
Japanese (ja)
Other versions
JPH03211637A (en
Inventor
浩 酒井
Original Assignee
工業技術院長
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 工業技術院長 filed Critical 工業技術院長
Priority to JP2006470A priority Critical patent/JPH0776935B2/en
Publication of JPH03211637A publication Critical patent/JPH03211637A/en
Publication of JPH0776935B2 publication Critical patent/JPH0776935B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は2次記憶装置と複数のプロセッサを備えた並列
処理装置における上記2次記憶装置へのレコード格納方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION Object of the Invention (Field of Industrial Application) The present invention relates to a record storage system in a secondary storage device in a parallel processing device having a secondary storage device and a plurality of processors.

(従来の技術) データベースを初めとする多くの情報処理システムで
は、一般的に種々の情報をレコードとして2次記憶装置
に格納することが行なわれる。しかして2次記憶装置は
そのデータ入出力を、或る一定長のデータを単位として
行なうように構成されている。この為、2次記憶装置に
種々の大きさのレコードをそれぞれ1つずつ個別に格納
することはできない。
(Prior Art) In many information processing systems including a database, various kinds of information are generally stored as records in a secondary storage device. Then, the secondary storage device is configured to input and output the data in units of data of a certain fixed length. Therefore, it is not possible to individually store records of various sizes in the secondary storage device.

そこで従来では、種々の大きさのレコードを2次記憶装
置に格納する場合、ページと称される或る一定長のレコ
ード領域を定義し、このページを単位として種々の大き
さの情報(レコード)を2次記憶装置に格納することが
行われている。
Therefore, conventionally, when storing records of various sizes in the secondary storage device, a record area of a certain fixed length called a page is defined, and information (records) of various sizes is defined with this page as a unit. Are stored in a secondary storage device.

即ち、第5図に示すように、例えば2次記憶装置に格納
しようとする種々のレコードの中で最大の大きさを持つ
レコードが1ページに納まるように定められたページ
に、1つまたは複数のレコードをそのページ長を越えな
い範囲でまとめて格納するようにしている。この際、そ
のページの例えば先頭部に設定された管理領域には、そ
のページに格納されたレコードの数やそのページ数等の
情報が格納される。第5図に示す例ではそのページに
[n]個のレコードが格納され、ページ数が[1]であ
ることを示す情報が格納される。
That is, as shown in FIG. 5, for example, one or a plurality of records are set so that the record having the maximum size among various records to be stored in the secondary storage device is contained in one page. Records are stored together as long as they do not exceed the page length. At this time, information such as the number of records stored on the page and the number of pages is stored in the management area set at the beginning of the page, for example. In the example shown in FIG. 5, [n] records are stored in that page, and information indicating that the number of pages is [1] is stored.

ところが2次記憶装置のデータ入出力特性等から、その
ページ長をレコードの最大長に合わせて設定するにも限
度がある。つまり2次記憶装置に対して設定されるペー
ジの大きさ(ページ長)には自ずと制約がある。この
為、往々にしてページ長を越えるレコードが出現するこ
とが否めない。
However, due to the data input / output characteristics of the secondary storage device, there is a limit in setting the page length in accordance with the maximum record length. That is, the size of the page (page length) set in the secondary storage device is naturally limited. Therefore, it is undeniable that records exceeding the page length often appear.

このような場合、従来一般的には、例えば第6図に示す
ように連続した複数のページを用い、ページ長より大き
いレコードをこれらの複数のページに連続的に分散させ
て格納することが行われる。この第6図に示す例ではm
個の連続したページを用いて1つのレコードをその1番
目のページから順に連続的に格納される。尚、この場合
には、1番目のページの先頭部に設定された管理領域に
[1]個のレコードが格納され、その使用ページ数が
[m]であることを示す情報が格納される。
In such a case, conventionally, a plurality of continuous pages are generally used, for example, as shown in FIG. 6, and it is possible to store records having a page length longer than the page length by continuously distributing the records. Be seen. In the example shown in FIG. 6, m
One continuous record is sequentially stored from the first page using the continuous pages. In this case, [1] records are stored in the management area set at the beginning of the first page, and information indicating that the number of used pages is [m] is stored.

このようにして連続した複数ページに亘って1つのレコ
ードを格納した第6図に示すようなページが『非完結ペ
ージ』と称される。これに対して前述した第5図に示す
ように、1つのページに格納できる範囲内で1個以上の
レコードを詰め込んだページが『完結ページ』と称され
る。
A page as shown in FIG. 6 in which one record is stored over a plurality of continuous pages in this way is called an "incomplete page". On the other hand, as shown in FIG. 5 described above, a page packed with one or more records within a range that can be stored in one page is called a “complete page”.

ところで情報処理の技術分野では複数台のプロセッサを
備えた並列処理装置の開発が種々進められ、機能分散し
た並列処理により効率的に、且つ高速度にその情報処理
を実行することが行われている。データベース処理の技
術分野でもこの種の並列処理の導入が試みられ、種々の
方式が提案されている。
By the way, in the technical field of information processing, various developments of a parallel processing device including a plurality of processors have been advanced, and the information processing is executed efficiently and at high speed by parallel processing in which functions are distributed. . In the technical field of database processing, the introduction of this kind of parallel processing has been tried, and various methods have been proposed.

さてデータベース処理における最も基本的な処理は「2
次記憶装置に格納されている複数のレコードのうち、或
る検索条件を満たすレコードを選択的に取出す」と云う
処理である。
Now, the most basic processing in database processing is "2.
Of the plurality of records stored in the next storage device, a record satisfying a certain search condition is selectively taken out. "

このような検索処理を複数のプロセッサを備え並列処理
装置にて実現する場合には、基本的には、例えば「各
プロセッサは他のプロセッサとの間で何等かの手段を用
いて同期をとり、2次記憶装置における処理対象の各ペ
ージについて、それを処理するプロセッサを決める。
その上で選択決定されたプロセッサでは、該当するペー
ジを2次記憶装置から当該プロセッサの主記憶装置に読
み出し、その中に詰められているレコードについて与え
られた検索条件を満たすかどうか調べる。」と云う処理
手続きが行われることになる。
When such a search process is realized by a parallel processing device having a plurality of processors, basically, for example, "each processor synchronizes with another processor using some means, For each page to be processed in the secondary storage device, a processor that processes the page is determined.
The processor selected and determined then reads the corresponding page from the secondary storage device to the main storage device of the processor, and checks whether the given search condition is satisfied for the records packed therein. The processing procedure "" will be performed.

このような処理手続きは、複数のプロセッサそれぞれ
に、例えば第7図に示すようなプログラムを実行させる
ことにより実現される。但し、第7図に示すプログラム
中のwait(S)とsignal(S)は、その間の処理を実行
するプロセッサが高々1つであることを保証する為の手
段である。即ち、このプログラムでは、例えば或るプロ
セッサAがwait(S)を実行する時,仮にwait(S)か
らsignal(S)までの部分を実行している別のプロセッ
サBがあれば、上記プロセッサAはプロセッサBがsign
al(S)を実行するまでwait(S)から先に進めないよ
うになっている。
Such a processing procedure is realized by causing each of a plurality of processors to execute a program as shown in FIG. 7, for example. However, wait (S) and signal (S) in the program shown in FIG. 7 are means for ensuring that at most one processor executes the processing between them. That is, in this program, for example, when a certain processor A executes wait (S), if there is another processor B executing the part from wait (S) to signal (S), the above processor A Is processor B sign
Until al (S) is executed, wait (S) cannot proceed.

尚、このような排他処理機能については下記の文献等に
詳しく紹介される。
Incidentally, such an exclusive processing function will be introduced in detail in the following documents and the like.

『ブリンクハンセン著,田中穂積他訳“オペレーティン
グシステムの原理”近代科学社刊』 ところが通常の並列処理装置の場合、第7図に示すプロ
グラムのwait(S)からsignal(S)までの処理に要す
る時間は、2次記憶装置から主記憶装置に対して第Pペ
ージの読み出し[read(P)]に要する時間,および主
記憶装置に読出した第Pページに対する検索条件判定処
理に要する時間の[数百〜数万分の1]である。これ
故、上記プログラムのwait(S)からsignal(S)まで
の処理時間については、その間には高々1台のプロセッ
サでしか処理の実行できないとしても、さほど問題とな
ることはない。
"Blink Hansen, translated by Hozumi Tanaka, et al.," Operating System Principles, "published by Modern Science Co., Ltd. However, in the case of an ordinary parallel processing device, the processing from wait (S) to signal (S) of the program shown in FIG. 7 is required. The time is [the number of times required for reading the P-th page [read (P)] from the secondary storage device to the main storage device and the time required for the search condition determination process for the P-th page read to the main storage device. 100 to several tens of thousands]. Therefore, regarding the processing time from the wait (S) to the signal (S) of the above-mentioned program, even if only one processor at most can execute the processing during that time, it does not cause much problem.

然し乍ら、2次記憶装置から主記憶装置に対して読み出
されるページに前述した非完結ページが含まれている場
合、第7図に示すプログラムでは不具合が生じる。即
ち、ページの大きさを超えるレコードを格納した連続ペ
ージ(非完結ページ)の処理は1台のプロセッサで行な
う必要があるにも拘らず、第7図に示すプログラムでは
そのことが全く考慮されていない。この為、上記連続ペ
ージ(非完結ページ)に格納されたレコードがそのペー
ジ毎に異なるプロセッサの主記憶装置にそれぞれ読み出
されてしまう虞れがある。
However, if the page read from the secondary storage device to the main storage device includes the above-mentioned incomplete page, the program shown in FIG. 7 has a problem. That is, although it is necessary for a single processor to process continuous pages (non-completed pages) that store records exceeding the page size, the program shown in FIG. 7 takes this into consideration. Absent. For this reason, the records stored in the continuous pages (non-completed pages) may be read into the main storage devices of different processors for each page.

そこでこのような非完結ページが含まれるレコードを2
次記憶装置から読み出す場合には、各プロセッサにおい
ては、例えば第8図に示すようなプログラムがそれぞれ
実行される。
Therefore, if there are two records containing such a non-completed page,
When reading from the next storage device, a program as shown in FIG. 8 is executed in each processor.

このプログラムwait(S)とsignal(S)との間で、2
次記憶装置から主記憶装置への第Pページの読み出し
[read(P)]を行ない、その上で読出したページにつ
いて前述した管理領域に記述されている情報からその連
結ページ数を求め、読み出しページPをその数(連結ペ
ージ数)だけ進めるように構成されている。そしてこの
処理が終了した後に前述したsignal(S)を実行するよ
うになっている。
Between this program wait (S) and signal (S), 2
The P-th page is read [read (P)] from the next storage device to the main storage device, the number of linked pages is obtained from the information described in the management area for the read page, and the read page is read. It is configured to advance P by that number (the number of connected pages). Then, after this processing is completed, the above-mentioned signal (S) is executed.

従ってこのような対策を施した第8図に示すプログラム
では、wait(S)とsignal(S)との間の処理に要する
時間が、それ以外の処理に要する時間と略同程度になる
ことが否めない。その結果、プロセッサ台数を増やして
並列処理を実行するようにしても、その全体的な処理時
間をさほど短縮することができないという問題が生じ
る。
Therefore, in the program shown in FIG. 8 in which such measures are taken, the time required for the processing between wait (S) and signal (S) may be approximately the same as the time required for other processing. can not deny. As a result, even if the number of processors is increased and parallel processing is executed, there arises a problem that the overall processing time cannot be shortened so much.

(発明が解決しようとする課題) このように従来のレコード格納方式は、基本的には1台
のプロセッサによる処理を念頭に開発されており、非完
結ページを含むコードを2次記憶装置に格納する場合、
その連結ページ数を当該ページの、例えば先頭部に設定
された管理領域に記録して管理するものとなっている。
しかしこのようにしてレコードを格納する方式では、そ
の連結ページ数を知る為には、そのページを2次記憶装
置から主記憶装置に一々読み出す必要がある。これ故、
並列処理を行うには前述した第8図に示すプログラムの
ように連結ページ数を調べて非完結ページのレコードを
連続的に読み出す必要があり、プロセッサの台数を増や
しても処理時間の短縮をさほど見込むことができないと
云う問題があった。つまり連結ページ数を調べる処理に
時間が掛かる為、並列処理の多重度が上がらないという
問題があった。
(Problems to be Solved by the Invention) As described above, the conventional record storage method is basically developed with a single processor in mind, and stores a code including an incomplete page in the secondary storage device. If you do
The number of connected pages is recorded and managed in, for example, a management area set at the head of the page.
However, in the method of storing records in this way, in order to know the number of connected pages, it is necessary to read the pages from the secondary storage device to the main storage device one by one. Therefore,
In order to perform parallel processing, it is necessary to check the number of linked pages and continuously read the records of uncompleted pages as in the program shown in FIG. 8 described above. Even if the number of processors is increased, the processing time can be shortened considerably. There was a problem that I could not anticipate. In other words, there is a problem that the multiplicity of parallel processing cannot be increased because it takes time to process the number of linked pages.

本発明はこのような事情を考慮してなされたもので、そ
の目的とするところは、非連結ページを含むレコードを
2次記憶装置から複数のプロセッサの主記憶装置に選択
的に読み出す際、各ページについての連結ページ数を調
べる為の処理を高速化し、複数のプロセッサを用いた並
列処理の多重度を高めて全体的な処理時間の短縮化を図
ることのできる実用性の高いレコード格納方式を提供す
ることにある。
The present invention has been made in consideration of such circumstances, and an object thereof is to selectively read a record including a non-concatenated page from a secondary storage device to a main storage device of a plurality of processors. A highly practical record storage method that can speed up the processing for checking the number of concatenated pages for each page and increase the multiplicity of parallel processing using multiple processors to reduce the overall processing time To provide.

[発明の構成] (課題を解決するための手段) 本発明に係るレコード格納方式は、2次記憶装置とそれ
ぞれが主記憶装置を具備する複数のプロセッサとを備
え、上記2次記憶装置に一定長のページを単位として格
納された種々の大きさのレコードを前記プロセッサに選
択的に読み出して並列処理する並列処理装置のレコード
格納方式において、ページ長を越えない1つまたは複数
のレコードはそのページ長を越えない範囲でまとめて1
ページとし、ページ長を越えるレコードについては連続
する複数のページに分けて、当該レコードを前記2次記
憶装置中に格納するレコード格納手段と、このレコード
格納手段がレコードを格納する際、各ページについての
連結ページ数の情報を、前記2次記憶装置中の上記各ペ
ージの格納領域とは別に設定された格納領域に格納する
連結ページ数情報格納手段と、前記2次記憶装置に格納
されたレコードを前記複数のプロセッサがそれぞれ読み
出す際に各プロセッサは前記連結ページ数情報格納手段
によって格納された連結ページ数情報を排他的に当該各
プロセッサの主記憶装置に読み出す読み出し手段と、こ
の読み出し手段が読み出した連結ページ数情報を参照し
て当該プロセッサが読み出すページを決定する読み出し
ページ決定手段とを有することを特徴とするものであ
る。
[Structure of the Invention] (Means for Solving the Problems) A record storage system according to the present invention includes a secondary storage device and a plurality of processors each having a main storage device, and is fixed in the secondary storage device. In a record storage system of a parallel processing device that selectively reads records of various sizes stored in units of long pages into the processor and processes them in parallel, one or a plurality of records that do not exceed the page length is the page. Collectively within the range of 1
Records that exceed the page length are divided into a plurality of consecutive pages, and the record storage means for storing the records in the secondary storage device, and each page when the record storage means stores the record Connected page number information storage means for storing information on the number of linked pages in a storage area set separately from the storage area for each page in the secondary storage device, and a record stored in the secondary storage device. When each of the plurality of processors reads out, each processor exclusively reads out the concatenated page number information stored by the concatenated page number information storing means into the main storage device of the processor, and the reading means reads And a read page determining means for determining the page to be read by the processor by referring to the linked page number information. It is characterized in that it has.

(作 用) 本発明によれば、各ページについての連結ページ数の情
報が、当該ページの格納領域とは別の格納領域、例えば
2次記憶装置或いは他のプロセッサの主記憶装置に格納
されているので、一定長のページを単位として2次記憶
装置に格納された種々の大きさのレコードを複数のプロ
セッサの中の1つに選択的に読み出す際、上記連結ペー
ジ数情報を格納した別領域から連結ページ数情報を排他
的に当該プロセッサの主記憶装置に読み出し、この読み
出した連結ページ数情報を参照して当該プロセッサが読
み出すページ、例えばレコード単位の複数のページを決
定し読み出しを行う。これにより、従来のように各ペー
ジについての連結ページ数を調べるべく、その都度、当
該ページを2次記憶装置から主記憶装置に読み出す必要
がなくなる。
(Operation) According to the present invention, information on the number of linked pages for each page is stored in a storage area different from the storage area of the page, for example, in a secondary storage device or a main storage device of another processor. Therefore, when the records of various sizes stored in the secondary storage device in units of a fixed length page are selectively read out to one of the plurality of processors, another area in which the information about the number of linked pages is stored. To read the concatenated page number information exclusively to the main memory of the processor, determine the page to be read by the processor, for example, a plurality of pages in record units, and read the information. This eliminates the need to read the page from the secondary storage device to the main storage device each time in order to check the number of linked pages for each page as in the conventional case.

この結果、連結ページ数を調べる為の処理が非常に単純
化され、その処理速度を高速化することが可能となり、
全体的な処理時間の短縮化を図ることが可能となる。
As a result, the processing for checking the number of linked pages is greatly simplified, and the processing speed can be increased.
It is possible to reduce the overall processing time.

(実施例) 以下、図面を参照して本発明の一実施例に係るレコード
格納方式について説明する。
(Embodiment) Hereinafter, a record storage method according to an embodiment of the present invention will be described with reference to the drawings.

この実施例方式は、2次記憶装置と複数のプロセッサと
を備え、上記2次記憶装置に一定長のページを単位とし
て格納された種々の大きさのレコードを前記複数のプロ
セッサの中の1つに選択的に読み出しながら複数のプロ
セッサにて並列処理するように構成された並列処理装置
に適用されるものである。
This embodiment system includes a secondary storage device and a plurality of processors, and records of various sizes stored in the secondary storage device in units of pages of a certain length are stored in one of the plurality of processors. The present invention is applied to a parallel processing device configured to perform parallel processing by a plurality of processors while selectively reading.

この実施例方式は、一定長のページを単位とし、ページ
長を超えない1つまたは複数のレコードをそのページ長
を超えない範囲でまとめて1ページに格納する(完結ペ
ージ)と共に、ページ長を超えるレコードについては連
続する複数のページに分けて格納する(非完結ページ)
に際し、例えば第1図にその概念を示すように、各ペー
ジ(完結ページaおよび非完結ページb)についての連
結ページ数cの情報を2次記憶装置中の別の領域に設定
されたファイルdに格納するようにしたことを特徴とす
るものである。
In this embodiment, a page of a fixed length is used as a unit, and one or more records that do not exceed the page length are collectively stored in one page within the range that does not exceed the page length (complete page), and the page length is Store the records that exceed the limit by dividing them into multiple consecutive pages (incomplete page)
In this case, for example, as shown in the concept of FIG. 1, the information of the number of linked pages c for each page (completed page a and non-completed page b) is set in a file d set in another area in the secondary storage device. It is characterized in that it is stored in.

尚、この第1図では第1ページ目が完結ページa、第2
ページ目から第4ページ目までの連続する3ページが非
完結ページb、そして第5ページ目が完結ページaとな
っている。そしてこれらの各ページa,bの斜線部が、そ
のページにおける未使用領域をそれぞれ示している。し
かして各ページについての連結ページ数の情報を格納す
る別ファイルdには、この例では前述した各ページに順
に対応して[1,3,0,0,1,〜]なる連結ページ数の情報が
それぞれ格納される。但し、連結ページ数の情報[0]
は、そのページが先のページに連結されていることを示
している。
In FIG. 1, the first page is the completed page a and the second page is
Three consecutive pages from the fourth page to the fourth page are uncompleted pages b, and the fifth page is completed pages a. The shaded areas of each of the pages a and b indicate the unused areas on that page. Then, in the separate file d that stores the information of the number of linked pages for each page, in this example, the number of linked pages of [1,3,0,0,1, ...] Information is stored respectively. However, information on the number of linked pages [0]
Indicates that the page is linked to the previous page.

しかしてこのようにして別ファイルdに格納された連結
ページ数の情報を参照して各ページについての連結ペー
ジ数を調べ、各ページa,bのレコードを複数のプロセッ
サの中の1つに選択的に読み出して並列処理する為に
は、上記別ファイルdの内容を各プロセッサの主記憶装
置上にそれぞれ読み出して各プロセッサが参照できるよ
うにする必要がある。つまり2次記憶装置からのページ
単位でのレコードの読み出しとは独立に、上記別ファイ
ルdの内容を各プロセッサの主記憶装置にそれぞれ読み
出し、連結ページ数の情報を調べ得るようにすることが
必要となる。
Thus, referring to the information on the number of linked pages stored in the separate file d in this way, the number of linked pages for each page is checked, and the record of each page a, b is selected as one of the processors. In order to read the data in parallel and perform parallel processing, it is necessary to read the contents of the separate file d into the main memory of each processor so that each processor can refer to the contents. That is, it is necessary to read the contents of the separate file d into the main storage device of each processor independently of reading the record in page units from the secondary storage device so that the information on the number of linked pages can be checked. Becomes

第3図はこのような処理機能を含んで構成されたプログ
ラムの例を示すもので、各プロセッサはこのプログラム
をそれぞれ実行することで2次記憶装置から必要なペー
ジのレコードをそれぞれ読み出すことになる。
FIG. 3 shows an example of a program configured to include such a processing function, and each processor executes the program to read a record of a required page from the secondary storage device. .

この第3図に示すプログラムについて説明すると、ここ
ではwait(S)とsignal(s)との間でこれから処理し
ようとするページについての連結ページ数を調べる処理
が行われる。
Explaining the program shown in FIG. 3, here, a process is performed between wait (S) and signal (s) to check the number of linked pages to be processed.

尚、連結ページ数の情報を格納した別ファイルdに該当
するページが既に主記憶装置上に読み出されている場合
には、それを参照するだけで良い。そうでない場合に
は、そのページに関する連結ページ数の情報を格納した
別ファイルdに該当するページを主記憶装置上に読み出
す処理が行われる。
If the page corresponding to another file d storing the information of the number of linked pages has already been read out to the main storage device, it is sufficient to refer to it. If not, a process of reading a page corresponding to another file d, which stores information on the number of linked pages related to the page, into the main storage device is performed.

しかして通常の場合、レコードの記録単位をなすページ
の大きさは一般的には4096バイト程度に設定される。こ
れに対して各ページについての連結ページ数の値を格納
するのに必要な領域は、一般的には1ページ当り2バイ
ト程度で十分である。そしてページ単位での別ファイル
dからの連結ページ数の情報の読み出しが1回行われる
と、これによって2048ページ分の連結ページ数の情報が
求められることになる。そして読み出されたページに示
される範囲内での連結ページ数の情報を参照している限
りにおいては、新たに上記別ファイルdからの連結ペー
ジ数の情報の読み出しは不要となる。
However, in a normal case, the size of the page forming the recording unit of the record is generally set to about 4096 bytes. On the other hand, the area required to store the value of the number of linked pages for each page is generally about 2 bytes per page. When the information on the number of linked pages from the separate file d is read once for each page, the information on the number of linked pages for 2048 pages is obtained. Then, as long as the information on the number of linked pages within the range indicated by the read page is referenced, it is not necessary to newly read the information on the number of linked pages from the separate file d.

このようなことからこの実施例における第3図に示すプ
ログラムの場合には、wait(S)とsignal(s)との間
で2次記憶装置から主記憶装置に対して連結ページ数の
情報を読み出す為の処理が行われる頻度は、確率論的に
2048回に1回の割合となり、その他の場合には既に読み
出されたファイルに示される連結ページ数の情報を用い
て読み出し対象とするページについての連結ページ数が
調べられることになる。
From the above, in the case of the program shown in FIG. 3 in this embodiment, information on the number of linked pages is sent from the secondary storage device to the main storage device between wait (S) and signal (s). The frequency of processing for reading is stochastic.
Once every 2048 times, in other cases, the number of linked pages for the page to be read is checked using the information of the number of linked pages shown in the already read file.

このことは従来の処理方式を示す第8図のプログラムで
は、wait(S)とsignal(s)との間で2次記憶装置か
ら主記憶装置への読み出しを毎回必要としていたことに
比較してその読み出し処理の頻度を大幅に少なくし、そ
の処理性能の大幅な改善となることを意味する。そして
wait(S)とsignal(s)との間での処理速度を高速化
し、全体的な処理時間の短縮化を図ることが可能とな
る。
This is because in the program of FIG. 8 showing the conventional processing method, reading from the secondary storage device to the main storage device is required every time between wait (S) and signal (s). This means that the frequency of the read processing is greatly reduced, and the processing performance is greatly improved. And
The processing speed between wait (S) and signal (s) can be increased, and the overall processing time can be shortened.

尚、上述した実施例では各ページに関する連結ページ数
を別のファイルdに格納するものとしているが、その他
の場所に格納するようにしても良い。
In the above-described embodiment, the number of linked pages for each page is stored in another file d, but it may be stored in another location.

例えば本来のレコードを格納するファイルを第2図に例
示するようにツリー状とし、図中最右端のページxに実
際のレコードを格納するようにする。そしてその1段左
のページyに最右端の各ページxについての2次記憶装
置中の格納場所と連結ページ数の情報をそれぞれ格納す
るようにしても良い。このようにした場合には、各ペー
ジについての連結ページ数を調べる際には、2次記憶装
置から主記憶装置に各ページxについてデータを読み出
す必要がなく、上記ページyに格納されているデータを
参照するだけで良いので、やはり大幅な性能改善が図る
ことが可能となる。
For example, the file for storing the original record is formed into a tree shape as illustrated in FIG. 2, and the actual record is stored in the page x at the right end in the figure. Then, information on the storage location in the secondary storage device and the number of linked pages for each rightmost page x may be stored in the page y on the left of the first row. In this case, when checking the number of linked pages for each page, it is not necessary to read the data for each page x from the secondary storage device to the main storage device, and the data stored for the page y is stored. Since it is only necessary to refer to, it is possible to achieve significant performance improvement.

また別の例としては、連結ページ数の情報を、2次記憶
装置とは別個に複数のプロセッサの主記憶装置上にそれ
ぞれ格納しておくようにすることも可能である。即ち、
通常の連結ページ数の値を格納するのに必要な領域は2
バイト程度であり、元のページの大きさは前述したよう
に4096バイト程度である。従って連結ページ数の情報は
本来のファイルの大きさの[2048分の1]程度であり、
連結ページ数の情報を主記憶装置上に格納しても殆ど問
題はない。
As another example, it is possible to store the information on the number of linked pages in the main storage devices of a plurality of processors separately from the secondary storage device. That is,
The area required to store the value of the normal number of linked pages is 2
The size of the original page is about 4096 bytes as described above. Therefore, the information on the number of connected pages is about [1/2048] of the original file size,
There is almost no problem even if the information on the number of linked pages is stored in the main storage device.

尚、殆どのページが完結ページであり、極一部のページ
だけが非完結ページであるような場合には、個々のペー
ジ毎に連結ページ数を格納することに代えて、各ページ
が完結ページであるか否かの情報だけを元のページとは
別に保持するようにしても良い。このようにすれば、そ
の格納領域は非常に小さくすることが可能となる。また
このような場合には、例えば第4図に示すようなプログ
ラムを実行するようにすれば良い。このようなプログラ
ムによれば、wait(S)とsignal(S)との間の処理に
要する時間の平均値を従来の方式に比べてやはり大幅に
小さくすることができ、その処理性能を十分に高めるこ
とが可能となる。その他、本発明はその要旨を逸脱しな
い範囲で種々変形して実施することができる。
If most of the pages are complete pages and only a very small number of pages are non-complete pages, instead of storing the number of linked pages for each page, each page is a complete page. It is also possible to retain only the information of whether or not it is separate from the original page. By doing so, the storage area can be made extremely small. In such a case, for example, a program as shown in FIG. 4 may be executed. According to such a program, the average value of the time required for the processing between wait (S) and signal (S) can be made significantly smaller than that of the conventional method, and the processing performance can be sufficiently improved. It is possible to raise it. In addition, the present invention can be variously modified and implemented without departing from the scope of the invention.

[発明の効果] 以上説明したように本発明によれば、2次記憶装置と複
数のプロセッサを備えた並列処理装置において、各ペー
ジに対する連結ページ数の情報を、元のページとは別の
領域に格納してレコードの読み出しを制御するので、デ
ータベースで最も基本的な処理である「2次記憶装置に
格納されているレコードのうち,或る検索条件を満たす
ものを取出す」と云う処理を実行する際、ページ長を超
えるようなレコードが含まれる場合であってもプロセッ
サ台数に見合った処理性能の向上を図ることが可能とな
る等の実用上多大なる効果が奏せられる。
[Effects of the Invention] As described above, according to the present invention, in a parallel processing device including a secondary storage device and a plurality of processors, information on the number of linked pages for each page is stored in an area different from that of the original page. Since the reading of the record is controlled by storing it in the database, the process of "fetching the record stored in the secondary storage device satisfying a certain search condition" which is the most basic process in the database is executed. In doing so, even when a record exceeding the page length is included, it is possible to achieve a great practical effect such as improvement in processing performance commensurate with the number of processors.

【図面の簡単な説明】 第1図は本発明の一実施例に係るレコード格納方式の概
念を模式的に示す図、第2図は本発明の別の実施例を示
すツリー状のレコード格納形態を模式的に示す図、第3
図および第4図はそれぞれ実施例方式を実現する上での
プロセッサにおける処理プログラムの例を示す図であ
る。 また第5図は2次記憶装置に格納される完結ページの例
を示す図、第6図は2次記憶装置に格納される非完結ペ
ージの例を示す図、第7図は完結ページに対する並列プ
ログラムの例を示す図、第8図は非完結ページを含む場
合の並列プログラムの例を示す図である。 a……完結ページ、b……非完結ページ、c……連結ペ
ージ数,d……別ファイル。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram schematically showing the concept of a record storage system according to an embodiment of the present invention, and FIG. 2 is a tree-like record storage form showing another embodiment of the present invention. The figure which shows typically, 3rd
FIG. 4 and FIG. 4 are diagrams showing an example of a processing program in the processor for realizing the embodiment system. Further, FIG. 5 is a diagram showing an example of a completed page stored in the secondary storage device, FIG. 6 is a diagram showing an example of a non-completed page stored in the secondary storage device, and FIG. 7 is a parallel to the completed page. FIG. 8 is a diagram showing an example of a program, and FIG. 8 is a diagram showing an example of a parallel program including a non-completed page. a: Completed page, b: Non-completed page, c: Number of linked pages, d: Separate file.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】2次記憶装置とそれぞれが主記憶装置を具
備する複数のプロセッサとを備え、上記2次記憶装置に
一定長のページを単位として格納された種々の大きさの
レコードを前記プロセッサに選択的に読み出して並列処
理する並列処理装置のレコード格納方式において、 ページ長を越えない1つまたは複数のレコードはそのペ
ージ長を越えない範囲でまとめて1ページとし、ページ
長を越えるレコードについては連続する複数のページに
分けて、当該レコードを前記2次記憶装置中に格納する
レコード格納手段と、 このレコード格納手段がレコードを格納する際、各ペー
ジについての連結ページ数の情報を、前記2次記憶装置
中の上記各ページの格納領域とは別に設定された格納領
域に格納する連結ページ数情報格納手段と、 前記2次記憶装置に格納されたレコードを前記複数のプ
ロセッサがそれぞれ読み出す際に各プロセッサは前記連
結ページ数情報格納手段によって格納された連結ページ
数情報を排他的に当該各プロセッサの主記憶装置に読み
出す読み出し手段と、 この読み出し手段が読み出した連結ページ数情報を参照
して当該プロセッサが読み出すページを決定する読み出
しページ決定手段と を有することを特徴とするレコード格納方式。
1. A processor, comprising: a secondary storage device; and a plurality of processors each having a main storage device, wherein the secondary storage device stores records of various sizes stored in units of pages of a certain length. In a record storage method of a parallel processing device that selectively reads and parallel-processes data, one or more records that do not exceed the page length are grouped as one page within the range that does not exceed the page length. Is divided into a plurality of continuous pages and stores the record in the secondary storage device, and when the record storage stores the record, information on the number of linked pages for each page A concatenated page number information storage unit for storing in a storage area set separately from the storage area for each page in the secondary storage device; When each of the plurality of processors reads a record stored in the storage device, each processor exclusively reads the concatenated page number information stored by the concatenated page number information storage device into the main storage device of the processor. And a read page determining unit that determines a page to be read by the processor with reference to the number of linked pages read by the reading unit.
JP2006470A 1990-01-17 1990-01-17 Record storage method Expired - Lifetime JPH0776935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006470A JPH0776935B2 (en) 1990-01-17 1990-01-17 Record storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006470A JPH0776935B2 (en) 1990-01-17 1990-01-17 Record storage method

Publications (2)

Publication Number Publication Date
JPH03211637A JPH03211637A (en) 1991-09-17
JPH0776935B2 true JPH0776935B2 (en) 1995-08-16

Family

ID=11639344

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006470A Expired - Lifetime JPH0776935B2 (en) 1990-01-17 1990-01-17 Record storage method

Country Status (1)

Country Link
JP (1) JPH0776935B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6258347A (en) * 1985-09-09 1987-03-14 Hitachi Ltd data management device

Also Published As

Publication number Publication date
JPH03211637A (en) 1991-09-17

Similar Documents

Publication Publication Date Title
CA2209549C (en) Method and apparatus for loading data into a database in a multiprocessor environment
JPH1185526A (en) Program loading method
CA2013154C (en) Apparatus and method for digital data management
JP3609841B2 (en) File management device
JPH0776935B2 (en) Record storage method
JP4251725B2 (en) File management method
JPH06214803A (en) Virtual space block arranging system
JP4251727B2 (en) File management method
JP2546528B2 (en) Variable-length block storage system for fixed-length sector disk
JPH0423143A (en) Data storing system
JPH04223537A (en) Image file storing system
JPH02297180A (en) Document editing system
JP3309803B2 (en) Sorting method, method, and recording medium recording sort processing program
JPH01106217A (en) Parallel storage/reading type data processor
CN115982156A (en) Data processing method, device, computer equipment, storage medium and program product
JPH11265290A (en) Program loading method
JPH0325645A (en) Swapping system for virtual space
JPS61145658A (en) Index order editing file device
JPH04363716A (en) File access method
JPH10326307A (en) Schedule management method and management system
JPH0145648B2 (en)
JPH02268368A (en) Data processor
JPH03141426A (en) Record delivering system for data base system
JP2004334255A (en) Area sharing file management device, member deletion method, and program
JPH03171338A (en) Control information processing system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term