JPS59173865A - Idle space retrieving method - Google Patents

Idle space retrieving method

Info

Publication number
JPS59173865A
JPS59173865A JP58049367A JP4936783A JPS59173865A JP S59173865 A JPS59173865 A JP S59173865A JP 58049367 A JP58049367 A JP 58049367A JP 4936783 A JP4936783 A JP 4936783A JP S59173865 A JPS59173865 A JP S59173865A
Authority
JP
Japan
Prior art keywords
conversion table
byte
value
bytes
free space
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
JP58049367A
Other languages
Japanese (ja)
Other versions
JPH0315775B2 (en
Inventor
Hiroshi Yoshida
浩 吉田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP58049367A priority Critical patent/JPS59173865A/en
Publication of JPS59173865A publication Critical patent/JPS59173865A/en
Publication of JPH0315775B2 publication Critical patent/JPH0315775B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To retrieve an idle space at a high speed by using a conversion table and an interpretation test function. CONSTITUTION:A conversion table 2 includes the 1st conversion table 2-1 which displays the number of ''0'' showing the continuous idle regions at the side of the highest position in the bytes and the 2nd conversion table 2-2 which displays the continuous number of ''0'' from the highest bit of the bytes. A central processing unit 3 performs interpretation of details by means of the table 2 and stores an interpretation test instruction into a main memory 1 to prescribe the next action in accordance with the result of said interpretation. An instruction control part 5 executes the instruction and decides whether the value obtained from the table 2 is equal to ''0'' or ''1'' while referring to the table 2. If the value is equal to ''0'', the processing is continued; while the processing is discontinued with results other than ''0''.

Description

【発明の詳細な説明】 (a)  発明の技術分野 本発明は処理装置に接続される直接アクセス詰憶装置の
格納状態、特に空きスペースを管理するための空きスペ
ース検索方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to a free space search method for managing the storage status of a direct access storage device connected to a processing device, particularly free space.

[有])従来技術と問題点 処理装置に接続される直接アクセス記憶装置(以後DA
SDと記入する)は種々の情報が格納され、しかも不必
要であれば消去も行われている。従って、このDASD
上の空きスペースを管理することが必要であり、DAS
D上の空きスペースをビットマツプを使用し管理するこ
とが行われておシ、このために空きスペースを“0”格
納域を“1”と表示したビット単位の8ビツト構成から
なるバイト単位にビットマツプを構成している。従来こ
のビットマツプから連続する空きスペースrOの数を検
出するのにはレジスタに1バイト単位で順次ビットマツ
プ値を入力しこれを左シフトしてシフトアウトされる値
の“0″“1”を検出し“0”の数を計測して連続した
空き7.ベースを検知すると云った方法が採用されてい
る。しかしながら従来の方法はバイト単位にしか処理が
進まないため処理速度がψ′ 遅いといった欠点寓あった。
Direct access storage device (hereinafter referred to as DA) connected to the prior art and problem processing device
(written as SD) stores various information, and is also erased if unnecessary. Therefore, this DASD
It is necessary to manage the free space on the DAS
Free space on D is managed using a bitmap, and for this purpose a bitmap is created in units of bytes consisting of 8 bits, where free space is indicated as "0" and storage area is indicated as "1". It consists of Conventionally, in order to detect the number of consecutive empty spaces rO from this bitmap, the bitmap value was sequentially input into a register in 1-byte units, and this was shifted to the left to detect the values "0" and "1" that were shifted out. 7. Count the number of “0”s and find consecutive empty spaces. A method of detecting the base is used. However, the conventional method has the disadvantage that the processing speed is slow because the processing progresses only in byte units.

(C)  発明の目的 本発明は上記従来の欠点に鑑み、高速に能率よく空きス
ペースの検索が行われる空きスペース検索方法を提供す
ることを目的とするものである。
(C) Object of the Invention In view of the above-mentioned drawbacks of the prior art, it is an object of the present invention to provide a method for searching for free space that can be performed quickly and efficiently.

(d)  発明の構成 簡単に述べると本発明は直接アクセス記憶装置の格納状
態を8ビツト構成のバイトによるビットマツプに構成す
るとともに、バイト中の最高位の側に連続した空き領域
を示す“0”の数を表示する第1の変換表とバイトの最
高位ビットから“0”の連続する数を表示する第2の変
換表とを処理装置に付設し、この両変換表と翻訳テスト
機能とを用いて前記空きスペースを検索するようにした
ことを特徴とするものである。
(d) Structure of the Invention Briefly stated, the present invention configures the storage state of a direct access storage device into a bitmap of 8-bit bytes, and sets "0" indicating continuous free space on the highest-order side of the bytes. A first conversion table that displays numbers and a second conversion table that displays consecutive numbers of "0" from the highest bit of a byte are attached to the processing device, and both conversion tables and a translation test function are used. The invention is characterized in that the vacant space is searched by using the search function.

