JP2023111328A - Information processing apparatus, information processing method, and information processing program - Google Patents

Information processing apparatus, information processing method, and information processing program Download PDF

Info

Publication number
JP2023111328A
JP2023111328A JP2022013134A JP2022013134A JP2023111328A JP 2023111328 A JP2023111328 A JP 2023111328A JP 2022013134 A JP2022013134 A JP 2022013134A JP 2022013134 A JP2022013134 A JP 2022013134A JP 2023111328 A JP2023111328 A JP 2023111328A
Authority
JP
Japan
Prior art keywords
data
recorded
information processing
magnetic tapes
buffer memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2022013134A
Other languages
Japanese (ja)
Inventor
豊 大石
Yutaka Oishi
理貴 近藤
Masataka Kondo
美咲 大塚
Misaki Otsuka
優子 増田
Yuko Masuda
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.)
Fujifilm Corp
Original Assignee
Fujifilm 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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2022013134A priority Critical patent/JP2023111328A/en
Publication of JP2023111328A publication Critical patent/JP2023111328A/en
Pending legal-status Critical Current

Links

Abstract

To provide an information processing apparatus, an information processing method, and an information processing program, which can reduce the total size of a buffer memory when recording the same data on a plurality of magnetic tapes in parallel.SOLUTION: An information processing apparatus determines whether or not data stored in a buffer memory has been recorded on each of a plurality of magnetic tapes, and when determining that the data has been recorded on each of the plurality of magnetic tapes, stores data, which has not been stored on the plurality of magnetic tapes stored in a storage device, in an area where data determined to have been recorded in the buffer memory is stored.SELECTED DRAWING: Figure 8

Description

本開示は、情報処理装置、情報処理方法、及び情報処理プログラムに関する。 The present disclosure relates to an information processing device, an information processing method, and an information processing program.

特許文献1には、磁気テープにデータを記録する磁気テープ装置が、バッファメモリを用いて同じデータを複数の磁気テープに記録する技術が開示されている。 Japanese Unexamined Patent Application Publication No. 2002-200002 discloses a technique in which a magnetic tape device that records data on magnetic tapes records the same data on a plurality of magnetic tapes using a buffer memory.

特開2004-133845号公報JP-A-2004-133845

複数の磁気テープに並列に同じデータを記録する場合、磁気テープ毎にバッファメモリを用意すると、バッファメモリの合計サイズが増大してしまう。特許文献1に記載の技術では、複数の磁気テープに並列に同じデータを記録することについては考慮されていない。 When recording the same data in parallel on a plurality of magnetic tapes, if a buffer memory is prepared for each magnetic tape, the total size of the buffer memory will increase. The technique described in Patent Document 1 does not consider recording the same data in parallel on a plurality of magnetic tapes.

本開示は、以上の事情を鑑みてなされたものであり、複数の磁気テープに並列に同じデータを記録する場合におけるバッファメモリの合計サイズを低減することができる情報処理装置、情報処理方法、及び情報処理プログラムを提供することを目的とする。 The present disclosure has been made in view of the above circumstances, and provides an information processing device, an information processing method, and an information processing device capable of reducing the total size of a buffer memory when recording the same data on a plurality of magnetic tapes in parallel. The purpose is to provide an information processing program.

本開示の情報処理装置は、少なくとも一つのプロセッサを備え、かつ共用のバッファメモリを介して同じデータを複数の磁気テープに記録する制御を行う情報処理装置であって、プロセッサが、バッファメモリに格納されたデータが複数の磁気テープそれぞれに記録済みであるか否かを判定し、データが複数の磁気テープそれぞれに記録済みであると判定した場合、記憶装置に格納された複数の磁気テープに未記録のデータをバッファメモリの記録済みであると判定したデータが格納された領域に格納する。 An information processing apparatus according to the present disclosure is an information processing apparatus that includes at least one processor and controls recording of the same data on a plurality of magnetic tapes via a shared buffer memory, wherein the processor stores data in the buffer memory. If it is determined that the data has been recorded on each of the plurality of magnetic tapes, the data is not recorded on the plurality of magnetic tapes stored in the storage device. The data to be recorded is stored in the area in which the data determined to be recorded has been stored in the buffer memory.

なお、本開示の情報処理装置は、プロセッサが、バッファメモリに格納された複数の磁気テープに未記録のデータを複数の磁気テープそれぞれに並列に記録する制御を行ってもよい。 Note that in the information processing apparatus of the present disclosure, the processor may perform control to record, in parallel, data that has not yet been recorded on the plurality of magnetic tapes stored in the buffer memory onto each of the plurality of magnetic tapes.

また、本開示の情報処理装置は、プロセッサが、並列に記録する制御において、複数の磁気テープそれぞれに次に記録するデータのバッファメモリ上のアドレスの差が閾値以上の場合、相対的に多くのデータが記録済みとなっている磁気テープへのデータの記録処理を遅延させてもよい。 In addition, in the information processing apparatus of the present disclosure, in the control of parallel recording by the processor, if the difference between the addresses in the buffer memory of the data to be recorded next on each of the plurality of magnetic tapes is equal to or greater than a threshold value, relatively many The data recording process to the magnetic tape on which the data has already been recorded may be delayed.

また、本開示の情報処理装置は、バッファメモリが、リングバッファ方式であってもよい。 Further, in the information processing apparatus of the present disclosure, the buffer memory may be of a ring buffer system.

