The disclosed technique relates to an information processing device, an information processing method, and an information processing program.
The following techniques are known as techniques related to processing of recording data in each of a plurality of partitions formed on a magnetic tape. For example, JP2013-206518A discloses a magnetic tape device comprising: a partition creation unit that creates a first partition in which an original file is recorded and a second partition in which a copy file of the original file is recorded, in a magnetic tape; a determination unit that determines a recording position of the copy file such that an average access distance from a magnetic head portion is the shortest position in a case where the copy file is created in the second partition; and a copy file recording unit that records the copy file on the recording position of the second partition determined by the determination unit.
JP2015-41389A discloses a tape medium including an index partition (IP) that stores an index (metadata) of a file; and a data partition (DP) that stores data of the file, in which the IP includes a first area (IP1) and a second area (IP2).
Incidentally, as described in JP2013-206518A and JP2015-41389A, in a recent magnetic tape, partitions can be divided into, for example, a first partition in which data is recorded and a second partition in which metadata corresponding to the data is recorded. For example, one or more specific wraps of the magnetic tape are used as the second partition in which metadata is recorded, another one or more wraps are used as a guard band that separates the first partition and the second partition, and the remaining wraps are used as the first partition in which data is recorded. A recording head moves relative to the magnetic tape along a running direction of the magnetic tape (hereinafter, referred to as a tape running direction), whereby data and metadata are sequentially recorded along the tape running direction.
Here, a case where metadata corresponding to the data recorded in the first partition is recorded in the second partition, for example, in a case where the number or size of the recorded data reaches a predetermined value determined in advance will be considered. In this case, the recording position of the data recorded in the first partition on the magnetic tape and the recording position of the corresponding metadata recorded in the second partition on the magnetic tape may significantly deviate from each other. In this case, it takes a long time to move the recording head relative to the magnetic tape to the recording position of the metadata after recording the data in the first partition. It takes as long as 100 seconds to move the recording head relative to the magnetic tape from one end to the other end of the magnetic tape, for example, in a case where the running speed of the magnetic tape is 10 m/sec and the total length of the magnetic tape is 1 km.
The disclosed technique has been made in view of the above circumstances, and an object thereof is to provide an information processing device, an information processing method, and an information processing program capable of shortening the time required for recording data and metadata by shortening a movement distance of a recording head relative to a magnetic tape in a case where data and metadata are recorded on the magnetic tape.
According to the disclosed technique, there is provided an information processing device comprising: at least one processor, in which the processor performs, in a case where an address relative value between a first address value indicating an end position in a tape running direction of recorded data which is data recorded in a first partition of a magnetic tape having the first partition in which data is recorded and a second partition in which metadata corresponding to the data is recorded and a second address value indicating an end position in the tape running direction of latest metadata recorded in the second partition is within a predetermined range, control to record metadata corresponding to recorded data recorded after the latest metadata is recorded, in the second partition.
The processor may perform control to record the metadata corresponding to the recorded data recorded after the latest metadata is recorded, in the second partition, in a case where the address relative value is within the predetermined range and the number or a size of the recorded data recorded after the latest metadata is recorded is a predetermined value or more.
The processor may perform control to record the metadata corresponding to the recorded data recorded after the latest metadata is recorded, in the second partition, in a case where the address relative value is within the predetermined range and a predetermined time is passed from a point in time when the latest metadata is recorded.
The processor may change the predetermined range according to at least one of a size of the metadata corresponding to the recorded data recorded after the latest metadata is recorded, a running speed of the magnetic tape, or a recording direction in a case where the data and the metadata are recorded on the magnetic tape. Alternatively, a plurality of ranges of the address relative value may be set as the predetermined range.
The first partition and the second partition may be storage areas separated from each other in a width direction intersecting the tape running direction. Alternatively, the first partition and the second partition may be storage areas separated from each other in the tape running direction.
According to the disclosed technique, there is provided an information processing method executed by a processor provided in an information processing device, the method comprising: performing, in a case where an address relative value between a first address value indicating an end position in a tape running direction of recorded data which is data recorded in a first partition of a magnetic tape having the first partition in which data is recorded and a second partition in which metadata corresponding to the data is recorded and a second address value indicating an end position in the tape running direction of latest metadata recorded in the second partition is within a predetermined range, control to record metadata corresponding to recorded data recorded after the latest metadata is recorded, in the second partition.
According to the disclosed technique, there is provided an information processing program for causing a processor provided in an information processing device to execute a process comprising: performing, in a case where an address relative value between a first address value indicating an end position in a tape running direction of recorded data which is data recorded in a first partition of a magnetic tape having the first partition in which data is recorded and a second partition in which metadata corresponding to the data is recorded and a second address value indicating an end position in a tape running direction of latest metadata recorded in the second partition is within a predetermined range, control to record metadata corresponding to recorded data recorded after the latest metadata is recorded, in the second partition.
According to the disclosed technique, a movement distance of a recording head relative to a magnetic tape in a case where data and metadata are recorded on the magnetic tape is shortened, so that the time required for recording data and metadata can be shortened.
Exemplary embodiments according to the technique of the present disclosure will be described in detail based on the following figures, wherein:
Hereinafter, an example of an embodiment of the disclosed technique will be described with reference to the drawings. The same or equivalent constituent elements and parts are given the same reference numerals in each drawing, and overlapping description will not be repeated as appropriate.
The storage unit 103 is realized by a storage medium such as a hard disk drive (HDD), a solid state drive (SSD), or a flash memory. The storage unit 103 stores an information processing program 110. The CPU 101 reads out the information processing program 110 from the storage unit 103 and then develops the information processing program 110 into the memory 102, and executes the information processing program 110. An example of the information processing device 10 includes a server computer. The CPU 101 is an example of the processor in the disclosed technique.
The reception unit 11 receives data supplied from the outside and metadata corresponding to the data, via the network I/F 106. The reception unit 11 stores the received data in the data cache 12 and stores the metadata in the metadata DB 13. The metadata includes identification information such as a data name of corresponding data, a data size, and attribute information indicating a data attribute such as a time stamp.
Meanwhile, in the magnetic tape 30, a data partition DP in which data is recorded and a reference partition RP in which metadata corresponding to the data is recorded are formed through the format. In the present embodiment, the data partition DP and the reference partition RP are storage areas separated from each other in a width direction of the magnetic tape 30 intersecting a running direction. Guard wraps GW including a plurality of wraps are formed at a boundary portion between the data partition DP and the reference partition RP. The data partition DP is an example of the first partition in the disclosed technique, and the reference partition RP is an example of the second partition in the disclosed technique.
The recording unit 14 performs control to record the data stored in the data cache 12, in the data partition DP of the magnetic tape 30 loaded in the tape drive 20. At this time, the recording unit 14 adds the identification information of the magnetic tape 30 on which corresponding data is recorded, and management information for managing recorded data, such as information indicating a recording position on the magnetic tape 30, to metadata.
In the present embodiment, a linear recording method of recording data along the running direction of the magnetic tape 30 is employed as a method of recording data on the magnetic tape 30. As shown in
Here, timing of recording metadata corresponding to the data recorded in the data partition DP, in the reference partition RP, will be considered.
The tape drive 20 records data in the data partition DP while moving the recording position of the recording head relative to the magnetic tape 30 in a direction from the BOT to the EOT of the magnetic tape 30. In a case where the size of a data group consisting of a plurality of data recorded in the data partition DP is a predetermined value or more, the tape drive 20 moves the recording position of the recording head to a recording start position of metadata of the reference partition RP, and records a metadata group corresponding to the recorded data group, in the reference partition RP. After that, the tape drive 20 moves the recording position of the recording head to an end position of the recorded data group of the data partition DP, and records data from that position to the EOT. In a case where the total size of data A, data B, and data C when data A, data B, and data C are recorded is the predetermined value or more, the tape drive 20 moves the recording position of the recording head to an end position of the recorded metadata group of the reference partition RP, and records metadata A, metadata B, and metadata C corresponding to the respective recorded data A, data B, and data C from that position to the EOT.
In this way, in a case where metadata corresponding to data recorded in the data partition DP is recorded in the reference partition RP, the tape drive 20 moves the recording position of the recording head to the end position of the latest metadata recorded in the reference partition RP from the end position of the data. As shown in
In that respect, as described below, the recording unit 14 of the information processing device 10 according to the present embodiment controls the timing of recording metadata in the reference partition RP so that the movement distance of the recording head relative to the magnetic tape is shortened and the time required for recording data and metadata is shortened.
R=A1−A2 (1)
In the case shown in
The recording unit 14 of the information processing device 10 performs control to record metadata corresponding to data recorded in the data partition DP after the latest metadata is recorded, in the reference partition RP, in a case where the address relative value R is within a predetermined range.
Meanwhile,
That is, in a case where the idle running of the recording head when the recording head moves between the partitions is ignored, as an example, the recording unit 14 performs control to record metadata corresponding to data recorded in the data partition DP, in the reference partition RP, in a case where the address relative value R is within a range shown in Equation (2), so that the relative movement distance of the recording head can be made substantially the shortest.
0≤R≤X (2)
Since X in Equation (2) is a value corresponding to the size of the metadata to be recorded, the recording unit 14 may change the range of the address relative value R in which the recording of metadata is started, according to the size of metadata to be recorded. Alternatively, the range of the address relative value R used as a trigger for recording metadata in the reference partition RP may be two or more. For example, the front and back range centered on an address relative value of zero may be set as a first range, and the front and back range centered on the address relative value R and not overlapping with the first range may be set as a second range.
In the above description, the case where the idle running of the recording head when the recording head moves between the partitions is ignored has been shown, but a case where the idle running is not ignored will be described below.
In that respect, as shown in
Meanwhile,
The magnetic tape 30 is running while the recording head moves between the partitions from the end position of the metadata A to the recording start position of the data B. Therefore, the recording head runs idle in the recording direction while the recording head moves between the partitions. Accordingly, in a case where the metadata A is to be recorded in the reference partition RP at the time when the address relative value R is the value X corresponding to the size of the metadata A to be recorded, a position that deviates from the end position of the metadata A by an idle running distance is the recording start position of the data B. In this case, an idle area is formed between the data A and the data B. In order to eliminate this idle area, it is necessary to reverse the running direction of the magnetic tape 30 and to align the recording start position of the data B with the end position of the data A.
In that respect, as shown in
That is, in a case where the idle running of the recording head when the recording head moves between the partitions is not ignored, as an example, the recording unit 14 performs control to record metadata corresponding to data recorded in the data partition DP, in the reference partition RP, in a case where the address relative value R is within a range shown in Equation (3), so that the relative movement distance of the recording head can be made substantially the shortest.
−M1≤R≤X+M2 (3)
Since X in Equation (3) is a value corresponding to the size of the metadata to be recorded, the recording unit 14 may change the range of the address relative value R in which the recording of metadata is started, according to the size of metadata to be recorded. Further, since M1 and M2 in Equation (3) are values corresponding to the idle running distance of the recording head in the tape running direction when the recording head moves between the partitions and depend on the running speed of the magnetic tape 30, the recording unit 14 may change the range of the address relative value R in which the recording of metadata is started, according to the running speed of the magnetic tape 30. Alternatively, the range of the address relative value R used as a trigger for recording metadata in the reference partition RP may be two or more. For example, the front and back range centered on an address relative value of −M1 may be set as a first range, and the front and back range centered on an address relative value of X+M2 and not overlapping with the first range may be set as a second range.
In the above description, the case where the recording direction of data recorded in the data partition DP and the recording direction of metadata recorded in the reference partition RP are the same has been shown, but a case where the recording direction of the data and the recording direction of the metadata are different from each other will be described below.
Meanwhile,
That is, in a case where the idle running of the recording head when the recording head moves between the partitions is ignored even in a case where the recording direction of data and the recording direction of metadata are different from each other, as an example, the recording unit 14 performs control to record metadata corresponding to data recorded in the data partition DP, in the reference partition RP, in a case where the address relative value R is within a range shown in Equation (2), so that the relative movement distance of the recording head can be made substantially the shortest.
In the above description, the case where the idle running of the recording head when the recording head moves between the partitions is ignored in a case where the recording direction of data and the recording direction of metadata are opposite to each other has been described, but a case where the idle running is not ignored will be described below.
In that respect, as shown in
Meanwhile,
The magnetic tape 30 is running while the recording head moves between the partitions from the end position of the metadata A to the recording start position of the data B. Therefore, the recording head runs idle in the recording direction while the recording head moves between the partitions. Accordingly, it is considered that a position that deviates from the end position of the metadata A by an idle running distance is the recording start position of the data B, in a case where the metadata A is to be recorded in the reference partition RP at the time when the address relative value R is the value X corresponding to the size of the metadata A to be recorded. In this case, an idle area is formed between the data A and the data B. In order to eliminate this idle area, it is necessary to reverse the running direction of the magnetic tape 30 and to align the recording start position of the data B with the end position of the data A.
In that respect, as shown in
That is, in a case where the idle running of the recording head when the recording head moves between the partitions is not ignored in a case where the recording direction of data is a reverse direction from the EOT to the BOT and the recording direction of metadata is a forward direction from the BOT to the EOT, as an example, the recording unit 14 performs control to record metadata corresponding to data recorded in the data partition DP, in the reference partition RP, in a case where the address relative value R is within a range shown in Equation (4), so that the relative movement distance of the recording head can be made substantially the shortest.
−M3≤R≤X−M4 (4)
Since X in Equation (4) is a value corresponding to the size of the metadata to be recorded, the recording unit 14 may change the range of the address relative value R in which the recording of metadata is started, according to the size of metadata to be recorded. Further, since M3 and M4 in Equation (4) are values corresponding to the idle running distance of the recording head in the tape running direction when the recording head moves between the partitions and depend on the running speed of the magnetic tape 30, the recording unit 14 may change the range of the address relative value R in which the recording of metadata is started, according to the running speed of the magnetic tape 30. Alternatively, the range of the address relative value R used as a trigger for recording metadata in the reference partition RP may be two or more. For example, the front and back range centered on an address relative value of −M3 may be set as a first range, and the front and back range centered on an address relative value of X−M4 and not overlapping with the first range may be set as a second range.
Further, since it is assumed that the idle running distance of the recording head in the tape running direction when the recording head moves between the partitions varies according to the recording directions of data and metadata, the recording unit 14 may change the allowable range of the address relative value R in which the recording of metadata is started, according to the recording directions of data and metadata.
The action of the information processing device 10 will be described below.
In step S1, the recording unit 14 acquires the second address value A2 indicating the end position of the latest metadata recorded in the reference partition RP of the magnetic tape 30, from the control unit 21 of the tape drive 20. In a case where metadata has not yet been recorded on the magnetic tape 30, the recording unit 14 may acquire the recording start position of metadata first recorded in the reference partition RP, as the second address value A2.
In step S2, the recording unit 14 controls the control unit 21 of the tape drive 20 to record data recorded in the data cache 12, in the data partition DP.
In step S3, the recording unit 14 acquires the first address value A1 indicating the end position of data recorded in the data partition DP, from the control unit 21 of the tape drive 20 in response to the control of step S2.
In step S4, the recording unit 14 derives the address relative value R (=A1−A2) which is the relative value between the second address value A2 acquired in step S1 and the first address value A1 acquired in step S3.
In step S5, the recording unit 14 derives the range of the address relative value R used to determine whether or not to record metadata corresponding to the data recorded in the data partition DP (determination performed in step S6). As described above, the recording unit 14 derives the range of the address relative value R used for the above determination, on the basis of, for example, at least one of the size of metadata to be recorded, the running speed of the magnetic tape 30, or the recording directions of data and metadata. The recording unit 14 may set the range of the address relative value R used for the above determination to a predetermined range.
In step S6, the recording unit 14 determines whether or not the address relative value R derived in step S4 is within the range derived in step S5. In a case where the address relative value R is not within the above range, the process returns to step S2. That is, in this case, the processing of recording data in the data partition DP is continuously performed. On the other hand, in a case where the address relative value R is within the above range, the process proceeds to step S7.
In step S7, the recording unit 14 controls the control unit 21 of the tape drive 20 to record metadata corresponding to the data recorded in the data partition DP, in the reference partition RP.
In step S8, the recording unit 14 determines whether or not all the data and metadata to be recorded have been recorded on the magnetic tape 30. This routine ends in a case where the recording of all the data and metadata to be recorded, on the magnetic tape 30, is completed. The processing from step S1 to step S7 is repeated until the recording of all the data and the metadata to be recorded, on the magnetic tape 30, is completed.
As described above, with the information processing device 10 according to the embodiment of the disclosed technique, in a case where the address relative value R between the first address value A1 indicating the end position in the tape running direction of the recorded data which is data recorded in the data partition DP and the second address value A2 indicating the end position in the tape running direction of the latest metadata recorded in the reference partition RP is within a predetermined range, control to record metadata corresponding to the recorded data in the reference partition RP is performed. In this way, it is possible to prevent the recording position of data and the recording position of metadata from significantly deviating from each other by determining the metadata recording timing using the address relative value R, so that it is possible to shorten the movement distance of the recording head relative to the magnetic tape and to shorten the time required for recording data and metadata.
For example, in a case where the total length of the magnetic tape is 1 km, the recording position of data and the recording position of metadata may deviate from each other by a maximum of about 1 km. In this case, assuming that the running speed of the magnetic tape is 10 m/sec, it takes about 100 seconds to start recording the metadata after recording the data. With the information processing device 10 according to the embodiment of the disclosed technique, the time from the recording of the data to the start of the recording of the metadata can be made to about 5 seconds, which is required for the back hitch, and it is possible to realize a time reduction of up to 95%.
In the above-described embodiment, the case where the metadata recording timing is determined without considering the number or size of data recorded in the data partition DP has been exemplified, but the metadata recording timing may be determined in consideration of the number or size of data recorded in the data partition DP after the latest metadata is recorded. That is, the information processing device 10 may perform control to record metadata corresponding to the recorded data, in the reference partition RP, in a case where the address relative value R is within a predetermined range and the number or size of the recorded data recorded after the latest metadata is recorded is a predetermined value or more.
In step S6A, the recording unit 14 determines whether or not the number or size of data recorded in the data partition DP after the latest metadata recorded in the reference partition RP is recorded is a predetermined value or more. The process proceeds to step S7 in a case where the recording unit 14 determines that the number or size of data is the predetermined value or more, and the process returns to step S2 in a case where the recording unit 14 determines that the number or size of data is less than the predetermined value.
In this way, the metadata recording timing is determined in consideration of not only the address relative value R but also the number or size of data recorded in the data partition DP after the latest metadata is recorded, so that it is possible to reduce the number of times of recording processing of metadata.
Alternatively, the metadata recording timing may be determined in consideration of the passed time from a point in time when the latest metadata is recorded. That is, the information processing device 10 may perform control to record metadata corresponding to the recorded data, in the reference partition RP, in a case where the address relative value R is within a predetermined range and a predetermined time is passed from the point in time when the latest metadata is recorded.
In step S6B, the recording unit 14 determines whether or not a predetermined time is passed from the point in time when the latest metadata recorded in the reference partition RP is recorded. The process proceeds to step S7 in a case where the recording unit 14 determines that the predetermined time is passed, and the process returns to step S2 in a case where the recording unit 14 determines that the predetermined time is not passed.
Further, in the above-described embodiment, the case where data and metadata are recorded in the data partition DP and the reference partition RP separated from each other in the width direction intersecting the tape running direction, respectively, has been exemplified, but the disclosed technique can be applied to a case where data and metadata are recorded in the data partition DP and the reference partition RP separated from each other in the tape running direction, respectively, as shown in
Further, in the above-described embodiment, the case where the CPU 101 provided in the information processing device 10 performs the above-described recording processing has been exemplified, but a processor provided in the control unit 21 of the tape drive 20 may perform the above-described recording processing.
Further, in the above-described embodiment, the case where data is recorded in the data partition DP has been exemplified, but an object including data to be stored by the user, such as document data and image data, and metadata corresponding to the data may be recorded in the data partition DP. In this case, the metadata is recorded in the reference partition RP and is also included in the object recorded in the data partition DP. A storage system that handles this object is referred to as an object storage system.
Further, in the above-described embodiment, for example, the following various processors can be used as the hardware structure of a processing unit that executes various kinds of processing, such as the reception unit 11 and the recording unit 14. The above-described various processors include, for example, a programmable logic device (PLD) which is a processor having a changeable circuit configuration after manufacture, such as an FPGA, and a dedicated electrical circuit which is a processor having a dedicated circuit configuration designed to perform specific processing, such as an application specific integrated circuit (ASIC), in addition to the CPU which is a general-purpose processor that executes software (programs) to function as various processing units, as described above.
One processing unit may be composed of one of these various processors or a combination of two or more processors of the same type or different types (for example, a combination of a plurality of FPGAs or a combination of a CPU and an FPGA). Alternatively, a plurality of processing units may be composed of one processor.
A first example in which a plurality of processing units are composed of one processor is an aspect in which one or more CPUs and software are combined to constitute one processor and the processor functions as the plurality of processing units, as typified by a computer, such as a client and a server. A second example is an aspect in which a processor that realizes all the functions of a system including the plurality of processing units with one integrated circuit (IC) chip is used, as typified by a system on chip (SoC). As described above, various processing units are formed of one or more of the above-described various processors as the hardware structure.
Further, as the hardware structure of these various processors, more specifically, an electric circuit (circuitry) in which circuit elements, such as semiconductor elements, are combined can be used.
Further, in the above-described embodiment, the aspect in which the information processing program 110 is stored (installed) in the storage unit 103 in advance has been described, but the disclosed technique is not limited thereto. The information processing program 110 may be provided in a form of being recorded on a recording medium, such as a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), and a Universal Serial Bus (USB) memory. Alternatively, the information processing program 110 may be downloaded from an external device via a network.
The disclosure of JP2020-039322 filed on Mar. 6, 2020 is incorporated herein by reference in its entirety. In addition, all documents, patent applications, and technical standards described in the present specification are incorporated in the present specification by reference, to the same extent as in the case where each of the documents, patent applications, and technical standards is specifically and individually described.
Number | Date | Country | Kind |
---|---|---|---|
2020-039322 | Mar 2020 | JP | national |
This application is a continuation application of International Application No. PCT/JP2021/007942, filed Mar. 2, 2021, the disclosure of which is incorporated herein by reference in its entirety. Further, this application claims priority from Japanese Patent Application No. 2020-039322 filed on Mar. 6, 2020, the disclosure of which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2021/007942 | Mar 2021 | US |
Child | 17929302 | US |