(e)  発明の実施例 以下本発明の実施例を図面によって詳細に説明する。(e) Examples of the invention Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の空きスペース検索方法を示す一実施例
のブロック図、第2図は本発明の変換表の構成を示す模
式図、第6図は本発明の空きスペース検索方法のフロー
チャートである。
FIG. 1 is a block diagram of an embodiment of the free space search method of the present invention, FIG. 2 is a schematic diagram showing the configuration of a conversion table of the present invention, and FIG. 6 is a flowchart of the free space search method of the present invention. be.

図において1は主記憶装置、2は変換表、3は中央処理
装置、4は主記憶制御部、5は命令制御部、6は演算処
理部、6−1はレジスタ、7はファイルをそれぞれ示す
。中央処理装置乙は主記憶装置1内に変換表を用いて内
訳の翻訳を行ないその結果によって次の動作を規定する
翻訳テスト命テーブルと記す)によシ求められた値が“
0”であるか“1”であるかを判定し、その結果が“0
”の場合処理を続行し、“0”以外の時処理を終るよう
に動作を行なう。ファイ/V7に格納されたデータが如
何に空きスペースを有するかを管理するのに空きを示す
“0”ビットと格納を示す“1”ビットをとからなる8
ビツトからなる1バイトで表示するビットマツプを利用
し“0”の検索を行なう。即ちi’1tiiooo o
ooooooo oooiitli 1ooo1oo+
バイト0   バイHバイト2   バイト6からなる
ビットマツプが有るとするとバイトOからバイト2間は
12個の“0”即ち空きが連続しておりバイト乙には高
位側に6ケの連続した“0”空きが存在する。この空き
“0”の数を高速に見出すことが本発明の特徴であυ、
第2図を用いながら第6図について説明する。第2図は
変換テーブルを示し第2図(a) 2−1はバイト中の
最も左側の連続した“0”の数を示し、第2図(a) 
2−1中の*16の表示は“0”が次のバイトに連続し
ていることを示す。
In the figure, 1 is the main memory, 2 is the conversion table, 3 is the central processing unit, 4 is the main memory control unit, 5 is the instruction control unit, 6 is the arithmetic processing unit, 6-1 is the register, and 7 is the file. . The central processing unit B uses a conversion table in the main memory device 1 to translate the details, and based on the result, the value determined by the translation test command table that specifies the next operation is ``
0” or “1”, and the result is “0”.
”, the process continues, and when the value is other than “0”, the process ends. “0”, which indicates free space, is used to manage how much free space the data stored in File/V7 has. 8 consisting of a bit and a “1” bit indicating storage
A search for "0" is performed using a bitmap that is displayed as one byte consisting of bits. i'1tiiooo o
ooooooooo ooooiitli 1ooo1oo+
Byte 0 By H Byte 2 If there is a bitmap consisting of byte 6, there are 12 consecutive "0"s, that is, empty spaces, between byte O and byte 2, and byte B has 6 consecutive "0s" on the high-order side. There is a vacancy. The feature of the present invention is to quickly find the number of empty "0"s,
FIG. 6 will be explained using FIG. 2. Figure 2 shows the conversion table. Figure 2 (a) 2-1 shows the number of consecutive "0"s on the leftmost side of the byte; Figure 2 (a)
The *16 display in 2-1 indicates that "0" continues in the next byte.