また、本開示の情報処理方法は、少なくとも一つのプロセッサを備え、かつ共用のバッファメモリを介して同じデータを複数の磁気テープに記録する制御を行う情報処理装置のプロセッサが実行する情報処理方法であって、バッファメモリに格納されたデータが複数の磁気テープそれぞれに記録済みであるか否かを判定し、データが複数の磁気テープそれぞれに記録済みであると判定した場合、記憶装置に格納された複数の磁気テープに未記録のデータをバッファメモリの記録済みであると判定したデータが格納された領域に格納するものである。 Further, the information processing method of the present disclosure is an information processing method executed by a processor of an information processing apparatus that includes at least one processor and controls recording of the same data on a plurality of magnetic tapes via a shared buffer memory. determines whether or not the data stored in the buffer memory has been recorded on each of the plurality of magnetic tapes, and if it is determined that the data has been recorded on each of the plurality of magnetic tapes, the data is stored in the storage device. Data not yet recorded on a plurality of magnetic tapes is stored in an area of the buffer memory in which the data determined to have been recorded is stored.

また、本開示の情報処理プログラムは、少なくとも一つのプロセッサを備え、かつ共用のバッファメモリを介して同じデータを複数の磁気テープに記録する制御を行う情報処理装置のプロセッサに実行させるための情報処理プログラムであって、バッファメモリに格納されたデータが複数の磁気テープそれぞれに記録済みであるか否かを判定し、データが複数の磁気テープそれぞれに記録済みであると判定した場合、記憶装置に格納された複数の磁気テープに未記録のデータをバッファメモリの記録済みであると判定したデータが格納された領域に格納するものである。 Further, an information processing program of the present disclosure includes information processing for causing a processor of an information processing apparatus that includes at least one processor and performs control to record the same data on a plurality of magnetic tapes via a shared buffer memory. A program that determines whether data stored in a buffer memory has been recorded on each of a plurality of magnetic tapes, and if it is determined that data has been recorded on each of a plurality of magnetic tapes, Data that has not yet been recorded on a plurality of stored magnetic tapes is stored in an area of the buffer memory in which data that has been determined to have been recorded is stored.

本開示によれば、複数の磁気テープに並列に同じデータを記録する場合におけるバッファメモリの合計サイズを低減することができる。 According to the present disclosure, it is possible to reduce the total size of the buffer memory when recording the same data in parallel on a plurality of magnetic tapes.

情報処理システムの構成の一例を示すブロック図である。1 is a block diagram showing an example of the configuration of an information processing system; FIG. データが複数の磁気テープに多重化されて記録されることを説明するための図である。FIG. 4 is a diagram for explaining that data is multiplexed and recorded on a plurality of magnetic tapes; 情報処理装置のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware constitutions of an information processing apparatus. バッファメモリを説明するための図である。FIG. 4 is a diagram for explaining a buffer memory; FIG. 共用のバッファメモリを介して同じデータを複数の磁気テープに記録する処理を説明するための図である。FIG. 4 is a diagram for explaining processing of recording the same data on a plurality of magnetic tapes via a shared buffer memory; 情報処理装置の機能的な構成の一例を示すブロック図である。1 is a block diagram showing an example of a functional configuration of an information processing device; FIG. データ記録処理の一例を説明するための図である。It is a figure for demonstrating an example of a data recording process. データ記録処理の一例を説明するための図である。It is a figure for demonstrating an example of a data recording process. データ記録処理の一例を示すフローチャートである。4 is a flowchart showing an example of data recording processing; 変形例に係るデータの記録を遅延させる処理を説明するための図である。FIG. 11 is a diagram for explaining processing for delaying recording of data according to a modification;

以下、図面を参照して、本開示の技術を実施するための形態例を詳細に説明する。 Embodiments for implementing the technology of the present disclosure will be described in detail below with reference to the drawings.

まず、図1を参照して、本実施形態に係る情報処理システム10の構成を説明する。図1に示すように、情報処理システム10は、情報処理装置12及びテープライブラリ14を含む。情報処理装置12の例としては、サーバコンピュータ等が挙げられる。 First, the configuration of an information processing system 10 according to the present embodiment will be described with reference to FIG. As shown in FIG. 1, the information processing system 10 includes an information processing device 12 and a tape library 14 . Examples of the information processing device 12 include a server computer and the like.

テープライブラリ14は、複数のスロット(図示省略)及び複数のテープドライブ18を備え、各スロットには記録媒体の一例としての磁気テープTが格納される。各テープドライブ18は、情報処理装置12に接続される。テープドライブ18は、情報処理装置12による制御によって、磁気テープTに対するデータの書き込み又は読み取りを行う。磁気テープTの例としては、LTO(Linear Tape-Open)テープが挙げられる。 The tape library 14 includes a plurality of slots (not shown) and a plurality of tape drives 18, each slot storing a magnetic tape T as an example of a recording medium. Each tape drive 18 is connected to the information processing device 12 . The tape drive 18 writes data to or reads data from the magnetic tape T under the control of the information processing device 12 . An example of the magnetic tape T is an LTO (Linear Tape-Open) tape.

情報処理装置12により磁気テープTに対するデータの書き込み又は読み取りを行う場合、書き込み又は読み取り対象の磁気テープTがスロットから所定のテープドライブ18にロードされる。テープドライブ18にロードされた磁気テープTに対するデータの書き込み又は読み取りが完了すると、磁気テープTは、テープドライブ18から元々格納されていたスロットにアンロードされる。 When the information processing device 12 writes data to or reads data from the magnetic tape T, the magnetic tape T to be written or read is loaded from a slot into a predetermined tape drive 18 . After data has been written or read from the magnetic tape T loaded in the tape drive 18, the magnetic tape T is unloaded from the tape drive 18 to the slot in which it was originally stored.

