This application is based on and claims the benefit of priority from Japanese Patent Application No. 2015-247163 filed on Dec. 18, 2015, the contents of which are hereby incorporated by reference.
The present disclosure relates to an electronic device and a computer-readable non-transitory storage medium both of which are suitable for managing nonvolatile memories that includes, for example, SSDs (Solid State Drives).
For example, on an image forming device that is in the form of an MFP (Multifunction Peripheral) acting as a printer, a multifunctional printer, a multifunctional machine, or the like, there is mounted a large capacity HDD (Hard Disk Drive) for performing multi operation of each jobs including copy, print, FAX (facsimile), or the like, and for realizing a user box function. Such an image forming device is also capable of being mounted with a nonvolatile memory such as a SSD using an NAND type flash memory (Registered Trademark) with a high speed access for data reading/writing. Further, such an image forming device is capable of mounting with only a nonvolatile memory such as a SSD without mounting an HDD.
Incidentally, while the SSD has a merit of higher speed access for data reading/writing than the HDD, the SSD has a demerit of data write lifetime is short due to the structure of the flash memory (registered trademark). For this reason, if the SSD that is in use comes to its lifetime, there may be a fear of an abnormal operation or a malfunction of the image forming device.
For overcoming the aforementioned defects, a data storage control device, as a typical technique, has been known. This data storage control device includes a counter that counts number of times of writing a data on a first nonvolatile memory whose guaranteed number of times of rewriting is small for each partition and a control part that causes data to be written into a second nonvolatile memory whose guaranteed number of times of rewriting is large, if the number of times of writing data on the first nonvolatile memory in which the data is to be written is in excess of a specified number of times.
An electronic device according to the present disclosure has feature to include a panel part that displays information, a first memory, and a system control part that calculates a warning indication threshold value, based on a data write quantity written in a first memory, in a first time duration before the data write quantity to the first memory reaches a guaranteed write capacity, the system control part controlling a data write to the first memory and causing the panel part to display warning a requirement for replacement of the first memory if a remaining write capacity of the guaranteed write capacity reaches the warning indication threshold value.
A non-transitory computer-readable storage medium according to the present disclosure stores a memory lifetime warning program that is executable by a computer of an electronic device. The memory lifetime warning program, when being executed by the computer, causes the computer to calculate a warning indication threshold value based on a data quantity written in a first memory for a first duration before the data quantity written in the first memory reaches a guaranteed write capacity of the first memory, to control a data write in the first memory, and to cause the panel part to display warning a requirement for replacement of the first memory when a remaining write capacity of the guaranteed write capacity reaches the warning indication threshold value.
Hereinbelow, with reference to
First of all, as illustrated in
The scanner part 101 is a device that converts an image of a manuscript scanned by an image sensor to digital image data and inputs the resulting digital image data to the control part 110. The print part 102 is a device that makes a print an image on a paper pursuant to print data outputted from the control part 110. The FAX part 103 is a device that transmits data outputted from the control part 110 to an opposite-side facsimile machine via a public telephone line and/or receives data from the opposite-side facsimile machine to input this data to the control part 110.
The I/F 104 is a device such as a network interface card or the like, this device establishing a communication, via networks that include, for example, an in-house LAN (Local Area Network) and the Internet, to other user terminals, content servers, and web servers. The USB memory 105 is a device that stores print data, setting change data and the like. Mounting the USB memory 105 to a specific portion of the MFP 100 allows a USB memory control part 118 that will be described later to read the print data, the setting change data and the like.
The panel part 106 is a device, that is a touch panel or the like, that displays for various functions of the MFP 100 that include, for example, a print function, a copy function, a FAX function and a data transmitting/receiving function via the Internet, and indicates for various setting data. The panel part 106 also indicates warning a requirement for replacement of the SSD 108 as will be described later. It is to be noted that warning a requirement for replacement of the SSD 108, that will be detailed later, when a system control part 122 that will be described later confirms that the lifetime of the SSD 108 gets near that will be detailed later, the system control part 122 controls a panel operation part 119 that will be described later in order to indicate the confirmed fact on the panel part 106.
The HDD 107 as a second memory, that will be detailed later, is a storage device that stores, for example, application programs for providing various functions of the MFP 100. It is to be noted that as described above the HDD 107 is optional equipment that is mounted on the MFP 100 if necessary.
The SSD 108 as a first memory, that will be detailed later, is a storage device that stores, for example, application programs for providing various functions of the MFP 100, similar to the HDD 107. The SSD 108 includes a cell structure (hereinafter, that will be referred to as “cell”) as a minimum unit for data storage and a controller for controlling writing data in the cell. It is to be noted that as described above, the present exemplary embodiment assumes that the SSD 108 is a standardly mounted to the MFP 108.
The control part 110 is a processor that executes programs including, for example, an image forming program and a control program for performing the whole control of the MFP 100. The control part 110 includes a scanner control part 111, a printer control part 112, a FAX (facsimile) control part 113, a communication control part 114, a RAM (Random Access Memory) 115, a ROM (Read-Only Memory) 116, an image processing part 117, a USB memory control part 118, a panel operation control part 119, an HDD control part 120, an SSD control part 121, and a system control part 122. In addition these parts are connected to a data bus 123.
The scanner control part 111 controls a reading operation of the scanner part 101. The printer control part 112 controls a print operation of the printer part 102. The FAX control part 113 controls a facsimile transmitting/receiving operation of the FAX part 103. The communication control part 114 causes the I/F 104 to control a data transmitting/receiving operation via the network.
The RAM 115 is provided as a work memory for executing a program. In addition, the RAM 115 stores, for example, the print data that is image-processed by the image processing part 117. In the ROM 116, there is stored a control program for checking the operation of each of the parts. The image processing part 117 performs an image processing (rasterization) to the image data that the scanner part 101 reads, for example. The USB memory control part 118 allows data to access the USB memory 105. The panel operation control part 119 controls an indication operation of the panel part 106. The panel operation control part 119 also causes the panel part 106 receive initiation instructions of, for example, print, copy, FAX, and via-the-Internet data transmitting/receiving operations.
The HDD control part 120, for example, performs a control to access data to the HDD 107. The SSD control part 121, for example, performs a control to access data to the SSD 108. The system control part 122 controls associated operations between each the parts. As will be detailed later, the system control part 122 causes, via the panel operation control part 119, the panel part 106 to indicate a requirement for replacement of the SSD 108 based on a warning indication threshold value calculated by design estimation.
Next, with reference to
The partition 108A for system includes partitions A to D. The partition A is provided for an OS (Operating System) Image. The partition B is provided for an MFP controller control program. The partition C is provided to be used as a database such as an address note. The partition D is provided for system data.
The partition 108B for each function, which is provided as a partition for a first function, includes partitions E to H. The partition E is provided for an image handling to be used in image handling. The partition F is provided for a user box that the user uses as a box function. The partition G is provided for a FAX box to be used as a FAX function. The partition H is provided for a user application work to be used as a work area when a user application is installed.
In addition, the partitions A to H are allocated in a virtual memory area and therefore specific cells of the SSD 108 do not correspond to specific partitions, statically. Actually, the controller of the SSD 108 performs a control to write data in a cell (that is, a cell that does not correspond to data stored in the virtual memory area) in which no data is written. When writing such data, it is possible to cause the controller of the SSD 108 to average the writing number of times of data in each of the cells (not to prevent an unbalanced writing number of times between the cells).
It is to be noted that the partition 107B for each function that is at the side of the HDD 107 is used when the HDD 107 is optionally added. The reason is that the storage capacity at the side of HDD107 is larger than that at the side of the SSD 108. In this case, the partition 108B for each function at the side of the SSD 108 is not used.
Next, with reference to
At first,
At this stage, a description is made as to a warning indication threshold value that determines an optimum timing for warning a requirement for replacement of the SSD 108 when the lifetime of the SSD 108 is close to end. It is to be noted that in the present exemplary embodiment the lifetime of the SSD 108 is defined such that the data write quantity of the SSD 108 sums up to a TBW (Tera Byte Written). In addition, the following warning indication threshold value is determined by a calculating operation of the system control part 122. More specifically, if the SSD 108 is the only storage device mounted on the MFP 100, all the partitions A to H that are used as illustrated in
In the present exemplary embodiment, as an optimum timing for warning a requirement for replacement of the SSD 108, a specific period of time, for example, 3 months, is described that is before the data write quantity reaches the Tera Byte Witten. The phrase “three months” means three months preceding reaching of the lifetime of the SSD 108. In addition, the lifetime of the SSD 108 means that the sum of the data write quantities c reaches the TBW with the result that the remaining available write capacity is 0. Further, the specified duration of “three months” as an optimum timing for warning a requirement for replacement of the SSD 108 may be set in advance or by operating the panel part 106.
Here, as illustrated in
Then, for example, in a case where the SSD 108 of 8 GB is used, if a determination is made for warning a requirement for replacement of the SSD 108 three months before the lifetime of the SSD 108, the required is to sum up the data write quantities c during three months. In this case, given that the sum of the data write quantities c per day is about 17000 MB and the number of operation days of the MFP 100 is 20, the sum of the data write quantities c during three months is:
170000 (MB)×3 (months)×20 (Days: Operation days)=1020000 (MB)
More specifically, it is revealed that the time point at which the remaining data write capacity in the TBW (that is available data write capacity) comes to be 1020000 MB (about 1 TB) is the duration of three months before the lifetime of the SSD 108.
In view of the above, assuming that the sum of the data write quantities c for three months is A (TB) and a TBW as a guaranteed write capacity of the SSD 108 is B (TB), from the following formula
A (TB)÷B (TB) (Formula 1)
It is possible to calculate the warning indication threshold value.
Thus, using Formula (1) , if the sum of the data capacities c for three months is 1 (TB) and the TBW as the guaranteed write capacity is 19 (TB), the warning indication threshold value is:
1 (TB)÷B (TB)≈0.05
More specifically, as illustrated in
It is to be noted that though the optimum timing is set here to be three months earlier than the lifetime of the SSD 108, the optimum timing may be allowed to be shorter or longer than three months. In this case, a setting is made for the changed optimum timing of warning a requirement for replacement of the SSD 108 by operating the panel part 106. Then, if the optimum timing is set to be two months, the system control part 122 determines a sum of data write quantities c during two months and substituting the resulting sum into formula (1) , (sum of data write quantities c during two months)÷19 (TB) , providing the warning indication threshold value.
In addition, in a case of an SSD 108 of 32 GB, the warning indication threshold value is, from formula (1),
1(TB)÷79 (TB)≈0.01
More specifically, as illustrated in
It is to be noted that if the HDD 107 is optionally added, as illustrated in
In this case, a sum of the data write quantities c per day in the partitions A to D of the SSD 108 is about 5000 MB. In addition, on the assumption that the operating days of one month is 20 days, the sum of data write quantities for three months is:
5000 (MB)×3 (Months)×20 (days: operating days)=300000 (MB)
More specifically, when the remaining data write quantity of the TBW comes to be 300000 (about 0.3 TB) , such a time point is three months earlier that the lifetime of the SSD 108.
From the above, if the SSD 108 of 8 GB is used and the TBW is 19 TBW, the warning indication threshold value, formula (1) provides the warning indication threshold value as follows:
0.3 (TB)÷19 (TB)≈0.016
More specifically, if the HDD 107 is optionally added, when the possible data write quantity in the SSD 108 is 1.6% of the TBW, such a time point may be used as an optimum timing of warning a requirement for replacement of the SSD 108 of 8 GB.
In addition, similarly, in a case where the HDD 107 is optionally added, if the SSD 108 of 32 GB is used and the TBW is 79 TBW, formula (1) provides the warning indication threshold value as follows:
0.3 (TB)÷79 (TB)≈0.003
More specifically, if the HDD 107 is optionally added, when the possible data write quantity in the SSD 108 is 0.3% of the TBW, such a time point may be used as an optimum timing of warning a requirement for replacement of the SSD 108 of 32 GB.
In this, case, similar to the above, the optimum timing may be allowed to be shorter or longer than three months.
It is to be noted that if only the SSD 108 with a secure function is mounted on the MFP 100, as shown in
In this case, a sum of the data write quantities c per day in the partitions A to D of the SSD 108 is about 51200 MB. In addition, on the assumption that the operating days of one month is 20 days, the sum of data write quantities for three months is:
51200 (MB)=3 (Months)=20 (days: operating days)=3072000 (MB)
More specifically, when the remaining data write quantity of the TBW comes to be 3072000 (about 3 TB) , such a time point is three months earlier that the lifetime of the SSD 108.
From the above, if the SSD 108 of 8 GB is used and the TBW is 19 TBW, the warning indication threshold value, formula (1) provides the warning indication threshold value as follows:
3 (TB)÷19 (TB)≈0.16
More specifically, when the possible data write quantity in the SSD 108 is 16% of the TBW, such a time point may be used as an optimum timing of warning a requirement for replacement of the SSD 108 of 8 GB with secure function.
In addition, similarly, if the SSD 108 of 32 GB with secure function is used and the TBW is 79 TBW, formula (1) provides the warning indication threshold value as follows:
3 (TB)÷79 (TB)≈0.04
More specifically, when the possible data write quantity in the SSD 108 is 4% of the TBW, such a time point may be used as an optimum timing of warning a requirement for replacement of the SSD 108 of 32 GB with secure function.
In this case, similar to the above, the optimum timing may be allowed to be shorter or longer than three months.
Next, with reference to
(Step S101)
First of all, the system control part 122 confirms whether or not the SSD 108 has a storage capacity of 8 GB (19 TBW). If the system control part 122 determines that SSD 108 has a storage capacity of 8 GB (19 TBW) (STEP 101: Yes), the system control part 122 causes the procedure to go to STEP S102. On the contrary, if the system control part 122 does not determine that SSD 108 has a storage capacity of 8 GB (19 TBW) (STEP 101: No), the system control part 122 causes the procedure to go to STEP S107.
(Step S102)
The system control part 122 reads out the definition by the design estimation that is stored in, for example, the partition D in order to calculate the sum of the data write quantities c per day. In this case, as explained using
(Step S103)
The system control part 122 to calculate the sum of the data write quantities c for three months in order to determine the warning indication threshold value. In this case, the system control part 122, as described above, calculates the sum of the data write quantities c for three months on the assumption that the number of operation days of the MFP 100 is 20.
More specifically, the sum of the data write quantities c during three months is:
170000 (MB)×3(months)×20 (Days: Operation days)=1020000 (MB)
(Step S104)
The system control part 122 calculates the warning indication threshold value by the design estimation. In this case, based on the sum of the data write quantities c during three months, the system control part 122 determines that the time point at which the remaining data write capacity in the TBW (that is available data write capacity) of SSD108 comes to be 1020000 MB (about 1 TB) is the duration of three months before the lifetime of the SSD 108. Then, the system control part 122, using the aforementioned formula (1), calculates
1 (TB)÷B (TB)≈0.05
More specifically, the system control part 122 determines that 5% of the TBW is the warning indication threshold value.
(Step S105)
The system controller 122 determines whether or not the possible data write quantity in the SSD 108 reaches 5% of the TBW as the warning indication threshold value. If the system controller 122 determines that the possible data write quantity in the SSD 108 does not reach 5% of the TBW as the warning indication threshold value (STEP S105: No), the system control part 122 continues to determine whether the possible data write quantity in the SSD 108 reaches 5% of the TBW as the warning indication threshold value. On the other hand, the system controller 122 determines that the possible data write quantity in the SSD 108 reaches 5% of the TBW as the warning indication threshold value (STEP S105: Yes), the control part 122 causes the procedure to go to STEP S106.
(Step S106)
The system control part 122 causes the panel operation control part 119 to display warning a requirement for replacement of the SSD 108 on the panel part 106.
(Step S107)
Similar to STEP S102, the system control part 122 calculates the sum of the data write quantities c per day. In this case, similar to the above, the sum of the data write quantities c per day of the partitions A to H of the SSD 108 is about 17000 MB.
(Step S108)
The system control part 122 calculates, similar to STEP S103, the sum of the data write quantities c of the partitions A to H of the SSD 108 for three months. In this case, similar to the above, the system control part 122 calculates the sum of the data write quantities c for three months on the assumption that the number of operation days of the MFP 100 is 20.
More specifically, the sum of the data write quantities c during three months is:
170000 (MB)×3 (months)×20 (Days: Operation days)=1020000 (MB)
(Step S109)
The system control part 122 calculates, similar to STEP S104, the warning indication threshold value. In this case, based on the sum of the data write quantities c during three months, the system control part 122 determines that the time point at which the remaining data write capacity in the TBW (i.e. available data write capacity) comes to be 1020000 MB (about 1 TB) is the duration of three months before the lifetime of the SSD 108. Then, the system control part 122, using the aforementioned formula (1), calculates
1 (TB)÷79 (TB)≈0.01
More specifically, the system control part 122 determines that 1% of the TBW is the warning indication threshold value.
(Step S110)
The system controller 122 determines whether or not the possible data write quantity in the SSD 108 reaches 1% of the TBW as the warning indication threshold value. If the system controller 122 determines that the possible data write quantity in the SSD 108 does not reach 1% of the TBW as the warning indication threshold value (STEP S110: No), the system control part 122 continues to determine whether the possible data write quantity in the SSD 108 reaches 1% of the TBW as the warning indication threshold value. On the other hand, the system controller 122 determines that the possible data write quantity in the SSD 108 reaches 1% of the TBW as the warning indication threshold value (STEP S110: Yes), the control part 122 causes the procedure to go to the aforementioned STEP S106.
It is to be noted that the above description is made in a case where only the SSD 108, that is a nonvolatile memory, is mounted on the MFP 100. As described with reference to
In addition, as described with reference to
In such a way, in the present exemplary embodiment, it is possible to calculate the warning indication threshold value by calculating the ratio of a multiplied value to the TBW (guaranteed write capacity), the multiplied value being a sum of the data write quantities per day that are defined for partitions (the for-system partition 108A of the SSD 108 (first memory) and the for-each-function partition 108B (first for-each-function partition)) and a specified duration (for example, three months) before the sum of the data write quantities c in the SSD 108 reaches the TBW (guaranteed write capacity). In addition the system control 122, that controls the data write in the for-system partition 108A and the for-each-function partition 108B (first for-each-function partition), is capable of causing the panel part 106 to display warning a requirement for replacement of the SSD 108 when the remaining data write quantity of the TBW (guaranteed write capacity) reaches the warning indication threshold value.
Thus, even if the data write quantities in the SSD 108 vary due to the system device configuration being in use and the function being in use, it is possible to cause the panel part 106 to display warning a requirement for replacement of the SSD 108 based on the warning indication threshold value provided by the design estimation, that makes it possible to provide an optimum indication timing for warning a requirement for replacement of the SSD 108.
In the aforementioned typical technique of the data storage control device, before reaching the guarantee rewrite number of times of the first nonvolatile memory, the data to be written in the first nonvolatile memory is stored in the second nonvolatile memory, that makes it possible to secure the data reliability.
Incidentally, in this data storage control device, the data write number of times in the partition of the first nonvolatile storage is in excess of a specified number of times, it is possible to think that of a display of warning indication of a requirement for replacement of the first nonvolatile memory. More specifically, it is believed that displaying the warning is possible before the first nonvolatile memory comes to its lifetime.
However, the display of warning a requirement for replacement of the first nonvolatile memory is made based on only the data write number of times in the partition of the first nonvolatile storage, that arises a problem in that the data write quantities in the first nonvolatile memory vary due to the system device configuration being in use and the function being in use, that fails provide an optimum indication timing for warning a requirement for replacement of the first nonvolatile memory.
In view of the aforementioned circumstances, the present disclosure is proposed whose object is to provide an electronic device and a method of warning a lifetime of memory both of which are capable of overcoming the aforementioned drawbacks.
Both the electronic device and the method of warning a lifetime of memory according to the present disclosure, even if the data write quantities in the first memory vary due to the system device configuration being in use and the function being in use, make it possible to cause the panel part to display warning a requirement for replacement of the first memory based on the warning indication threshold value, that enables a provision of an optimum indication timing for warning a requirement for replacement of the first memory.
While in the present exemplary embodiment the description is made in relation to the MFP 100 as the electronic device of the present disclosure, needless to say, the present disclosure may be applied to other electric devices including, for example, personal computers and mobile terminal devices that make use of the SSD 118 that is a nonvolatile memory.
Number | Date | Country | Kind |
---|---|---|---|
2015-247163 | Dec 2015 | JP | national |