第2図中)2−2は最高位ビットから何個の“0”が連
続するかを示し最高位が“1″の時8に変換するテーブ
ルである。何れのテーブルを用いても翻訳テスト命令を
用いると“0”に変換されると変換が続いて行われるこ
ととなる。命令制御部5はファイ/L/7のビットマツ
プの先頭バイトにバイトポインタを設定する第6図(1
)(以後第6図を省略し0にて示す)例えば11001
011は16進にて示すとOBであシ、変換表(a)を
用いる翻訳テスト命令を実行すると第2図(a)よシ2
が得られるQ)。この動作を256バイト分実行し実行
のたびごとに求められた値が“θ″であるや検知される
。0であれば次のステップを繰返し実行し256バイト
進める。若し求められた値が上記例の如く“2”であれ
ばこの求められた値が次に続くバイトに連続しているや
即ち16よシ大きいか否やの検査を行ない(5)、例の
如く“2”であればこの2をレジスタ6−1に入力する
(6)。このレジスタ6−1の値即ち2は本バイトの左
側に近い所で2個の空き領域のあることを示す。若しく
5)の検査にて16より大きいもの、例えば+111+
0[)Oバイトは16進で“F8”となり第2図(a)
より6*16が得られるとこの値を16にて割算を行な
い“0°°の個数としてレジスタ6−1に6としで記憶
する(7)。即ち*16に示す値は上記したように次の
バイトに“O”が連続していることを示す。
2-2 in FIG. 2 is a table that shows how many consecutive "0"s start from the highest bit and converts it to 8 when the highest bit is "1". No matter which table is used, if a translation test instruction is used, the conversion will continue if it is converted to "0". The instruction control unit 5 sets a byte pointer to the first byte of the file/L/7 bit map as shown in FIG.
) (Hereinafter, Figure 6 will be omitted and indicated by 0) For example, 11001
011 is OB when expressed in hexadecimal, and when the translation test command using the conversion table (a) is executed, it is shown in Figure 2 (a).
Q). This operation is executed for 256 bytes, and the value obtained each time is detected as "θ". If it is 0, repeat the next step and advance by 256 bytes. If the obtained value is "2" as in the above example, a check is performed to see if this obtained value is continuous with the next byte, that is, larger than 16 (5), and then If the value is "2", this 2 is input to the register 6-1 (6). The value of this register 6-1, ie, 2, indicates that there are two free areas near the left side of this byte. or greater than 16 in the test of 5), for example +111+
The 0[)O byte becomes “F8” in hexadecimal, as shown in Figure 2 (a).
When 6*16 is obtained, this value is divided by 16 and stored as 6 in register 6-1 as the number of 0°° (7).In other words, the value shown in *16 is as described above. Indicates that “O” continues in the next byte.

従って次のバイトを調査することが必要であシ、バイト
ポインタを1バイト進める(8)。この際第2図(b)
に示すテープ)Vを用いて変換値ff:求める(9)。
It is therefore necessary to examine the next byte and advance the byte pointer by one byte (8). At this time, Fig. 2(b)
The converted value ff: is determined using the tape) V shown in (9).

例えば前述したF8″に00011011のバイトが続
くとすると16進で1Bであり第2図G)よシロが求め
られる。“0”に変換された否やの検査(10)を \
行ない乙であれば(11)にて8でないことを検出して
V)のレジスタ値に6を加算した値が空ビツト数である
。256バイト“0”に変換されると(10)全ビット
“0″即ち256X8個″0″であり(7)の工程のレ
ジスタ値に256X8個を加え4 (12)。これは空
きビット数を示す。次いでバイトポインタを256バイ
ト進め更に次の256バイトに続くや否やの検査を行う
(12)、前記した(11)にて変換値が8であ些ば0
としレジスタ6−1の値6を加えたものが空きビットと
なる。また256バイト全部が“0”に変換されなかっ
た場合、その時の変換値とレジスタ6−1の値を加えた
ものに、さらに変換が中断したバイトのアドレスからバ
イトポインタの値を引いて8倍したものを加える。なお
以上の演算は演算処理部6にて行われることは云うまセ
もない。
For example, if the above-mentioned F8'' is followed by a byte of 00011011, it is 1B in hexadecimal and the zero can be found as shown in Figure 2 (G). Check (10) whether it has been converted to "0".
If the result is B, it is detected in (11) that it is not 8, and the value obtained by adding 6 to the register value of V) is the number of empty bits. When converted to 256 bytes "0" (10), all bits are "0", that is, 256 x 8 bits are "0", and 256 x 8 bits are added to the register value in step (7), resulting in 4 (12). This indicates the number of free bits. Next, advance the byte pointer by 256 bytes and check as soon as it continues to the next 256 bytes (12). In (11) above, if the converted value is 8, it is 0.
Then, the value 6 of register 6-1 is added to the free bit. In addition, if all 256 bytes are not converted to "0", add the converted value at that time and the value of register 6-1, and then subtract the value of the byte pointer from the address of the byte where conversion was interrupted, and multiply by 8. Add what you added. It goes without saying that the above calculations are performed by the calculation processing section 6.

(f)  発明の効果 以上、詳細に説明したように、本発明の空きスペース検
索方法はチーブμを利用して高速に空きスペースの検索
が行われ磁気領域を管理するのに利点の多いものとなる
。・
(f) Effects of the Invention As explained in detail above, the free space search method of the present invention uses Chive μ to search for free space at high speed, and has many advantages in managing magnetic areas. Become.・

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