本実施形態では、複数の磁気テープTにデータが冗長性を持たせて記録される。具体的には、一例として図2に示すように、同じデータが複数の磁気テープTに多重化されて記録される。本実施形態では、図2に示すように、2本の磁気テープTに同じデータが記録される、すなわち、多重度が2である場合を例に説明するが、多重度は3以上でもよい。 In this embodiment, data is recorded on a plurality of magnetic tapes T with redundancy. Specifically, the same data is multiplexed and recorded on a plurality of magnetic tapes T, as shown in FIG. 2 as an example. In this embodiment, as shown in FIG. 2, the same data is recorded on two magnetic tapes T, that is, the multiplicity is 2, but the multiplicity may be 3 or more.

2本の磁気テープTのうち、第1の磁気テープTは、正データ用の磁気テープTとして使用され、第2の磁気テープTは、副データ用の磁気テープTとして使用される。通常時は、正データ用の磁気テープTからデータが読み取られる。正データ用の磁気テープTからデータを読み取ることができない場合は、副データ用の磁気テープTからデータが読み取られる。 Of the two magnetic tapes T, the first magnetic tape T is used as the magnetic tape T for primary data, and the second magnetic tape T is used as the magnetic tape T for sub data. Normally, data is read from the magnetic tape T for positive data. When data cannot be read from the magnetic tape T for primary data, data is read from the magnetic tape T for sub data.

次に、図3を参照して、本実施形態に係る情報処理装置12のハードウェア構成を説明する。図3に示すように、情報処理装置12は、CPU(Central Processing Unit)20、一時記憶領域としてのメモリ21、及び不揮発性の記憶部22を含む。また、情報処理装置12は、液晶ディスプレイ等のディスプレイ23、キーボードとマウス等の入力装置24、ネットワークに接続されるネットワークI/F(InterFace)25、及び各テープドライブ18が接続される外部I/F26を含む。CPU20、メモリ21、記憶部22、ディスプレイ23、入力装置24、ネットワークI/F25、及び外部I/F26は、バス27に接続される。CPU20は、プロセッサの一例である。 Next, the hardware configuration of the information processing device 12 according to this embodiment will be described with reference to FIG. As shown in FIG. 3 , the information processing device 12 includes a CPU (Central Processing Unit) 20 , a memory 21 as a temporary storage area, and a nonvolatile storage section 22 . The information processing device 12 also includes a display 23 such as a liquid crystal display, an input device 24 such as a keyboard and a mouse, a network I/F (InterFace) 25 connected to a network, and an external I/F to which each tape drive 18 is connected. Including F26. CPU 20 , memory 21 , storage unit 22 , display 23 , input device 24 , network I/F 25 and external I/F 26 are connected to bus 27 . CPU 20 is an example of a processor.

記憶部22は、HDD(Hard Disk Drive)、SSD(Solid State Drive)、又はフラッシュメモリ等によって実現される。記憶媒体としての記憶部22には、情報処理プログラム30が記憶される。CPU20は、記憶部22から情報処理プログラム30を読み出してからメモリ21に展開し、展開した情報処理プログラム30を実行する。 The storage unit 22 is realized by a HDD (Hard Disk Drive), SSD (Solid State Drive), flash memory, or the like. An information processing program 30 is stored in the storage unit 22 as a storage medium. The CPU 20 reads out the information processing program 30 from the storage unit 22 , expands it in the memory 21 , and executes the expanded information processing program 30 .

また、図4に示すように、メモリ21には、情報処理装置12がデータを磁気テープTに記録する制御を行う際、すなわち、情報処理装置12が記録対象のデータを磁気テープTが装填されたテープドライブ18に送信する際にバッファとして使用される記憶領域が確保される。以下では、この記憶領域をバッファメモリBMという。本実施形態では、バッファメモリBMが複数のテープドライブ18それぞれに装填された磁気テープT毎に用意されるのではなく、共用のバッファメモリBMとして用意される。本実施形態では、バッファメモリBMは、リングバッファ方式とされる。 As shown in FIG. 4, the memory 21 stores the data to be recorded on the magnetic tape T when the information processing apparatus 12 performs control to record data on the magnetic tape T. A storage area is reserved for use as a buffer when transmitting to the tape drive 18 . This storage area is hereinafter referred to as buffer memory BM. In this embodiment, the buffer memory BM is not prepared for each magnetic tape T loaded in each of the plurality of tape drives 18, but is prepared as a shared buffer memory BM. In this embodiment, the buffer memory BM is of a ring buffer type.

ところで、本実施形態に係る情報処理装置12は、ユーザ端末等の外部装置から送信されたデータを受信し、受信したデータを記憶部22に格納する。一例として図5に示すように、本実施形態に係る情報処理装置12は、共用のバッファメモリBMを介して記憶部22に格納された同じデータを複数(本実施形態では2本)の磁気テープTに記録する制御を行う機能を有する。 By the way, the information processing device 12 according to this embodiment receives data transmitted from an external device such as a user terminal and stores the received data in the storage unit 22 . As an example, as shown in FIG. 5, the information processing apparatus 12 according to this embodiment stores the same data stored in the storage unit 22 via a shared buffer memory BM on a plurality of (two in this embodiment) magnetic tapes. It has a function to control recording to T.

次に、図6を参照して、本実施形態に係る情報処理装置12の機能的な構成について説明する。図6に示すように、情報処理装置12は、判定部40、格納部42、及び制御部44を含む。CPU20が情報処理プログラム30を実行することにより、判定部40、格納部42、及び制御部44として機能する。 Next, with reference to FIG. 6, the functional configuration of the information processing device 12 according to this embodiment will be described. As shown in FIG. 6 , the information processing device 12 includes a determination section 40 , a storage section 42 and a control section 44 . As the CPU 20 executes the information processing program 30 , it functions as a determination section 40 , a storage section 42 and a control section 44 .

