Information processing device, information processing method, and program
The information processing device adjusts SSD write operations to maintain a lifespan difference, preventing simultaneous failure in RAID configurations by using SSD usage rates to extend the lifespan of SSDs in RAID systems.
Patent Information
- Application Number
- JP2020140329
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-21
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2040-08-21
AI Technical Summary
Existing technologies for SSDs in RAID configurations are limited by a lifespan determined by host access, leading to potential simultaneous failure of storage devices due to mismatched rewrite limits.
An information processing device that calculates the difference in lifespan between two SSDs and controls data writing to maintain a specified value, preventing simultaneous end-of-life by adjusting the number of rewrites based on SSD usage rates.
Prevents simultaneous SSD failures by ensuring that SSDs in RAID configurations reach the end of their lifespans at different times, improving reliability and avoiding data loss.
Smart Images

Figure 0007552141000001 
Figure 0007552141000004 
Figure 0007552141000006
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and a program. [Background technology]
[0002] In recent years, with the spread of SSDs (Solid State Drives), systems that use SSDs in a RAID (Redundant Arrays of Inexpensive Disks) configuration have also become common. SSDs have a limit to the number of times they can be rewritten. When SSDs are used in a RAID1 configuration, the same data is written to two SSDs, so the lifespans based on the number of rewrites are roughly the same.
[0003] In response to this, a mirroring device has been proposed that staggers the end of life of two storage devices by controlling the storage devices so that the difference in the remaining writable amount in which data can be rewritten becomes equal to or greater than a predetermined value when the difference is less than a predetermined value (see Patent Document 1, for example). Note that the predetermined value is a value that depends on how much the host accesses the SSD, and is a value acquired from the host. In the technology described in Patent Document 1, the storage devices are controlled so that the difference becomes equal to or greater than a predetermined value by delaying the timing of writing to the master or slave or increasing the number of times writing to the slave, based on a predetermined value T in which the difference D between the writable amounts of the master and slave is equal to or greater than the predetermined value. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2015-129998 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the technology described in Patent Document 1, the predetermined value is a value that depends on how much the host accesses the SSD and is a value obtained from the host, so it is not always possible to appropriately stagger the end of life of the two storage devices.
[0006] An object of the present invention is to provide an information processing device, an information processing method, and a program that solve the above-mentioned problems. [Means for solving the problem]
[0007] In order to achieve the above-mentioned object, according to one aspect of the present invention, an information processing device includes a first storage device and a second storage device, each of which is a storage device with an upper limit on the number of times data can be rewritten, and includes a discrimination unit that obtains the difference between the lifespan of the first storage device and the lifespan of the second storage device, compares the obtained difference with a specified value which is the average or maximum value of the usage rates of the first storage device and the second storage device at a specified time period since the system is started, and determines whether the difference is less than the specified value, and a control unit that writes data to at least one storage device if the difference is less than the specified value.
[0008] In order to achieve the above-mentioned object, according to another aspect of the present invention, an information processing method is an information processing method in an information processing device that controls a first storage device and a second storage device, each of which has an upper limit on the number of times data can be rewritten, which obtains a difference between the lifespan of the first storage device and the lifespan of the second storage device, compares the obtained difference with a specified value which is an average or maximum value of the usage rates of the first storage device and the second storage device for each specified time period since the system is started, determines whether the difference is less than the specified value, and if the difference is less than the specified value, writes data to at least one storage device.
[0009] In order to achieve the above-mentioned object, according to another aspect of the present invention, a program causes a computer of an information processing device that controls a first storage device and a second storage device, each having an upper limit on the number of times data can be rewritten, to obtain the difference between the lifespan of the first storage device and the lifespan of the second storage device, compare the obtained difference with a specified value that is the average or maximum value of the usage rates of the first storage device and the second storage device at a specified time period since the system was started, determine whether the difference is less than the specified value, and if the difference is less than the specified value, write data to at least one storage device. Effect of the Invention
[0010] According to each aspect of the present invention, it is possible to appropriately delay the end of the life of a storage device that has an upper limit on the number of times data can be rewritten. R Therefore, it is possible to prevent the storage devices from reaching the end of their lifespan at the same time. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing a minimum configuration of an information processing device according to a first embodiment. [Diagram 2] 5 is a flowchart illustrating an example of a processing procedure performed by the information processing device according to the first embodiment. [Diagram 3] FIG. 11 is a block diagram showing an example of a configuration of an information processing device according to a second embodiment. [Figure 4] 10 is a flowchart illustrating an example of a processing procedure performed by an information processing device according to the second embodiment. [Diagram 5] 1 is a block diagram showing an example of a configuration of an information processing device system according to an embodiment. [Figure 6] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, embodiments will be described with reference to the drawings.
[0013] First Embodiment Fig. 1 is a block diagram showing the minimum configuration of an information processing device according to this embodiment. As shown in Fig. 1, the information processing device 1 includes a discrimination unit 11 and a control unit 12. In addition, a first storage device 2 and a second storage device 3 are connected to the information processing device 1.
[0014] Each of the first storage device 2 and the second storage device 3 is a storage device with an upper limit on the number of times data can be rewritten. Each of the first storage device 2 and the second storage device 3 is, for example, an example of a storage device configured with a non-volatile memory, such as an SSD (Solid State Drive). In the following example, the first storage device 2 and the second storage device 3 are configured as a RAID (Redundant Arrays of Inexpensive Disks), and the RAID level is, for example, RAID1. In the embodiment, for example, the first storage device 2 is connected to slot 1, and the second storage device 3 is connected to slot 2.
[0015] The information processing device 1 is, for example, a RAID controller.
[0016] The determination unit 11 obtains information regarding the difference between the lifespan of the first storage device 2 and the lifespan of the second storage device. For example, the determination unit 11 obtains SMART (Self-Monitoring, Analysis and Reporting Technology) information of each of the first storage device 2 and the second storage device 3, and obtains information regarding the difference using the obtained SMART information of each of the first storage device 2 and the second storage device 3. The determination unit 11 compares the obtained difference with a specified value and determines whether the difference is less than the specified value. If the difference is less than the specified value, the determination unit 11 may select, for example, the storage device with the larger slot number as the target for writing data. The lifespan may be at least one of the writable recording capacity and the available usage time.
[0017] If the difference is less than the specified value, the control unit 、1The storage devices are controlled so that the difference between the two storage devices is equal to or greater than a specified value by writing data (e.g., dummy data) to the two storage devices. Note that the amount of data to be written is the amount of data that will result in the difference being equal to or greater than the specified value. 。
[0018] Here, the specified value may be, for example, a predetermined value (for example, 5%) of the maximum writable capacity. The specified value may also be the average or maximum value of the usage rate of the first storage device 2 and the second storage device 3 for a predetermined period of time after the system has been put into operation. The specified value may also be changed according to the usage time, for example, and may be changed according to the amount of data written. amount The predetermined time may be, for example, one day, one week, one month, etc. amount The determination unit 11 may also determine the period during which the amount For example, the predetermined time may be changed depending on the time when the memory device is first used. amount When the amount of data written at the beginning of use of the storage device is small and is less than the predetermined value, the influence on the lifespan is small, so the discrimination unit 11 may set the predetermined time to be longer. amount In the case where the number of the written values is more than the predetermined value, the influence on the life span is large, so the discrimination unit 11 may set the predetermined time to be shorter than the initial time. amount In response to an increase in the number of the inputs, the reference value may be changed by, for example, shortening the predetermined time.
[0019] Next, an example of a processing procedure performed by the information processing device 1 will be described. 2 is a flowchart showing an example of a processing procedure performed by the information processing device 1 according to the present embodiment. Note that the information processing device 1 performs the following processing, for example, at a predetermined date and time, after a predetermined amount of data has been written, and every predetermined period of use.
[0020] (Step S1) The determination unit 11 acquires information regarding the difference between the lifespan of the first storage device 2 and the lifespan of the second storage device.
[0021] (Step S2) The discriminator 11 compares the acquired difference with a specified value.
[0022] (Step S3) The discrimination unit 11 discriminates whether or not the difference is less than a specified value. If the discrimination unit 11 determines that the difference is less than the specified value (Step S3; YES), the discrimination unit 11 proceeds to the process of Step S4. If the discrimination unit 11 determines that the difference is equal to or greater than the specified value (Step S3; NO), the discrimination unit 11 ends the process.
[0023] (Step S4) If the difference is less than the specified value, the control unit 12 controls the storage devices so that the difference becomes equal to or greater than the specified value by writing data to at least one storage device.
[0024] The information processing device 1 according to this embodiment has been described above. In this embodiment, as a result of comparing the acquired difference in lifespan with a specified value, if the difference is less than the specified value, data is written to at least one storage device.
[0025] As a result, according to this embodiment, the storage device is controlled so that the difference is equal to or greater than a specified value, and it is possible to prevent storage devices with an upper limit on the number of times data can be rewritten from reaching the end of their lifespan at the same time. According to this embodiment, pre-processing (writing dummy data) is not required, so it is possible to reliably prevent simultaneous failure of SSDs. According to this embodiment, it is also possible to deal with cases where the difference in lifespan becomes small due to replacement of SSDs due to initial defects, etc.
[0026] In this embodiment, the specified value is set to the average or maximum value of the usage rate of the first storage device 2 and the second storage device 3 for each predetermined time period after the system has been put into operation. As a result, according to this embodiment, the accuracy can be improved compared to when the specified value is a value that depends on how much the host accesses the SSD, since the specified value is information acquired from the SSD. Also, according to this embodiment, the accuracy can be improved compared to related techniques by using a statistical value for the specified value.
[0027] <Second embodiment> figure 3 FIG. 1 is a block diagram showing an example of a configuration of an information processing device according to an embodiment of the present invention. 3 As described above, the information processing device 1A includes a discrimination unit 11A, a control unit 12A, a recognition unit 13, a selection unit 14, a detection unit 15, and a storage unit 16. As in the first embodiment, a first storage device 2 and a second storage device 3 are connected to the information processing device 1A.
[0028] The recognition unit 13 acquires the RAID configuration set in the information processing device 1A.
[0029] When the recognition unit 13 confirms that the RAID configuration is RAID1, the discrimination unit 11A acquires information on the difference between the lifespan of the first storage device 2 and the lifespan of the second storage device. The discrimination unit 11 compares the acquired difference with a specified value and judges whether the difference is less than the specified value. The specified value is the same as in the first embodiment.
[0030] The selection unit 14 selects a storage device to write data to if the RAID configuration is RAID1 and the difference is less than a specified value. If the difference between the lifespans of the first storage device 2 and the second storage device 3 is less than a predetermined value, the selection unit 14 selects, for example, the one with the larger slot number. Alternatively, if the difference is equal to or greater than a predetermined value, the selection unit 14 selects the storage device with the shorter lifespan.
[0031] The detection unit 15 detects the access status of the storage device selected by the selection unit .
[0032] If the RAID configuration is RAID1, the difference is less than a specified value, and the selected storage device is not being accessed, the control unit 12A controls the storage device so that the difference becomes equal to or greater than the specified value, for example by writing dummy data.
[0033] The storage unit 16 stores a specified value which is a fixed value, or a specified value which is an average or maximum value of the usage rates of the first storage device 2 and the second storage device 3 for a predetermined time period for each predetermined time period after the system has been operated. The specified value may be stored by the discrimination unit 11A. The storage unit 16 stores information (e.g., identification information) indicating the storage device to which the dummy data is written.
[0034] Next, an example of a processing procedure performed by the information processing device 1A will be described. FIG. 4 is a flowchart showing an example of a processing procedure performed by the information processing device 1A according to the present embodiment.
[0035] (Step S11) The recognition unit 13 acquires the RAID configuration set in the information processing device 1A.
[0036] (Step S12) The recognition unit 13 determines whether the RAID configuration is RAID1. If the recognition unit 13 determines that the RAID configuration is RAID1 (step S12; YES), the process proceeds to step S1. If the recognition unit 13 determines that the RAID configuration is not RAID1 (step S12; NO), the process ends.
[0037] (Steps S1 to S2) After the information processing device 1A recognizes that the RAID configuration is RAID1, it performs the processes of steps S1 to S2.
[0038] (Step S13) The discrimination unit 11A discriminates whether or not the difference is less than a specified value. If the discrimination unit 11A discriminates that the difference is less than the specified value (Step S13; YES), the process proceeds to Step S14. If the discrimination unit 11A discriminates that the difference is equal to or greater than the specified value (Step S13; NO), the process returns to Step S1.
[0039] (Step S14) The selection unit 14 determines whether or not a storage device into which dummy data is to be written has been selected. If the selection unit 14 determines that a storage device into which dummy data is to be written has been selected (Step S14; YES), the selection unit 14 proceeds to the process of Step S16. If the selection unit 14 determines that a storage device into which dummy data is to be written has not been selected (Step S14; NO), the selection unit 14 proceeds to the process of Step S15.
[0040] (Step S15) The selection unit 14 selects a storage device into which the dummy data is to be written.
[0041] (Step S16) The detection unit 15 detects whether the storage device selected by the selection unit 14 is being accessed. If the selected storage device is being accessed (Step S16; YES), the detection unit 15 repeats the process of Step S16. If the selected storage device is being accessed (Step S16; NO), the detection unit 15 proceeds to the process of Step S17.
[0042] (Step S17) The control unit 12A controls the selected storage device to write dummy data to the storage device so that the difference becomes equal to or greater than the specified value. After the process, the control unit 12A returns to the process of step S1.
[0043] The information processing device 1A performs the processes of steps S1 to S17, for example, at a predetermined date and time, after a predetermined amount of data has been written, and every predetermined amount of time of use.
[0044] As a result, this embodiment can handle cases where the RAID configuration at the time of shipment is unknown. This embodiment can wait for access and write dummy data to the selected storage device. This embodiment can prevent storage devices with a RAID1 configuration from simultaneously reaching the end of their lifespan and becoming unable to recover data. This embodiment eliminates the need for manual confirmation of the RAID configuration and pre-processing (writing dummy data), making it possible to reliably prevent simultaneous SSD failures. This embodiment can also handle cases where the difference in lifespan becomes small due to replacement of SSDs due to initial defects, etc.
[0045] <Other configuration examples of information processing device> Next, another example of the configuration of the information processing device will be described. 5 is a block diagram showing an example of the configuration of an information processing device system according to an embodiment. As shown in FIG. 5, the information processing device system 10 includes a CPU (Central Processing Unit) 5, an information processing device 1B, a first storage device 2, and a second storage device 3. The information processing device 1B includes a discrimination unit 11B, a control unit 12B, a recognition unit 13B, a selection unit 14B, a detection unit 15B, and an interface 16B. The information processing device 1B may include a storage unit 16.
[0046] The CPU 5 is connected to the information processing device 1B via, for example, a PCI Express interface 6. The CPU 5 issues an access request to the storage devices (the first storage device 2, the second storage device 3) in accordance with an instruction from software such as an OS (Operating System).
[0047] The information processing device 1B is connected to a first storage device 2 and a second storage device 3 via, for example, SAS (Serial Attached SCSI) or SATA (Serial ATA) interfaces 7 and 8. The information processing device 1B has a function of constructing a RAID using the first storage device 2 and the second storage device 3, and accesses the first storage device 2 and the second storage device 3 according to instructions from a CPU 5.
[0048] The recognition unit 13B recognizes the RAID configuration of the storage devices set in the information processing device 1B. If the RAID configuration is RAID1, the recognition unit 13B instructs the discrimination unit 11B to obtain the lifespans of the first storage device 2 and the second storage device 3.
[0049] The discrimination unit 11B acquires the lifespans of the first storage device 2 and the second storage device 3 via the interface 16B. If the difference between the acquired lifespans is less than a specified value, the discrimination unit 11B instructs the selection unit 14B to select a storage device to which data is to be written.
[0050] The selection unit 14B selects a storage device to which data is to be written. If there is no difference in the lifespans of the first storage device 2 and the second storage device 3 acquired by the recognition unit 13B, the selection unit 14B selects, for example, the storage device with the larger slot number. If there is a difference in the lifespans, the selection unit 14B selects the storage device with the shorter lifespan. If the selection unit 14B has already selected a storage device to which data is to be written, it omits the selection of a storage device and instructs the detection unit 15B to check the access status of the storage devices.
[0051] The detection unit 15B checks the access status of the first storage device 2 and the second storage device 3 via the interface 16B. If there is no access to the storage devices, the detection unit 15B instructs the control unit 12B to write data to the selected storage device.
[0052] The control unit 12B writes, for example, dummy data to the storage device selected by the selection unit 14B via the interface 16B. The data to be written does not have to be dummy data. In this embodiment, the control unit 12B may also write dummy data to both the first storage device 2 and the second storage device 3 so that the difference is equal to or greater than the specified value.
[0053] The process procedure of the information processing device 1B is similar to that of the information processing device 1A of the second embodiment.
[0054] The information processing device 1B can also provide the same effects as those of the first and second embodiments.
[0055] In each of the above-described embodiments, an example has been described in which a RAID1 configuration is configured using two storage devices, but the number of configuration devices is not limited to two and may be any number equal to or greater than two.
[0056] In each of the above-described embodiments, the RAID level of the first storage device 2 and the second storage device 3 is RAID1, but this is not limiting. The RAID level of the first storage device 2 and the second storage device 3 may be, for example, RAID01 (0+1) or RAID10 (1+0). In such a case, the information processing device 1 (or 1A or 1B) may select a combination of storage devices that constitute RAID1, and perform the above-described processing for each selected combination of storage devices.
[0057] In this manner, in each embodiment, the process of acquiring the life span as described above and writing, for example, dummy data to a storage device may be configured to write the same contents to a plurality of storage devices simultaneously.
[0058] In each of the above-mentioned embodiments, the information processing device 1 (or 1A, 1B) can also be applied to software RAID realized by an OS, or software RAID using a chipset function called Fake RAID (or BIOS RAID). In this case, the information processing device 1 (or 1A, 1B) may be realized by a CPU or the like.
[0059] The information processing device 1 (or 1A, 1B) described above may have a computer system therein. The processing steps performed by the information processing device 1 (or 1A, 1B) described above may be stored in a computer-readable recording medium in the form of a program, and the computer may read and execute this program to perform the above processing. Here, the computer-readable recording medium refers to a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, etc. Also, the computer program may be distributed to a computer via a communication line, and the computer that receives the program may execute the program.
[0060] 6 is a schematic block diagram showing the configuration of a computer according to at least one embodiment. As shown in FIG. 6, a computer 100 includes a CPU 101 (including a vector processor and a controller), a main memory 102, a storage 103, and an interface 104.
[0061] For example, the above-mentioned information processing device 1 (or 1A, 1B) is implemented in a computer 100. The operations of the above-mentioned processing units are stored in the storage 103 in the form of a program. The CPU 101 reads the program from the storage 103, loads it in the main memory 102, and executes the above-mentioned processing in accordance with the program. The CPU 101 also secures storage areas in the main memory 102 corresponding to the above-mentioned storage units in accordance with the program.
[0062] Examples of the storage 103 include a hard disk drive (HDD), an SSD, a magnetic disk, a magneto-optical disk, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), and a semiconductor memory. The storage 103 may be an internal medium directly connected to the bus of the computer 100, or an external medium connected to the computer 100 via the interface 104 or a communication line. In addition, when the program is distributed to the computer 100 via a communication line, the computer 100 that receives the program may load the program into the main memory 102 and execute the above-mentioned process. In at least one embodiment, the storage 103 is a non-transitory tangible recording medium.
[0063] The program may also realize some of the functions described above. Furthermore, the program may be a file that can realize the functions described above in combination with a program already recorded in the computer device, that is, a so-called differential file (differential program).
[0064] Although several embodiments of the present invention have been described, these embodiments are merely examples and do not limit the scope of the invention. Various additions, omissions, substitutions, and modifications may be made to these embodiments without departing from the spirit of the invention. [Explanation of symbols]
[0065] 1, 1A, 1B...Information processing device 2...1st storage device 3…Second storage device 11,11A,11B...Discrimination section 12, 12A, 12B...Control section 13,13B…Recognition part 14, 14B…Selection section 15, 15B…Detection section 16...Storage section
Claims
1. Each of the first storage device and the second storage device is a storage device in which an upper limit is set for the number of times data can be rewritten, The lifespan of the storage device is the available time of use, a determination unit that obtains a difference between a lifespan of the first storage device and a lifespan of the second storage device based on analysis information obtained from each of the first storage device and the second storage device, compares the obtained difference with a specified value based on the specified time of the first storage device and the second storage device for each specified time after the system has been started, and determines whether the difference is less than the specified value; a control unit that writes dummy data to one of the storage devices when the difference is less than the specified value; An information processing device comprising:
2. a selection unit that selects a storage device to which data is to be written when the difference is less than the specified value; The selection unit is when the difference between the lifespan of the first storage device and the lifespan of the second storage device is less than a predetermined value, a storage device with a larger slot number is selected, and when the difference is equal to or greater than a predetermined value, a storage device with a shorter lifespan is selected. The information processing device according to claim 1 .
3. A recognition unit that recognizes the configurations of the first storage device and the second storage device, the recognition unit instructs the determination unit to obtain a difference between a lifespan of the first storage device and a lifespan of the second storage device after recognizing that the configuration is a configuration in which the same content is written simultaneously to a plurality of storage devices; 3. The information processing device according to claim 1 or 2.
4. the determining unit sets the predetermined time to be shorter than the initial time when the first storage device and the second storage device are first used, depending on the amount of data written to the first storage device and the second storage device. The information processing device according to any one of claims 1 to 3.
5. the determination unit shortens the predetermined time period depending on the amount of data written to the first storage device and the second storage device. The information processing device according to any one of claims 1 to 4.
6. An information processing method in an information processing device that controls a first storage device and a second storage device, each of which has an upper limit on the number of times data can be rewritten, comprising: The lifespan of a storage device is the amount of time it can be used. the information processing device acquires a difference between a lifespan of the first storage device and a lifespan of the second storage device based on analysis information acquired from each of the first storage device and the second storage device; the information processing device compares a prescribed value based on a predetermined time of the first storage device and the second storage device at each predetermined time after the system is started with the acquired difference; the information processing device determines whether the difference is less than the specified value; the information processing device writes dummy data to one storage device when the difference is less than the specified value; Information processing methods.
7. A computer of an information processing device that controls a first storage device and a second storage device, each of which has an upper limit on the number of times data can be rewritten, The lifespan of a storage device is the amount of time it can be used. obtaining a difference between a lifespan of the first storage device and a lifespan of the second storage device based on analysis information obtained from each of the first storage device and the second storage device; comparing the acquired difference with a specified value based on a specified time of the first storage device and the second storage device for each specified time after the system has been operated, and determining whether the difference is less than the specified value; If the difference is less than the specified value, dummy data is written to one of the storage devices. program.
Citation Information
Patent Citations
Mirroring device, control method of the same, and program
JP2015129998A
Method and apparatus for managing a storage array
JP2015528174A
Storage control unit and storage control program
JP2016012287A