第1図は本発明の空きスペース検索方法を示す一実施例
のブロック図、第2図は本発明の変換表の構成を示す模
式図、第3図は本発明の空きスペース検索方法のフロー
チャートである。 図において、2’、2−1.2−2は変換表、ろは中央
処理装置、7はファイルをそれぞれ示す。 第1図 (Ω) 第2図 0 123456789ABCDEF  下イ1[0、
811676655’S S 44444441a7 
111111111111111 0 1 23456789ABCDEF  丁イ虹61
1111+l+l+IMIII 7 +MIIlllIl+1IIII
FIG. 1 is a block diagram of an embodiment of the free space search method of the present invention, FIG. 2 is a schematic diagram showing the configuration of a conversion table of the present invention, and FIG. 3 is a flowchart of the free space search method of the present invention. be. In the figure, 2', 2-1.2-2 are conversion tables, RO is a central processing unit, and 7 is a file, respectively. Figure 1 (Ω) Figure 2 0 123456789ABCDEF Lower A 1 [0,
811676655'S S 44444441a7
111111111111111 0 1 23456789ABCDEF Dingi Rainbow 61
1111+l+l+IMIII 7 +MIIllllIl+1III

Claims (1)

【特許請求の範囲】[Claims] 変換表を用いて翻訳テストを行う機能を有する処理装置
における直接アクセス記憶装置の空きスペースを検索す
る方法であって、該直接アクセス記憶、装置の格納状態
を8ビツト構成のバイトをビットマツプに構成するとと
もに、前記バイト中の最も高位の側に連続した空き領域
を示す“0”の数を表示する第1の変換表と前記バイト
の最高位ビットから“0”の連続する数を表示する第2
の変換表を前記処理装置に付設し、該両変換表と前記翻
訳テスト機能とを用いて前記空きスペースを検索するよ
うにしたことを特徴とする空きスペース検索方法。
A method for searching for free space in a direct access storage device in a processing device having a function of performing a translation test using a conversion table, the method comprising: configuring the storage state of the direct access storage device into a bitmap of 8-bit bytes; A first conversion table that displays the number of consecutive "0"s indicating the highest-order free space in the byte, and a second conversion table that displays the number of consecutive "0"s starting from the highest-order bit of the byte.
A method for searching for an empty space, characterized in that a conversion table is attached to the processing device, and the empty space is searched using both conversion tables and the translation test function.
JP58049367A 1983-03-23 1983-03-23 Idle space retrieving method Granted JPS59173865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58049367A JPS59173865A (en) 1983-03-23 1983-03-23 Idle space retrieving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58049367A JPS59173865A (en) 1983-03-23 1983-03-23 Idle space retrieving method

Publications (2)

Publication Number Publication Date
JPS59173865A true JPS59173865A (en) 1984-10-02
JPH0315775B2 JPH0315775B2 (en) 1991-03-01

Family

ID=12829044

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58049367A Granted JPS59173865A (en) 1983-03-23 1983-03-23 Idle space retrieving method

Country Status (1)

Country Link
JP (1) JPS59173865A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009284373A (en) 2008-05-26 2009-12-03 Nippon Sheet Glass Co Ltd Ultraviolet-rays line lighting apparatus, contact image sensor, image reading apparatus, and reductive optical system image reading apparatus

Also Published As

Publication number Publication date
JPH0315775B2 (en) 1991-03-01

Similar Documents

Publication Publication Date Title
US5261040A (en) Text processing apparatus
US5519860A (en) Central processor index sort followed by direct record sort and write by an intelligent control unit
JPS59173865A (en) Idle space retrieving method
JPH0271342A (en) Memory controller
JPS58114275A (en) Pattern information retrieving system
JPH08202529A (en) Method and device for data processing
JPH05134909A (en) Idle space retrieving method
JPS60134937A (en) Address extension device
JP2007004326A (en) Data access method and program therefor
JPH0315772B2 (en)
JP2615046B2 (en) Record addition processing method
JP2575936B2 (en) Content search device
JPS589452B2 (en) Firmware broom
JP2570407B2 (en) Programmable controller
JPS63217446A (en) Buffer control system
JPS6373422A (en) Information retrieving device
JPS6386074A (en) Control system for drawing file
JPS62126447A (en) Address conversion method
JPH0934788A (en) Device and method for translating address
JPS61198351A (en) Direct memory access control circuit
JPH02220155A (en) Magnetic disk controller
JPH11203182A (en) Data holding method and computer readable record medium
JPS6134628A (en) Computer provided with tag
JPS6061851A (en) Input and output processor
JPS63727A (en) Information retrieving method