判定部40は、バッファメモリBMに格納されたデータが複数の磁気テープTそれぞれに記録済みであるか否かを判定する。なお、最初に磁気テープTにデータを記録する場合等、バッファメモリBMにデータを格納可能な空き容量がある場合はこの判定を省略してもよい。 The determination unit 40 determines whether the data stored in the buffer memory BM has been recorded on each of the plurality of magnetic tapes T or not. Note that this determination may be omitted when the buffer memory BM has free space for storing data, such as when data is recorded on the magnetic tape T for the first time.

格納部42は、判定部40によりバッファメモリBMに格納されたデータが複数の磁気テープTそれぞれに記録済みであると判定された場合、記憶装置の一例としての記憶部22に格納された複数の磁気テープTに未記録のデータをバッファメモリBMに格納する。この際、格納部42は、記憶部22に格納された複数の磁気テープTに未記録のデータをバッファメモリBMの判定部40により記録済みであると判定されたデータが格納された領域に格納(すなわち、上書き)する。 When the determination unit 40 determines that the data stored in the buffer memory BM has been recorded on each of the plurality of magnetic tapes T, the storage unit 42 stores a plurality of data stored in the storage unit 22 as an example of a storage device. Data not yet recorded on the magnetic tape T is stored in the buffer memory BM. At this time, the storage unit 42 stores the unrecorded data on the plurality of magnetic tapes T stored in the storage unit 22 in the area in which the data determined to be recorded by the determination unit 40 of the buffer memory BM is stored. (i.e., overwrite).

制御部44は、格納部42によりバッファメモリBMに格納された複数の磁気テープTに未記録のデータを複数の磁気テープTに記録する制御を行う。本実施形態では、制御部44は、この制御を磁気テープTの数と同じ数のスレッドそれぞれで実行することによって並列に実行する。 The control unit 44 performs control to record unrecorded data on the plurality of magnetic tapes T stored in the buffer memory BM by the storage unit 42 . In this embodiment, the control unit 44 executes this control in parallel by executing the same number of threads as the number of magnetic tapes T. FIG.

図7及び図8を参照して、以上の各機能部によるデータの記録処理の具体的な一例を説明する。図7に示すように、バッファメモリBMに格納されたデータは、そのデータへアクセスするために、データの開始位置及び終了位置を示すアドレスが割り当てられる。図7では、「data1」の開始位置を示すアドレスが「a」であり、「data1」の終了位置及び「data2」の開始位置を示すアドレスが「b」である例を示している。 A specific example of data recording processing by each of the above functional units will be described with reference to FIGS. 7 and 8. FIG. As shown in FIG. 7, the data stored in the buffer memory BM are assigned addresses indicating the start position and end position of the data in order to access the data. FIG. 7 shows an example in which the address indicating the start position of "data1" is "a" and the address indicating the end position of "data1" and the start position of "data2" is "b".

制御部44は、バッファメモリBMに格納されたデータを磁気テープTに記録する制御を行う。そして、制御部44は、この制御により磁気テープTへのデータの記録が完了した後、磁気テープTへの記録が完了したデータのバッファメモリBMでの終了位置を示すアドレスをポインタ変数に格納する。制御部44は、この制御を複数の磁気テープTに対して並列に実行する。図7の上段の例では、「data1」が磁気テープTに記録された後に、ポインタ変数に「data1」のバッファメモリBMでの終了位置を示すアドレスである「b」が格納される。次に、図7の下段の例では、「data2」が磁気テープTに記録された後に、ポインタ変数が「data2」のバッファメモリBMでの終了位置を示すアドレスである「c」に書き換えられる。すなわち、ポインタ変数には、直前に磁気テープTに記録されたデータの終了位置を示すアドレスが格納される。このアドレスは、次に磁気テープTに記録するデータの開始位置を示すアドレスとも言える。 The control unit 44 controls recording of the data stored in the buffer memory BM on the magnetic tape T. FIG. Then, after the data recording on the magnetic tape T is completed by this control, the control unit 44 stores the address indicating the end position in the buffer memory BM of the data that has been recorded on the magnetic tape T in the pointer variable. . The control unit 44 executes this control for a plurality of magnetic tapes T in parallel. In the example in the upper part of FIG. 7, after "data1" is recorded on the magnetic tape T, the pointer variable stores "b", which is the address indicating the end position of "data1" in the buffer memory BM. Next, in the lower example of FIG. 7, after "data2" is recorded on the magnetic tape T, the pointer variable is rewritten to "c", which is the address indicating the end position of "data2" in the buffer memory BM. That is, the pointer variable stores an address indicating the end position of the data recorded on the magnetic tape T immediately before. This address can also be said to indicate the starting position of the data to be recorded on the magnetic tape T next.

従って、判定部40は、バッファメモリBMに格納されたデータの開始位置及び終了位置を示すアドレスと、ポインタ変数とを比較することによって、バッファメモリBMに格納されたデータが磁気テープTに記録済みであるか否かを判定することができる。また、ポインタ変数は磁気テープT毎に用意されているため、判定部40は、バッファメモリBMに格納されたデータが複数の磁気テープTそれぞれに記録済みであるか否かを判定することができる。本実施形態では、バッファメモリBMがリングバッファ方式であるため、この判定を簡易な処理によって行うことができる。 Therefore, the determination unit 40 determines whether the data stored in the buffer memory BM has been recorded on the magnetic tape T by comparing the pointer variables with the addresses indicating the start position and end position of the data stored in the buffer memory BM. It can be determined whether or not Further, since a pointer variable is prepared for each magnetic tape T, the determination unit 40 can determine whether or not the data stored in the buffer memory BM has been recorded on each of the plurality of magnetic tapes T. . In this embodiment, since the buffer memory BM is of the ring buffer type, this determination can be made by simple processing.

