The present disclosure relates to an information processing device, an information processing method, and an information processing program.
A technique of recording data on a magnetic tape in the order from data having a long remaining data storage period to data having a short remaining data storage period is disclosed (see JP2011-164867A).
In the technique disclosed in JP2011-164867A, the remaining data on the same magnetic tape can be normally accessed even in a case where data for which the storage period is expired is deleted, but it is not considered that new data is recorded in a free area in which the data is deleted.
In a case where data is recorded in a free area in accordance with a rule that data is recorded in the order from data having a long remaining storage period to data having a short remaining storage period, the number of pieces of data having a shorter remaining storage period than the storage period of data that has been recorded on the magnetic tape is getting smaller with the passage of time. Therefore, at least a part of the free area may remain a free area, and the magnetic tape cannot be efficiently used.
On the other hand, in a case where the above-described rule is ignored and data is recorded in the free area, data having a longer remaining storage period than the storage period of the recorded data is recorded in the free area. In this case, since the time when the data on the magnetic tape can be deleted is the time when the storage period of all the data recorded in the free area is expired, it is necessary to wait for a long period of time in order to reuse the magnetic tape. Accordingly, the magnetic tape cannot be efficiently used.
The present disclosure has been made in view of the above circumstances, and an object of the present disclosure is to provide an information processing device, an information processing method, and an information processing program capable of efficiently using a magnetic tape.
According to the present disclosure, there is provided an information processing device comprising: at least one processor, in which the processor performs control to record, out of a plurality of pieces of data to be recorded on a plurality of magnetic tapes, a data group in which a value corresponding to a size of a data group for which a storage period is within a predetermined range is equal to or more than a threshold value and a data group in which the value is less than the threshold value, on magnetic tapes different from each other.
In the information processing device of the present disclosure, the processor may perform, in a case where there are a plurality of the data groups in which the value is equal to or more than the threshold value, control to record the plurality of data groups on magnetic tapes different from each other, respectively.
Further, in the information processing device of the present disclosure, the value corresponding to the size of the data group may be a total value of the size of the data group for which the storage period is within the range or a ratio of the total value of the size of the data group for which the storage period is within the range to a total value of sizes of the plurality of pieces of data.
Further, in the information processing device of the present disclosure, the processor may set the threshold value according to a total value of sizes of the plurality of pieces of data.
Further, in the information processing device of the present disclosure, the processor may perform, for a data group having a size of which a total value is equal to or more than a second threshold value which is greater than the threshold value, out of the data group in which the value is equal to or more than the threshold value, control to narrow the range and to record the data group on the plurality of magnetic tapes.
Further, in the information processing device of the present disclosure, the processor may perform, for a data group having a size of which the total value corresponds to a capacity of the plurality of magnetic tapes, out of the data group in which the value is equal to or more than the threshold value, control to divide and record the data group on the plurality of magnetic tapes.
Further, according to the present disclosure, there is provided an information processing method executed by a processor provided in an information processing device, the method comprising: performing control to record, out of a plurality of pieces of data to be recorded on a plurality of magnetic tapes, a data group in which a value corresponding to a size of a data group for which a storage period is within a predetermined range is equal to or more than a threshold value and a data group in which the value is less than the threshold value, on magnetic tapes different from each other.
Further, according to the present disclosure, there is provided an information processing program for causing a processor provided in an information processing device to execute a process comprising: performing control to record, out of a plurality of pieces of data to be recorded on a plurality of magnetic tapes, a data group in which a value corresponding to a size of a data group for which a storage period is within a predetermined range is equal to or more than a threshold value and a data group in which the value is less than the threshold value, on magnetic tapes different from each other.
According to the present disclosure, a magnetic tape can be efficiently used.
Hereinafter, examples of embodiments of the technique of the present disclosure will be described in detail with reference to the drawings.
First, a configuration of a recording and reproducing system 10 according to the present embodiment will be described with reference to
The tape library 14 comprises a plurality of slots (not shown) and a plurality of tape drives 18, and a magnetic tape T as an example of a recording medium is stored in each slot. Each tape drive 18 is connected to the information processing device 12. The tape drive 18 writes or reads data with respect to the magnetic tape T under the control of the information processing device 12. An example of the magnetic tape T includes a linear tape-open (LTO) tape.
In a case where the information processing device 12 writes or reads data with respect to the magnetic tape T, the magnetic tape T to be written or to be read is loaded from the slot into the predetermined tape drive 18. In a case where the writing or reading of data with respect to the magnetic tape T loaded in the tape drive 18 is completed, the magnetic tape T is unloaded from the tape drive 18 to the originally stored slot.
Next, a hardware configuration of the information processing device 12 according to the present embodiment will be described with reference to
The storage unit 22 is realized by a hard disk drive (HDD), a solid state drive (SSD), a flash memory, or the like. An information processing program 30 is stored in the storage unit 22 serving as a storage medium. The CPU 20 reads out the information processing program 30 from the storage unit 22 and then develops the information processing program 30 into the memory 21, and executes the developed information processing program 30. An example of the information processing device 12 includes a server computer.
Further, the storage unit 22 stores a plurality of pieces of data to be recorded on a plurality of magnetic tapes T. As shown in
Next, a functional configuration of the information processing device 12 according to the present embodiment will be described with reference to
The acquisition unit 40 acquires a plurality of pieces of data to be recorded on the plurality of magnetic tapes T, from the storage unit 22.
The control unit 42 performs control to record, out of the plurality of pieces of data to be recorded acquired by the acquisition unit 40, a data group in which a value V corresponding to the size of a data group for which the storage period is within a predetermined range R is equal to or more than a threshold value TH1 and a data group in which the value V is less than the threshold value TH1, on magnetic tapes T different from each other. Further, the control unit 42 performs, in a case where there are a plurality of the data groups in which the value V is equal to or more than the threshold value TH1, control to record the plurality of data groups on magnetic tapes T different from each other, respectively. In the present embodiment, an example in which the total value of the size of the data group for which the storage period is within the range R is applied as the value V will be described. Hereinafter, the control performed by the control unit 42 will be described in detail with reference to
As shown in
As shown in
For example, a value corresponding to the capacity of the magnetic tape T, such as a size of 80% of the capacity of the magnetic tape T, can be applied as the threshold value TH1.
Next, the action of the information processing device 12 according to the present embodiment will be described with reference to
In step S10 of
In step S14, the control unit 42 performs control to record, out of the plurality of pieces of data to be recorded acquired in step S10, a data group in which the value V corresponding to the size of a data group for which the storage period is within the range R is equal to or more than the threshold value TH1 and a data group in which the value V is less than the threshold value TH1, on magnetic tapes T different from each other. At this time, the control unit 42 performs, in a case where there are a plurality of the data groups in which the value V is equal to or more than the threshold value TH1, control to record the plurality of data groups on magnetic tapes T different from each other, respectively. In a case where the processing of step S14 ends, the data recording processing ends.
As described above, according to the present embodiment, it is possible to record data groups for which the storage periods are relatively close to each other and in which the total value of the sizes is equal to or more than the threshold value, on the same magnetic tape. Further, the number of magnetic tapes can be reduced as compared with a case where magnetic tapes are prepared for each fixed range of the storage period determined in advance. Accordingly, the magnetic tape can be efficiently used.
In the above-described embodiment, the case where the total value of the size of the data group for which the storage period is within the range R is applied as the value V has been described, but the present disclosure is not limited thereto. The ratio of the total value of the size of the data group for which the storage period is within the range R to the total value of the sizes of the plurality of pieces of data to be recorded (T1 in the example of
In the above-described embodiment, the case where the threshold value TH1 is preset has been described, but the present disclosure is not limited thereto. The control unit 42 may set the threshold value TH1 according to the total value of the sizes of the plurality of pieces of data to be recorded. In this case, an aspect is exemplified in which the control unit 42 sets, in a case where the total value of the sizes of the plurality of pieces of data to be recorded exceeds the capacity of the plurality of magnetic tapes T, the threshold value TH1 to a value (for example, a value of 80% of the capacity of one magnetic tape) equal to or less than the capacity of one magnetic tape. Alternatively, in this case, an aspect is exemplified in which the control unit 42 sets, in a case where the total value of the sizes of the plurality of pieces of data to be recorded is a relatively small value which is less than the capacity of one magnetic tape T, the threshold value TH1 to a value (for example, a value of 50% of the total value) less than the total value. The example of this aspect can be applied to a case where a plurality of pieces of data having relatively small sizes are recorded on the plurality of magnetic tapes T, for example, at a periodic timing, such as once a day.
Further, in the above-described embodiment, the control unit 42 may perform, for a data group having a size of which a total value is equal to or more than a second threshold value TH2 which is greater than the threshold value TH1, out of the data group in which the value V is equal to or more than the threshold value TH1, control to narrow the range R and to record the data group on the plurality of magnetic tapes T as in the above-described embodiment. Examples of the threshold value TH2 in this case include a value corresponding to the capacity of the plurality of magnetic tapes T. Specifically, as shown in
Further, in the above-described embodiment, for example, as a hardware structure of a processing unit that executes various types of processing, such as the acquisition unit 40 and the control unit 42, the following various processors can be used. 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 a field programmable gate array (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.
In the above-described embodiment, the aspect in which the information processing program 30 is stored (installed) in the storage unit 22 in advance has been described, but the present disclosure is not limited thereto. The information processing program 30 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 30 may be downloaded from an external device via the network.
The disclosure of JP2020-048439 filed on Mar. 18, 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 herein by reference to the same extent as in a case of being specifically and individually noted that individual documents, patent applications, and technical standards are incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2020-048439 | Mar 2020 | JP | national |
This application is a continuation application of International Application No. PCT/JP2020/038132, filed on Oct. 8, 2020, the disclosure of which is incorporated herein by reference in its entirety. Further, this application claims priority from Japanese Patent Application No. 2020-048439, filed on Mar. 18, 2020, the disclosure of which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2020/038132 | Oct 2020 | US |
Child | 17822806 | US |