次に、図8の上段に示すように、「data1」、「data2」及び「data3」がバッファメモリBMに格納され、「data1」が複数の磁気テープTに記録済みであり、「data2」が複数の磁気テープTに記録中である場合について説明する。更に、この場合において、「data3」が複数の磁気テープTに未記録であり、記憶部22に複数の磁気テープTに未記録である「data4」が格納されている場合について説明する。また、ここでは、「data1」、「data2」及び「data3」が格納されていることによってバッファメモリBMに空きが無くなっているものとする。 Next, as shown in the upper part of FIG. 8, "data1", "data2" and "data3" are stored in the buffer memory BM, "data1" is already recorded on a plurality of magnetic tapes T, and "data2" is A case in which data is being recorded on a plurality of magnetic tapes T will be described. Furthermore, in this case, the case where "data3" is unrecorded on a plurality of magnetic tapes T and "data4" is stored on a plurality of magnetic tapes T in the storage section 22 will be described. Also, here, it is assumed that the buffer memory BM has no free space because "data1", "data2" and "data3" are stored.

この場合、各ポインタ変数には、「data1」のバッファメモリBMでの終了位置を示すアドレスである「b」が格納される。判定部40は、バッファメモリBMに格納されたデータの開始位置及び終了位置を示すアドレスと、ポインタ変数とを比較することによって、「data1」が複数の磁気テープTそれぞれに記録済みであると判定する。従って、この場合、図8の下段に示すように、格納部42は、記憶部22に格納された複数の磁気テープTに未記録の「data4」をバッファメモリBMの「data1」が格納された領域に格納する。 In this case, each pointer variable stores an address "b" indicating the end position of "data1" in the buffer memory BM. The determination unit 40 determines that "data1" has been recorded on each of the plurality of magnetic tapes T by comparing the pointer variables with the addresses indicating the start and end positions of the data stored in the buffer memory BM. do. Therefore, in this case, as shown in the lower part of FIG. Store in the area.

なお、判定部40によるバッファメモリBMに格納されたデータが複数の磁気テープTそれぞれに記録済みであるか否かを判定する処理は上記の例に限定されない。例えば、判定部40は、バッファメモリBMに格納されたデータ毎に、複数の磁気テープTそれぞれに記録済みであるか否かを表す値を格納するフラグを用いて、データが複数の磁気テープTそれぞれに記録済みであるか否かを判定してもよい。 Note that the process of determining whether the data stored in the buffer memory BM by the determining unit 40 has been recorded on each of the plurality of magnetic tapes T is not limited to the above example. For example, the determination unit 40 uses a flag that stores a value indicating whether or not each data stored in the buffer memory BM has been recorded on each of the plurality of magnetic tapes T, so that the data is recorded on the plurality of magnetic tapes T. It may be determined whether or not recording has been completed for each.

次に、図9を参照して、本実施形態に係る情報処理装置12の作用を説明する。CPU20が情報処理プログラム30を実行することによって、図9に示すデータ記録処理が実行される。図9に示すデータ記録処理は、例えば、ユーザにより実行指示が入力された場合、及び記憶部22に蓄積されたデータのサイズの合計値が一定値以上になった場合等に実行される。 Next, the operation of the information processing device 12 according to this embodiment will be described with reference to FIG. The data recording process shown in FIG. 9 is executed by the CPU 20 executing the information processing program 30 . The data recording process shown in FIG. 9 is executed, for example, when an execution instruction is input by the user, or when the total size of the data accumulated in the storage unit 22 exceeds a certain value.

図9のステップS10で、判定部40は、前述したように、バッファメモリBMに格納されたデータが複数の磁気テープTそれぞれに記録済みであるか否かを判定する。この判定が肯定判定となった場合、処理はステップS12に移行する。ステップS10の判定が否定判定となった場合、判定部40は、バッファメモリBMに格納されたデータが複数の磁気テープTそれぞれに記録済みとなるまで待機する。前述したように、バッファメモリBMに格納されたデータの複数の磁気テープTそれぞれへの記録が完了すると、複数の磁気テープTそれぞれに対応するポインタ変数が更新される。これにより、ステップS10の判定が肯定判定となる。 In step S10 of FIG. 9, the determination unit 40 determines whether or not the data stored in the buffer memory BM has been recorded on each of the magnetic tapes T, as described above. If this determination is affirmative, the process proceeds to step S12. If the determination in step S10 is negative, the determination unit 40 waits until the data stored in the buffer memory BM is recorded on each of the magnetic tapes T. FIG. As described above, when the recording of the data stored in the buffer memory BM to each of the plurality of magnetic tapes T is completed, the pointer variables corresponding to each of the plurality of magnetic tapes T are updated. As a result, the determination in step S10 becomes an affirmative determination.

ステップS12で、格納部42は、前述したように、記憶部22に格納された複数の磁気テープTに未記録のデータをバッファメモリBMのステップS10で記録済みであると判定されたデータが格納された領域に格納する。ステップS14で、制御部44は、前述したように、ステップS12でバッファメモリBMに格納された複数の磁気テープTに未記録のデータを複数の磁気テープTに記録する制御を行う。ステップS14の処理が終了すると、データ記録処理が終了する。以上のデータ記録処理は、例えば、複数の磁気テープTに未記録のデータが記憶部22に存在しなくなるまで繰り返される。 In step S12, as described above, the storage unit 42 stores unrecorded data on the plurality of magnetic tapes T stored in the storage unit 22, and stores the data determined to have been recorded in the buffer memory BM in step S10. stored in the specified area. At step S14, the control unit 44 performs control to record data on the plurality of magnetic tapes T that have not yet been recorded on the plurality of magnetic tapes T stored in the buffer memory BM at step S12, as described above. When the process of step S14 ends, the data recording process ends. The above data recording process is repeated, for example, until there is no more unrecorded data on the magnetic tapes T in the storage unit 22 .

以上説明したように、本実施形態では、共用のバッファメモリBMを介して、同じデータが複数の磁気テープTに並列に記録される。この際、バッファメモリBMに格納されたデータが複数の磁気テープTそれぞれに記録済みであるか否かを判定しているため、共用のバッファメモリBMを用いた場合でも、同じデータを複数の磁気テープTに並列に記録することができる。従って、複数の磁気テープTそれぞれに対応して複数のバッファメモリBMを用いる場合に比較して、複数の磁気テープTに並列に同じデータを記録する場合におけるバッファメモリBMの合計サイズを低減することができる。 As described above, in this embodiment, the same data is recorded in parallel on a plurality of magnetic tapes T via the shared buffer memory BM. At this time, since it is determined whether or not the data stored in the buffer memory BM has been recorded on each of the plurality of magnetic tapes T, even if the shared buffer memory BM is used, the same data can be recorded on a plurality of magnetic tapes. The tape T can be recorded in parallel. Therefore, compared to the case of using a plurality of buffer memories BM corresponding to each of the plurality of magnetic tapes T, the total size of the buffer memories BM when recording the same data in parallel on a plurality of magnetic tapes T can be reduced. can be done.

なお、上記実施形態では、情報処理装置12は、同じデータを複数の磁気テープTに並列に記録しているため、それぞれの磁気テープTに対する記録処理の進行状況に差異が生じる場合もある。一例として図10に示すように、この差異は、ポインタ変数に格納されているアドレスの差異で表される。ここでは、2本の磁気テープTを区別するために、一方を磁気テープT1といい、他方を磁気テープT2という。図10では、磁気テープT1に「data1」が記録済みで、かつ「data2」及び「data3」が未記録であり、磁気テープT2に「data1」及び「data2」が記録済みで、かつ「data3」が未記録である例を示している。この場合、磁気テープT1に対応するポインタ変数には、複数の磁気テープTそれぞれに次に記録する「data2」のバッファメモリBM上のアドレスである「b」が格納される。また、この場合、磁気テープT2に対応するポインタ変数には、複数の磁気テープTそれぞれに次に記録する「data3」のバッファメモリBM上のアドレスである「c」が格納される。 In the above-described embodiment, the information processing apparatus 12 records the same data on a plurality of magnetic tapes T in parallel, so the progress of the recording process on each magnetic tape T may differ. As shown in FIG. 10 as an example, this difference is represented by a difference in addresses stored in pointer variables. Here, in order to distinguish between the two magnetic tapes T, one is called a magnetic tape T1 and the other is called a magnetic tape T2. In FIG. 10, "data1" has been recorded on the magnetic tape T1, and "data2" and "data3" have not been recorded, and "data1" and "data2" have been recorded on the magnetic tape T2, and "data3" has been recorded. is unrecorded. In this case, the pointer variable corresponding to the magnetic tape T1 stores "b" which is the address in the buffer memory BM of "data2" to be recorded next on each of the plurality of magnetic tapes T. FIG. Also, in this case, the pointer variable corresponding to the magnetic tape T2 stores "c", which is the address in the buffer memory BM of "data3" to be recorded next on each of the plurality of magnetic tapes T. FIG.

そこで、制御部44は、上記の並列にデータを記録する制御において、複数の磁気テープTそれぞれに次に記録するデータのバッファメモリBM上のアドレスの差が閾値以上の場合、相対的に多くのデータが記録済みとなっている磁気テープTへのデータの記録処理を遅延させてもよい。この場合の閾値には、例えば、各磁気テープTに対するデータの記録処理の時間差の許容範囲の上限値として定められた時間に対応するアドレスの差の値が設定される。図10の例では、制御部44は、磁気テープT1よりも多くのデータが記録済みとなっている磁気テープT2へのデータの記録処理を中断する。そして、制御部44は、磁気テープT1への「data2」の記録が完了し、各ポインタ変数に格納されるアドレスが等しくなった場合に、磁気テープT2へのデータの記録処理を再開する。これにより、複数の磁気テープTへのデータの記録処理の進行状況の差異が拡大することを抑制することができる。なお、磁気テープTへのデータの記録処理を遅延させる方法は、記録処理の中断及び再開に限定されず、例えば、制御部44がテープドライブ18へのデータの転送速度を低下させる等のように、磁気テープTへのデータの記録速度を低下させる方法でもよい。 Therefore, in the above-described control of recording data in parallel, the control unit 44 controls a relatively large number of data when the difference between the addresses in the buffer memory BM of the data to be recorded next on each of the plurality of magnetic tapes T is equal to or greater than a threshold value. The data recording process on the magnetic tape T on which data has already been recorded may be delayed. In this case, the threshold is set to, for example, the value of the address difference corresponding to the time defined as the upper limit of the allowable range of the time difference in the data recording process for each magnetic tape T. FIG. In the example of FIG. 10, the control unit 44 interrupts the data recording process on the magnetic tape T2 on which more data has been recorded than on the magnetic tape T1. When the recording of "data2" on the magnetic tape T1 is completed and the addresses stored in the pointer variables become equal, the control unit 44 restarts the data recording process on the magnetic tape T2. As a result, it is possible to suppress an increase in the difference in the progress of data recording processing on a plurality of magnetic tapes T. FIG. The method of delaying the data recording process on the magnetic tape T is not limited to interrupting and resuming the recording process. Alternatively, a method of reducing the recording speed of data onto the magnetic tape T may be used.

また、上記実施形態において、例えば、判定部40、格納部42、及び制御部44といった各種の処理を実行する処理部(processing unit)のハードウェア的な構造としては、次に示す各種のプロセッサ(processor)を用いることができる。上記各種のプロセッサには、前述したように、ソフトウェア(プログラム)を実行して各種の処理部として機能する汎用的なプロセッサであるCPUに加えて、FPGA(Field Programmable Gate Array)等の製造後に回路構成を変更可能なプロセッサであるプログラマブルロジックデバイス(Programmable Logic Device:PLD)、ASIC(Application Specific Integrated Circuit)等の特定の処理を実行させるために専用に設計された回路構成を有するプロセッサである専用電気回路等が含まれる。 Further, in the above-described embodiment, for example, the hardware structure of the processing unit (processing unit) that executes various processes such as the determination unit 40, the storage unit 42, and the control unit 44 includes the following various processors ( processor) can be used. As described above, the various processors include, in addition to the CPU, which is a general-purpose processor that executes software (programs) and functions as various processing units, circuits such as FPGA (Field Programmable Gate Array) are manufactured. Programmable Logic Device (PLD), which is a processor whose configuration can be changed, ASIC (Application Specific Integrated Circuit), etc. Circuits, etc. are included.

1つの処理部は、これらの各種のプロセッサのうちの1つで構成されてもよいし、同種又は異種の2つ以上のプロセッサの組み合わせ(例えば、複数のFPGAの組み合わせや、CPUとFPGAとの組み合わせ)で構成されてもよい。また、複数の処理部を1つのプロセッサで構成してもよい。 One processing unit may be composed of one of these various processors, or a combination of two or more processors of the same or different type (for example, a combination of a plurality of FPGAs, or a combination of a CPU and an FPGA). combination). Also, a plurality of processing units may be configured by one processor.

複数の処理部を1つのプロセッサで構成する例としては、第1に、クライアント及びサーバ等のコンピュータに代表されるように、1つ以上のCPUとソフトウェアの組み合わせで1つのプロセッサを構成し、このプロセッサが複数の処理部として機能する形態がある。第2に、システムオンチップ(System on Chip:SoC)等に代表されるように、複数の処理部を含むシステム全体の機能を1つのIC(Integrated Circuit)チップで実現するプロセッサを使用する形態がある。このように、各種の処理部は、ハードウェア的な構造として、上記各種のプロセッサの1つ以上を用いて構成される。 As an example of configuring a plurality of processing units with a single processor, first, as represented by computers such as clients and servers, a single processor is configured by combining one or more CPUs and software. There is a form in which a processor functions as multiple processing units. Secondly, as typified by System on Chip (SoC), etc., there is a form of using a processor that realizes the functions of the entire system including multiple processing units with a single IC (Integrated Circuit) chip. be. In this way, various processing units are configured using one or more of the above various processors as a hardware structure.

更に、これらの各種のプロセッサのハードウェア的な構造としては、より具体的には、半導体素子などの回路素子を組み合わせた電気回路(circuitry)を用いることができる。 Furthermore, as the hardware structure of these various processors, more specifically, an electric circuit in which circuit elements such as semiconductor elements are combined can be used.

また、上記実施形態では、情報処理プログラム30が記憶部22に予め記憶(インストール)されている態様を説明したが、これに限定されない。情報処理プログラム30は、CD-ROM(Compact Disc Read Only Memory)、DVD-ROM(Digital Versatile Disc Read Only Memory)、及びUSB(Universal Serial Bus)メモリ等の記録媒体に記録された形態で提供されてもよい。また、情報処理プログラム30は、ネットワークを介して外部装置からダウンロードされる形態としてもよい。 Further, in the above-described embodiment, the information processing program 30 has been pre-stored (installed) in the storage unit 22, but the present invention is not limited to this. The information processing program 30 is provided in a form recorded in a recording medium such as a CD-ROM (Compact Disc Read Only Memory), a DVD-ROM (Digital Versatile Disc Read Only Memory), and a USB (Universal Serial Bus) memory. good too. Further, the information processing program 30 may be downloaded from an external device via a network.

10 情報処理システム
12 情報処理装置
14 テープライブラリ
18 テープドライブ
20 CPU
21 メモリ
22 記憶部
23 ディスプレイ
24 入力装置
25 ネットワークI/F
26 外部I/F
27 バス
30 情報処理プログラム
40 判定部
42 格納部
44 制御部
BM バッファメモリ
T、T1、T2 磁気テープ
10 information processing system 12 information processing device 14 tape library 18 tape drive 20 CPU
21 memory 22 storage unit 23 display 24 input device 25 network I/F
26 External I/F
27 bus 30 information processing program 40 determination unit 42 storage unit 44 control unit BM buffer memories T, T1, T2 magnetic tape

Claims (6)

少なくとも一つのプロセッサを備え、かつ共用のバッファメモリを介して同じデータを複数の磁気テープに記録する制御を行う情報処理装置であって、
前記プロセッサは、
前記バッファメモリに格納されたデータが前記複数の磁気テープそれぞれに記録済みであるか否かを判定し、
前記データが前記複数の磁気テープそれぞれに記録済みであると判定した場合、記憶装置に格納された前記複数の磁気テープに未記録のデータを前記バッファメモリの前記記録済みであると判定したデータが格納された領域に格納する
情報処理装置。
An information processing device comprising at least one processor and performing control to record the same data on a plurality of magnetic tapes via a shared buffer memory,
The processor
determining whether the data stored in the buffer memory has been recorded on each of the plurality of magnetic tapes;
When it is determined that the data has been recorded on each of the plurality of magnetic tapes, the data determined to have been recorded in the buffer memory is the data that has not been recorded on the plurality of magnetic tapes stored in the storage device. Information processing device that stores in the storage area.
前記プロセッサは、
前記バッファメモリに格納された前記複数の磁気テープに未記録のデータを前記複数の磁気テープそれぞれに並列に記録する制御を行う
請求項1に記載の情報処理装置。
The processor
2. The information processing apparatus according to claim 1, wherein control is performed such that data not recorded on said plurality of magnetic tapes stored in said buffer memory is recorded in parallel on each of said plurality of magnetic tapes.
前記プロセッサは、
前記並列に記録する制御において、前記複数の磁気テープそれぞれに次に記録するデータの前記バッファメモリ上のアドレスの差が閾値以上の場合、相対的に多くのデータが記録済みとなっている前記磁気テープへのデータの記録処理を遅延させる
請求項2に記載の情報処理装置。
The processor
In the parallel recording control, when a difference between addresses on the buffer memory of the data to be recorded next on each of the plurality of magnetic tapes is equal to or greater than a threshold value, the magnetic recording medium in which a relatively large amount of data has been recorded. 3. The information processing apparatus according to claim 2, wherein a process of recording data onto a tape is delayed.
前記バッファメモリは、リングバッファ方式である
請求項1から請求項3の何れか1項に記載の情報処理装置。
The information processing apparatus according to any one of claims 1 to 3, wherein the buffer memory is of a ring buffer system.
少なくとも一つのプロセッサを備え、かつ共用のバッファメモリを介して同じデータを複数の磁気テープに記録する制御を行う情報処理装置の前記プロセッサが実行する情報処理方法であって、
前記バッファメモリに格納されたデータが前記複数の磁気テープそれぞれに記録済みであるか否かを判定し、
前記データが前記複数の磁気テープそれぞれに記録済みであると判定した場合、記憶装置に格納された前記複数の磁気テープに未記録のデータを前記バッファメモリの前記記録済みであると判定したデータが格納された領域に格納する
情報処理方法。
An information processing method executed by the processor of an information processing device comprising at least one processor and performing control to record the same data on a plurality of magnetic tapes via a shared buffer memory,
determining whether the data stored in the buffer memory has been recorded on each of the plurality of magnetic tapes;
When it is determined that the data has been recorded on each of the plurality of magnetic tapes, the data determined to have been recorded in the buffer memory is the data that has not been recorded on the plurality of magnetic tapes stored in the storage device. A method of processing information that is stored in a stored area.
少なくとも一つのプロセッサを備え、かつ共用のバッファメモリを介して同じデータを複数の磁気テープに記録する制御を行う情報処理装置の前記プロセッサに実行させるための情報処理プログラムであって、
前記バッファメモリに格納されたデータが前記複数の磁気テープそれぞれに記録済みであるか否かを判定し、
前記データが前記複数の磁気テープそれぞれに記録済みであると判定した場合、記憶装置に格納された前記複数の磁気テープに未記録のデータを前記バッファメモリの前記記録済みであると判定したデータが格納された領域に格納する
情報処理プログラム。
An information processing program to be executed by the processor of an information processing apparatus comprising at least one processor and performing control to record the same data on a plurality of magnetic tapes via a shared buffer memory,
determining whether the data stored in the buffer memory has been recorded on each of the plurality of magnetic tapes;
When it is determined that the data has been recorded on each of the plurality of magnetic tapes, the data determined to have been recorded in the buffer memory is the data that has not been recorded on the plurality of magnetic tapes stored in the storage device. Information processing program stored in the stored area.
JP2022013134A 2022-01-31 2022-01-31 Information processing apparatus, information processing method, and information processing program Pending JP2023111328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022013134A JP2023111328A (en) 2022-01-31 2022-01-31 Information processing apparatus, information processing method, and information processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022013134A JP2023111328A (en) 2022-01-31 2022-01-31 Information processing apparatus, information processing method, and information processing program

Publications (1)

Publication Number Publication Date
JP2023111328A true JP2023111328A (en) 2023-08-10

Family

ID=87551664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022013134A Pending JP2023111328A (en) 2022-01-31 2022-01-31 Information processing apparatus, information processing method, and information processing program

Country Status (1)

Country Link
JP (1) JP2023111328A (en)

Similar Documents

Publication Publication Date Title
CN111868705B (en) Recording device, reading device, recording method, reading method, and magnetic tape
WO2021171814A1 (en) Information processing device, information processing method, and information processing program
JP2023111328A (en) Information processing apparatus, information processing method, and information processing program
WO2022176344A1 (en) Information processing device, information processing method, and information processing program
US20230064391A1 (en) Information processing apparatus, information processing method, and information processing program
US20230065229A1 (en) Information processing apparatus, information processing method, and information processing program
WO2022163078A1 (en) Information processing device, information processing method, and information processing program
WO2022168405A1 (en) Information processing device, information processing method, and information processing program
WO2022044433A1 (en) Information processing device, information processing method, and information processing program
US20230047128A1 (en) Information processing apparatus, information processing method, and information processing program
US20230051963A1 (en) Information processing apparatus, information processing method, and information processing program
US20230067039A1 (en) Information processing apparatus, information processing method, and information processing program
WO2022044434A1 (en) Information processing device, information processing method, and information processing program
US20220413767A1 (en) Information processing device, information processing method, and information processing program
WO2022195984A1 (en) Information processing device, information processing method, and information processing program
WO2022172548A1 (en) Information processing device, information processing method, and information processing program
WO2022168399A1 (en) Information processing device, information processing method, and information processing program
US20230186945A1 (en) Information processing apparatus, information processing method, and information processing program
WO2022172549A1 (en) Information processing device, information processing method, and information processing program
US20230048156A1 (en) Information processing apparatus, information processing method, and information processing program
WO2021171816A1 (en) Information processing device, information processing method, and information processing program
WO2021054243A1 (en) Recording device, recording method, recording program, and magnetic tape
US20220406329A1 (en) Information processing device, information processing method, and information processing program
EP4141639A1 (en) Information processing apparatus, information processing method, and information processing program
JP2024059375A (en) Information processing device, information processing method, and program